Hiii,
I’m also having a problem with authentication. I got the error during generating the oauth token. Can you tell me what I’m doing wrong?
Please check below code:-
require_once (‘lib/hhb_.inc.php’);
hc->setopt_array ( array (
CURLOPT_POST => true,
CURLOPT_POSTFIELDS => http_build_query ( array (
‘grant_type’ => ‘client_credentials’,
‘client_id’ => ‘XXXXXXX’,
‘client_secret’ => ‘XXXXXXX’
) )
) );
result = $hc->getStdOut ();
[error] => stdClass Object
(
[code] => OAUTH_TOKEN_ENDPOINT_DEPRECATED
[description] => The oauth2 token endpoint has been deprecated and removed; you must use your API key for authentication instead. Please see https://www.yelp.com/developers/documentation/v3/authentication#where-is-my-client-secret-going for info & migration steps
)
Please let me know if you have any solution for this type of error in case of accessing the token…
Join in the discussion - add comment below: