php - Gmail mails fetching with oauth -


http://appdeal.com/appdeal/getmail2.php

i trying fetch email.

i have when register in website email. link email website using gmail oath. have use these oath token read mails after interval , parse these mails important text email in form of html, parse using xpath.

can on this?

for fetching e-mails, have 2 options:

either use gmail api or using service context.io.

if use context.io, can access other inboxes , not gmail. if work gmail api, make sure ask offline access when getting oauth token, otherwise won't able pull e-mails @ later point in time. fetching e-mails directly via imap in php seems quite complex.

when comes parsing e-mails, please keep in mind html of e-mails not accurate , xpath method fail when there slight changes in layout. out of experience (i'm founder of mailparser.io) suggest rely on text patterns parsing. search things can identify "order id:" regular expressions example.


Comments

Popular posts from this blog

Android : Making Listview full screen -

javascript - Parse JSON from the body of the POST -

javascript - Chrome Extension: Interacting with iframe embedded within popup -