No Tokens exist for the given user-identifier,Please generate and try again.

No Tokens exist for the given user-identifier,Please generate and try again.

Hello, I am using the Zoho CRM API for the first time. I'm using the PHP SDK and running into this error: 

'No Tokens exist for the given user-identifier,Please generate and try again.'
this is generated at line 60 of zohocrm/php-sdk/src/com/zoho/oauth/clientapp/ZohoOAuthPersistenceByFile.php

I don't see any results for this error in Google so I'm not sure what to make of it.

I was able to generate an access token by adding a Client at https://accounts.zoho.com/developerconsole and creating a grant token with the ... Self client option. I chose the scope ZohoCRM.modules.all and ran this code to get an access token:
  1. $oAuthClient = ZohoOAuth::getClientInstance();
  2. $grantToken = "1000.fab4b0ebce99ae77598d6dd3da422f98.d874ba2987fe1cbe3bae9f4141cd7310"; // ZohoCRM.modules.all
  3. try {
  4. $oAuthTokens = $oAuthClient->generateAccessToken($grantToken);
  5. }
  6. catch (Exception $e) {
  7. echo '<pre>Could not get access token: '.$e->getMessage()."\n";
  8. echo '$grantToken = '.$grantToken."\n";
  9. }
Once I have that access token I attempt to run this code:
  1. $zcrmModuleIns = ZCRMModule::getInstance("Leads");
  2. $bulkAPIResponse = $zcrmModuleIns->getRecords();
  3. $recordsArray = $bulkAPIResponse->getData(); // $recordsArray - array of ZCRMRecord instances
And that is when the error is generated.

Thanks for the help!