PHP-OAuth2
PHP-OAuth2 copied to clipboard
php oauth2 - gives error 401
I got code for php oauth2 from here https://github.com/adoy/PHP-OAuth2 I have created the test.php but when executing the script i got this error . http://172.16.1.26/test2/test.php?code=wxsthleqgbwwxs8iqeydmiuy4q2g2zygyjt1lt9m
Array ( [result] => You need to enter a Username and a Password if you want to see this website. [code] => 401 [content_type] => text/html; charset=utf-8 )
Please guide me.
On other demo , i got below error response Array ( [result] => Array ( [error] => invalid_request [error_description] => Unknown request ) [code] => 400 [content_type] => application/json ) I am executing the php auth code from local and the wordpress is on live. Is this is creating any problem?
same error
Array ( [result] => Array ( [error] => invalid_request [error_description] => Unknown request )
[code] => 400
[content_type] => application/json
)