我正在将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));
}