Hi,
The response you provided is the access token for the authorized call. Once you habe the access token you can call the /oauth/me endpoint to get information about the user.
You can find more information and an example at https://wp-oauth.com/kb/retrieving-user-information-with-wp-rest-api/
-
This reply was modified 9 years, 3 months ago by
Justin Greer.
Yes, I send access_token.
My URL: http://localhost/wordpress1?oauth=me&access_token=8gsceglemi102meq3wuyqwrwcunisrepx3cs043c but I don’t receive data in JSON like this:
{
"ID":"1335",
"user_login":"[email protected]",
"user_nicename":"john",
"user_email":"[email protected]",
"user_registered":"2014-12-16 19:52:30",
"user_status":"0",
"display_name":"John Doe"
}
only Array
Aw, yes. There is debug information in the code.
FTP and remove line 252 and 253 from /wp-oauth-server/library/class-wp-oauth-server.php (should be a print_r statement).
We will be updating the download shortly. Please not that the forums here are for the free version which the trial version (even though is free to download) is not hosted here at .org. It is against forum rules to discuss any terms of a premium plugin.
Thank you,
Justin Greer
OK,
Thank you. Now it’s working.
In next few days I will buy plugin 🙂
Best regards,