When I am hitting API so getting issue -
stdClass Object
(
[code] => 124
[message] => Invalid access token.
)
When I am hitting API so getting issue -
stdClass Object
(
[code] => 124
[message] => Invalid access token.
)
There are a few reasons why this could be happening:
Token is expired:
Access tokens usually have a limited lifetime. Ensure your token has not expired. If it has, you’ll need to refresh it or obtain a new one.
Make sure the access token belongs to the correct user / account:
If you generated access token for account A, but the user you are querying belongs to a different account, then you will get this error,