i need to fetch users inbox using google oauth2.0 protocol api. i have downloaded this api.
i have downloaded this API
http://code.google.com/p/google-api-php-client/downloads/list.
This pai has many services but i did not find any way to grab user gmail inbox. i have got access_token using oauth 2.0.
Please some suggestion about this problem.
Related
I receive confirmation from users in my gmail account. I want to read them with a server side php script to display confirmation on my website. I got OAuth 2.0 client IDs and a service key from Google APis. How do I use these keys with the specific gmail account to get the emails? I cannot find any simple documentation.
You can not use a service account to access a normal users Gmail account. This is because there is no way to preauthorize it.
What you need to do is have the users authenticate your application using Oauth2 and get a refresh token for each user. Then you will be able to use the refresh token in your server sided script to request a new access token which you can use to read there gmails. The Google PHP client library team has created some examples for using their library which might help you. Google-api-php-client
Side note: If the users you are speaking of are part of a Google domains account then you can do it by giving service account permissions to access the users emails.
I am using PHP and Google API for create the google calendar and invite the people. Previously it was worked. But now google change the API. So I also changed the library.
Library
After that I got the permission issue. So I found the solution from google developer account.
Delegate domain-wide authority to your service account
https://developers.google.com/drive/web/delegation
But according to this method I didn't see any Manage third party OAuth Client access
Anybody know any solution or anyway to create the google calendar and invite people?
NOTE: I tried the gmail account. It is working. But when I try the google business account, I have above problem.
Screenshot
In the authentication->click on "Manage API client access". It is same as "Manage third party OAuth Client access" in the documentation.
Trying to create a function that manages Google Calendar items via PHP for a Google Apps account. Cannot use web client OAuth, all authentication must be server to server.
I did the following in the Google Apps admin panel:
Enabled API access for the domain.
Created the OAuth key and secret for the domain.
Searched through many tutorials and cannot find anything related to Google Apps, and using the domain oauth key to retrieve user data. All of the examples either require a Service Account or Client OAuth (which is not an option).
Any ideas where to start?
I am developing a web application where users can sign in with their id, or facebook id, twitter id or gmail id. I have done this with facebook and twitter so far. But I am running into problems with gmail. In facebook and twitter case, I have created an application going to developers/..../new/app like this and get appid for both facebook and twitter, and integrated both in my login system, but in case of gmail I'm confused. Is there any process/thing, I mentioned above in case of gmail a/c?
I am doing my project in PHP CodeIgniter.
This is called Authentication Federation, and Google documents it in their Google Developers site. In summary, they support OpenID:
https://developers.google.com/accounts/docs/OpenID
I need to download Gmail emails using php api. there APIs for google. i do not exactly which api to use. i have web application. i have registered my application on google, oauth2.0. at this url Google Api console. i have downloaded this php API
I which there are many services. but not gmail. I do not want to use accessing emails using username and password API. i want to access using the token. which is permanent access token.
Google support OAuth authentication for IMAP. Use that.