Open TrixiS opened 1 year ago
YooMoneyAPI.get_access_token
Code for repro
import asyncio from glQiwiApi import YooMoneyAPI async def get_url_to_auth() -> None: client_id = input("CLIENT ID: ") redirect_url = input("REDIRECT URL: ") print( await YooMoneyAPI.build_url_for_auth( scopes=["account-info", "operation-history"], client_id=client_id, redirect_uri=redirect_url, ) ) access_token = await YooMoneyAPI.get_access_token( code=input("CODE: "), client_id=client_id, redirect_uri=redirect_url, ) print("ACCESS_TOKEN:", access_token) asyncio.run(get_url_to_auth())
System info: Windows 10, Python 3.10
YooMoneyAPI.get_access_token
methodCode for repro
System info: Windows 10, Python 3.10