I can’t get the API to work. I have literally created and deleted three tokens to get this to work. I’ve combed over these posts looking for something I’m doing wrong, and I just can;t find it.
These are the permission set, as suggested in other posts regarding the 403 response.
Here is the code (shorted):
$args = array(
‘timeout’ => 20,
headers’ => array(
‘Authorization’ => ‘Bearer ’ . $envato_token, // API token with no trailing spaces.’
‘User-Agent’ => $user_agent,
$response = wp_remote_get( ‘https://api.envato.com/v3/market/author/sale?code=’ . $code, $args );// Valid purchase code that returns proper information in the API sandbox.
I don’t know what else it could be. Does the system need time to validate the token? Is there a wait period?