Tuesday, 15 May 2012

Gmail oauth received on date using PHP -



Gmail oauth received on date using PHP -

how go getting count of emails received on particular date across gmail folders. managed email inbox counting working ok need figure out how number received previous day using php , oauth. can help?

the messages#list method allows pass q parameter accepts same query format gmail search field.

thus it's possible this:

// $gmail instance of google_service_gmail $messages = $gmail->users_messages->listusersmessages('me', array( 'q' => "after:2014/10/20 before:2014/10/21" )); // $count number of messages 2014/10/20 $count = $messages->getresultsizeestimate();

beware result different see in gmail if have 'conversation view' turned on.

php oauth gmail-api

No comments:

Post a Comment