Reputation: 1
I am building an iphone application in which I have email client using IMAP. I want to use gmail data API but I can not find out how. Could you tell me how to solve this problem. is there any way to access gmail data?
Infrastructure:
Iphone device: Iphone 4.
Operating system:MAC OS 10.6.8, iOS X
Upvotes: 0
Views: 821
Reputation: 2658
You have two ways to do so:
First: As you have used IMAP, you can fetch the data from gmail using the keywords.
Have a look at imap custom keywords for information on using keywords.
Second: Have a look at the API for fetching data using OAuth which should work with your client without any problems.
Upvotes: 1
Reputation: 125007
Since you already have an IMAP client, IMAP seems like the right way to go. Take a look at Google's Gmail documentation to learn about authenticating with OAuth so that you can access the server.
Upvotes: 1