Spaces:
Paused
Paused
File size: 557 Bytes
7837518 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
import requests
from orrnob_drops_automation import base
from core.headers import headers
def get_token(data, proxies=None):
url = "https://www.binance.com/bapi/growth/v1/friendly/growth-paas/third-party/access/accessToken"
payload = {"queryString": data, "socialType": "telegram"}
try:
response = requests.post(
url=url, headers=headers(), json=payload, proxies=proxies, timeout=20
)
data = response.json()
token = data["data"]["accessToken"]
return token
except:
return None
|