google api php client - Gmail API - Users.labels get with a date range specified -



google api php client - Gmail API - Users.labels get with a date range specified -

i've got gmail service running via php api:

$client = new google_client(); $client->setclientid('{{client_id}}.apps.googleusercontent.com'); $client->setredirecturi('{{redirect_url}}'); $client->setclientsecret('{{client_secret}'); $client->setscopes(array('https://www.googleapis.com/auth/gmail.modify')); $client->setaccesstoken($credentials);

i fetch (get - https://developers.google.com/gmail/api/v1/reference/users/labels/get) labels matching id:

$service = new google_service_gmail($client); $labels = $service->users_labels->get("{{email}}", $gmail_label_id);

which works perfectly. how can specify parameter get threads between date range? looking @ apis explorer see ability specify:

userid id fields

none of appropriate i'm trying do.

i've looked @ google_service_gmail_userslabels_resource class, get method:

public function get($userid, $id, $optparams = array()) { $params = array('userid' => $userid, 'id' => $id); $params = array_merge($params, $optparams); homecoming $this->call('get', array($params), "google_service_gmail_label"); }

i see can parse in $optparams variable, perhaps key?

if understood question correctly want threads between date range? think have utilize 'list' method , optional parameter 'q'. individual thread phone call 'get' method.

google-api-php-client

Comments

Popular posts from this blog

java Multi query from Mysql using netbeans -

c# - DotNetZip fails with "stream does not support seek operations" -

c++ - StartServiceCtrlDispatcher don't can access 1063 error -