Reading messages from Gmail, in PHP, using Gmail API

后端 未结 4 1381
-上瘾入骨i
-上瘾入骨i 2020-12-14 03:00

I have donwloaded new Gmail API source code from Google PHP client library.

I inititalized the service using:

set_include_path(\"./google-api-php-cli         


        
4条回答
  •  醉酒成梦
    2020-12-14 03:29

    I'd start here: https://developers.google.com/gmail/api/v1/reference/users/messages/list and https://developers.google.com/gmail/api/v1/reference/users/messages/get

    note that when you get a list of messages only the IDs of those messages are returned then you use the ID with the get method to actually get the message content:

提交回复
热议问题