L
L
ldevyataykina2017-06-21 18:43:47
Python
ldevyataykina, 2017-06-21 18:43:47

How to authorize the Yandex Money API application?

There was a problem obtaining a permanent token for the application.
I use documentation
and code in python

scope = ['account-info operation-history operation-details incoming-transfers payment payment-p2p money-source(\"wallet\")']
def gen_auth_url(client_id, redirect_url, scope):
    auth_url = Wallet.build_obtain_token_url(client_id,
                                             redirect_url,
                                             scope) + '&response_type=code'
    return auth_url

auth_url = str(gen_auth_url(client_id, redirect_url, scope))

And I keep getting the error
Этому приложению отказано в доступе.
Свяжитесь с его разработчиком и укажите сведения об ошибке (invalid_request)

I can't figure out what the error is. Before I complete the authorization request, I exit the application.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Ernest Melnikov, 2017-06-28
@ldevyataykina

Within the scope, you cannot use the payment-p2p right and the payment.to-account right at the same time.
The destination condition must be applied to the payment right.
Here everything is described in great detail:
https://tech.yandex.ru/money/doc/dg/concepts/proto...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question