将读取标签添加到多个线程gmail API PHP

时间:2018-12-22 08:44:25

标签: php gmail-api google-apis-explorer

我正在将gmail API与PHP结合使用,并且需要向多个线程添加read标签。我将其视为reference,但遇到Call to undefined method Google_Service_Gmail_Resource_UsersThreads::batchModify()的错误$service->users_threads->batchModify($userId, $threadId, $mods);

但是我在batchModify中发现了UsersMessages.php函数。是:

public function batchModify($userId, Google_Service_Gmail_BatchModifyMessagesRequest $postBody, $optParams = array())
{
  $params = array('userId' => $userId, 'postBody' => $postBody);
  $params = array_merge($params, $optParams);
  return $this->call('batchModify', array($params));
}

0 个答案:

没有答案