Skip to content

Instantly share code, notes, and snippets.

View FloChronoTech's full-sized avatar

FloChronoTech

View GitHub Profile
import base64
import requests
import random
api_key = 'your public API key here'
api_secret = 'your API secret here'
userpass = api_key + ':' + api_secret
encoded_u = base64.b64encode(userpass.encode()).decode()
headers = {"Authorization": "Basic %s" % encoded_u}