OAuth2 accessing Google Mail and Contacts
Posted: Fri Feb 24, 2017 3:12 pm
I am working using Window 10.
OAuth is the standard protocol for authorization
OAuth 2 is the latest such protocols allowing an application to use the API (application programming interface) to gain access to other services such as Google, Dropbox, Microsoft, Apple, etc.)
I had some progress and some hard time figuring out certain ways of accomplishing what I want to do using Livecode. Nevertheless, even though not everything is so clear, generally it is a very easy language to use. So, a big hope for a future bright ).
For now, I feel stuck using integrating email. It is beyond my current skill.
As part of a business application that I like to offer to my customers, and still LEARNING Livecode, I want to make it possible to send email from Livecode, receiving email in Livecode and manage projects and tasks regarding email and other channels customers like to use for any kind of communication.
Now, I read that there is a OAuth2 library for Livecode now (I have not really started this yet, but better asking before spending hours and days). I want to use project labels that are generated in Livecode and use these labels when email is sent using Google Mail (Gmail). So, sending mail using the standard way does not help, because these labels (multiple folders) can not be used. I need a direct access to Gmail. And also to the contacts in Gmail.
And the other way around, I want to be able to download mail from Gmail, but also keep the associated labels and not lose them.
The difference in Gmail compared to other email clients is that there are no folders to store email messages, but there are tags or "labels" associated which appear like folders. This means a message can have none, one or more such labels (or tags, or folders), and a label can have none, one or many messages.
What direction must I take to develop realizing this? Any helpful starters advice would be most appreciated.
As I understand, the specific OAuth2 Google API has to be used, and only then it seems possible to do what is in my mind. SMTP server and receiving email using IMAP does not seem to work here.
For storing I am currently using SQLite, but it will be remote database management system soon.
Are there any experiences already? How to approach this task the best way?
(P.S: Ideally I would very appreciate seeing sophisticated and well-documented examples of accessing a number of services using OAuth2, or some kind of "templates".)
OAuth is the standard protocol for authorization
OAuth 2 is the latest such protocols allowing an application to use the API (application programming interface) to gain access to other services such as Google, Dropbox, Microsoft, Apple, etc.)
I had some progress and some hard time figuring out certain ways of accomplishing what I want to do using Livecode. Nevertheless, even though not everything is so clear, generally it is a very easy language to use. So, a big hope for a future bright ).
For now, I feel stuck using integrating email. It is beyond my current skill.
As part of a business application that I like to offer to my customers, and still LEARNING Livecode, I want to make it possible to send email from Livecode, receiving email in Livecode and manage projects and tasks regarding email and other channels customers like to use for any kind of communication.
Now, I read that there is a OAuth2 library for Livecode now (I have not really started this yet, but better asking before spending hours and days). I want to use project labels that are generated in Livecode and use these labels when email is sent using Google Mail (Gmail). So, sending mail using the standard way does not help, because these labels (multiple folders) can not be used. I need a direct access to Gmail. And also to the contacts in Gmail.
And the other way around, I want to be able to download mail from Gmail, but also keep the associated labels and not lose them.
The difference in Gmail compared to other email clients is that there are no folders to store email messages, but there are tags or "labels" associated which appear like folders. This means a message can have none, one or more such labels (or tags, or folders), and a label can have none, one or many messages.
What direction must I take to develop realizing this? Any helpful starters advice would be most appreciated.
As I understand, the specific OAuth2 Google API has to be used, and only then it seems possible to do what is in my mind. SMTP server and receiving email using IMAP does not seem to work here.
For storing I am currently using SQLite, but it will be remote database management system soon.
Are there any experiences already? How to approach this task the best way?
(P.S: Ideally I would very appreciate seeing sophisticated and well-documented examples of accessing a number of services using OAuth2, or some kind of "templates".)