I am trying to access zoho subscriptions through a wordpress api but I am getting the error above.

I have generated the Zoho-authtoken token but it seems like it wrong.

I am not sure what I am doing wrong.

$zoho_url = 'https://subscriptions.zoho.com/api/v1/subscriptions';

$organizationid = '644******';
$zohoauthtoken = 'c7e24e4efb1ffa******************';

$headers = array('Content-Type' => 'application/json;charset=UTF-8', 'X-com-zoho-subscriptions-organizationid' => $organizationid , 'Authorization' => 'Zoho-authtoken '.$zohoauthtoken);

$response = wp_remote_post($zoho_url, array('headers' => $headers) );

print_r($response['body']);

Your help would be highly appreciated.

Read more here: {"code":14,"message":"Invalid value passed for authtoken."}


Solution:

If you know the solution of this issue, please leave us a reply in Comment section, to update the question.


Wordpress related questions and answers: