P
P
Platon Fedorovich2015-10-28 09:59:36
Classmates
Platon Fedorovich, 2015-10-28 09:59:36

How to get additional parameters (fields) of the user from the social. network OK through authorization with HybridAuth?

Aloha!

Again a question about the “wonderful and most understandable” Odnoklassniki API.

Authorization via HybridAuth is configured on the site, which includes the OK social network provider ( Providers/Odnoklassniki.php ). There is also documentation on additional fields when calling the users.getCurrentUser method .
Question: how to add a Providers/Odnoklassniki.phpuser to the additional parameters (fields)? For example, a larger image (pic_3 or pic640x480)?
Maybe someone has come across this? Tell me please.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vjacheslav Kanivetc, 2015-10-28
@platon_fedorovich

We act according to the documentation https://apiok.ru/wiki/display/api/users.getCurrent... .
The method has an optional fields parameter that must be passed.
Since the request is made there by the GET method, it is similarly necessary to add a parameter and value to it in the line.
Names of returned fields - https://apiok.ru/wiki/display/api/fields+ru
Calculator for checking the validity of a prepared request - https://apiok.ru/wiki/pages/viewpage.action?pageId...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question