Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8320253
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T22:35:42+00:00 2026-06-08T22:35:42+00:00

I am building a CRM webapp in PHP that will pull from all of

  • 0

I am building a CRM webapp in PHP that will pull from all of a user’s email and social media accounts, and allow them to read and respond to all their emails, or compose new ones. Right now, I am just trying to get this working with Gmail using OAuth 1.0, but I’m having some trouble.

I can get the request token and the authorize token successfully and once the user authorizes me, Google redirects back to my app like it’s supposed to… but now how do I actually pull messages from the user’s inbox? This link says I need to make a call using the user’s email to get access to their inbox, but how do I get the user’s email address? What do I do with the oauth_verifier and oauth_token that Google returns to me?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T22:35:45+00:00Added an answer on June 8, 2026 at 10:35 pm

    I figured it out. There are two steps:

    First, before you can actually access any of the user’s information, you have to upgrade your Request Token to an Access Token. This is the third step of the OAuth process (user authorization on Google’s page being the second); I was confused about what the last step was exactly and was under the impression that the user was completing the second and third steps on Google’s page. Google’s OAuth Playground helped clear that up. Anyways, after Google (or whoever your Service Provider is) redirects the user back to your app, you use the oauth_verifier and oauth_token to upgrade the Request Token into an Access Token. Don’t forget to use your oauth_token_secret (in addition to your consumer_secret_key) to generate the signature for this last request! That little detail cost me a lot of time! See the answer to this question for more information on how to do that correctly.

    Now, if you are like me, and want to have Google handle which email address the user signs in with (as opposed to gather that info yourself within your app), you will need to make another request before you can access the user’s inbox. In my opinion, this is where Google’s documentation really fails, as it seems that you will need the user’s google id (gmail address) to use any of their APIs, yet it is possible to complete the OAuth process without ever getting it from the user. This is what led to my confusion and was the point of my question. I’m still not 100% clear on how you are supposed to do is, but what I’ve done for now is add ‘https://www.google.com/m8/feeds/‘ to my scope, and call ‘https://www.google.com/m8/feeds/contacts/default/full?max-results=0‘ to get an empty xml contact list that happens to contain the user’s gmail address in it. You can then parse the XML to get the user’s email and go about your merry way. It may also be possible (and perhaps preferable) to get the user’s email using the ‘https://www.googleapis.com/auth/userinfo#email‘ scope, but I haven’t tried that yet.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Building an iPhone OS application that will allow users to anonymously post information to
Building a quick view that will display a list of all days but only
I am building my own CRM access database that will contain a list of
building a site using PHP and MySQL that needs to store a lot of
I'm building a web service which receives emails from a number of CRM-systems. Emails
Building a rails B2B application that will have various users. I'm pretty clear on
I am building a Cocoa application that will store customer data. I'm currently using
I'm currently building a CRM for a niche industry that can be tailored for
I will be building a system where a particular object will originate from a
I am currently building a small crm application. I need each user to be

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.