E
E
EvgenyAlego2016-07-08 12:07:24
MySQL
EvgenyAlego, 2016-07-08 12:07:24

How to get an e-mail after authorization through the Odnoklassniki API?

Good afternoon. I use this construction:
$key_temp = '********************';
$sig = md5('application_key=' . $key_temp . 'fields=' . $fields .'method=users.getCurrentUser' . md5($this->api->access_token . $this->api->client_secret)) ;
$response = $this->api->api( '?application_key=' . $key_temp . '&fields=' . $fields .'&method=users.getCurrentUser&sig=' .$sig);
In $response I get everything I need, except for the user's e-mail. How to get it?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
A
Andrey, 2016-01-11
@VladimirAndreev

wrong database host

A
Andrey Shishkin, 2016-01-11
@compiler

Read the error ) You have an unknown host es-t-doors.mysql

A
Alexander, 2016-01-11
@cz_350

The host to the database is not correct. Check it out!

V
Vjacheslav Kanivetc, 2016-07-11
@EvgenyAlego

To obtain an address, the application must have rights to EMAIL.
But to get such a right is very unlikely for obvious reasons.
However, you can try to request via tech support, describing the use case

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question