How to create a Task associated with an Account by using PHP SDK?

How to create a Task associated with an Account by using PHP SDK?

i would like to ask some problem like this.
when i want to create a task associated with Account infomation. so i write these codes.

  1. $rest = \ZCRMRestClient::getInstance();
  2. $record = $rest->getRecordInstance("Tasks", null);
  3. $record->setFieldValue("Subject", "example title");
  4. //...
  5. $responseIns=$record->create();

  6. $createdrecord = $responseIns->getData();
  7. $account = \ZCRMJunctionRecord::getInstance('Accounts', $data['account']);
  8. $createdrecord->addRelation($account);

then. i catch a error message " the relation name given seems to be invalid"
why ? 

ZOHO CRM REST API v2.0 using PHP SDK
ZOHO lisence is professional