diff --git a/.gitignore b/.gitignore index 3873c3a..87031a3 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ _tmp env venv __pycache__ +.env diff --git a/30_fullcontact.py b/30_fullcontact.py index a612648..3ee2822 100644 --- a/30_fullcontact.py +++ b/30_fullcontact.py @@ -1,3 +1,4 @@ +import os import sys import requests @@ -15,7 +16,7 @@ $ python 30_fullcontact.py twitter TWITTER_HANDLE # constants -API_KEY = 'GET YOUR OWN' +API_KEY = os.environ.get('FULLCONTACT_API_KEY') BASE_URL = 'http://api.fullcontact.com/v2/person.json'