A
A
AnonymousNoNamovich2020-05-10 17:00:42
API
AnonymousNoNamovich, 2020-05-10 17:00:42

Why does it show an invalid request error when I try to get a Yandex money token?

I made a site on Flask to get a Yandex money token, uploaded it to PythonAnywere, when I go in, an authorization form is displayed, when I enter my data from Yandex, it redirects to an error page:
This application is denied access.
Contact its developer and provide details of the error (invalid_request)
Code:

from flask import Flask
import requests
app=Flask("YandexMoney")
s=requests.Session()
s.headers["Content-Type"]="application/x-www-form-urlencoded"
p={"client_id":"token", "responce_type":"code", "redirect_uri":"url", "scope":"operation-history operation-details"}
@app.route("/")
def index():
 h=s.post("https://money.yandex.ru/oauth/authorize", params=p) 
 return h.text
if __name__=="__main__":
 app.run()

What is the problem?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question