Answer the question
In order to leave comments, you need to log in
Yandex direct v4 - how to get AccountManagement data?
It is necessary to get data from AccountManagement via API v4 (yes, I know, she is dying ..) using the Get method, which is described here
https://tech.yandex.ru/direct/doc/dg-v4/live/Accou...
actually interested in balance.
I send a script (php file_get_contents via stream_context_create, which is not important) requests to
https://api.direct.yandex.ru/v4/json
https://api.direct.yandex.ru/live/v4/json
[options] => Array
(
[method] => POST
[header] => Content-Type: application/json; charset=utf-8
Content-length: 130
[content] => {"method":"AccountManagement","param":{"Action":"Get","SelectionCriteria":{"logins":["AAAAAAAAAAAAAAAAAAAAAAAAA"]}}}
)
[headers] => Array
(
[0] => HTTP/1.1 200 OK
[1] => Server: nginx
[2] => Date: Tue, 17 Oct 2017 07:24:02 GMT
[3] => Content-Type: application/json; charset=utf-8
[4] => Connection: close
[5] => RequestId: 7327377433625588421
[6] => X-Frame-Options: SAMEORIGIN
[7] => X-Content-Type-Options: nosniff
[8] => X-XSS-Protection: 1; mode=block
[9] => Content-Security-Policy: default-src 'none'
)
{"error_str":"Authorization error","error_detail":"","error_code":53}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question