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

OpenCV OpenCL: Convert Mat to Bitmap in JNI Layer for Android -

android - org.xmlpull.v1.XmlPullParserException: expected: START_TAG {http://schemas.xmlsoap.org/soap/envelope/}Envelope -

python - How to remove the Xframe Options header in django? -