From 352f777cc309ae74e5692b6872720c8057da0462 Mon Sep 17 00:00:00 2001 From: Michael Herman Date: Wed, 23 Mar 2016 09:33:03 -0600 Subject: [PATCH] updated full contact script --- .gitignore | 1 + 30_fullcontact.py | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) 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'