Actualy, what I want to do, is to make gmail execute a GET request to my API, after receiving any e-mail in the mailbox. Is there a way to do this?
thanks
Look at the watch command in the gmail API at https://developers.google.com/gmail/api/v1/reference/users/watch. This sets up a a push notification watch on the given user mailbox, provided of course that you have permission to access the mailbox.
There are a number of services, like https://ifttt.com/ or https://zapier.com/ that can trigger events (such as 'call an api') when you get a new email.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With