From abd275505e780cf7f43c6ab4f40f9bef6b9ec1c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=2EFernando=20S=C3=A1nchez?= Date: Fri, 1 Mar 2013 20:04:14 +0100 Subject: [PATCH] Secrets as environment variables --- library.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/library.py b/library.py index ad96ed0..ef18c70 100644 --- a/library.py +++ b/library.py @@ -1,10 +1,11 @@ import requests import json -from secrets import * from collections import Counter +import os API_URL = 'https://api.github.com/' - +CLIENT_ID = os.getenv('GH_CLIENT_ID') +CLIENT_SECRET = os.getenv('GH_CLIENT_SECRET') def get_url(url,relative=True): if relative: url=API_URL+url