1
0
mirror of https://github.com/balkian/eestec.codeit.git synced 2025-07-04 13:52:22 +00:00

Secrets as environment variables

This commit is contained in:
J.Fernando Sánchez 2013-03-01 20:04:14 +01:00
parent c38daf1dbe
commit abd275505e

View File

@ -1,10 +1,11 @@
import requests import requests
import json import json
from secrets import *
from collections import Counter from collections import Counter
import os
API_URL = 'https://api.github.com/' 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): def get_url(url,relative=True):
if relative: if relative:
url=API_URL+url url=API_URL+url