mirror of
				https://github.com/balkian/eestec.codeit.git
				synced 2025-11-04 01:28:19 +00:00 
			
		
		
		
	Secrets as environment variables
This commit is contained in:
		@@ -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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user