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

  • Home
  • SEARCH
  • 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 8896889
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T00:11:35+00:00 2026-06-15T00:11:35+00:00

I want to fetch contacts from gmail. for this I am using Sribe using

  • 0

I want to fetch contacts from gmail. for this I am using Sribe using GoogleExample.java
Which is working properly and giving me token.
For authorization it is giving me link like
https://www.google.com/accounts/OAuthAuthorizeToken?oauth_token=**

I am doing connection process successfully with google,

1) I want to fetch users contact from his account I am not getting it how to do it. Please provide any example

2) for authorization i have to manually copy link i dont want to do it manually.

Using struts2 for developing this project.

  • 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-15T00:11:36+00:00Added an answer on June 15, 2026 at 12:11 am

    You do not need to do authorization manually,in scribe this has been done for demo purpose and you have way to do this.

    follow below mention steps

    1. Create a Controller which create a request to Google API, you need to pass api_key,secret and can pass redirect_url with other information.
    2. Redirect user to Google and let him/her authorize your application

    redirect URL tell any OAuth/OpenID provider where to redirect user back once he/she authorize/reject your application

    on redirection back, Google will provide you a authorization token.you can than connect to the Google API to fetch user contacts

    this is a demo code how you can fetch data from Google once user redirect back to your site

    Verifier verifier = new Verifier(oauth_verifier);
    Token accessToken = oAuthGetAccessToken.getAccessToken((Token) session.get(OAuthConstants.REQUEST_TOKEN), verifier, service);
    service.signRequest(accessToken, request);
    Response response = request.send();
    

    What actually is happening, we created a verifier with the help of verifier token send by Google when user redirected back,we got access_token from the Google internally which work as a key to access user data and finally we sent request to Google API to fetch data.

    Please be sure to set the scope in your initial request which tell service provider what all data you want to access from the user profile.

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

Sidebar

Related Questions

i Want to fetch this data using json decode. Please Help.. So far i
I want to fetch the title of a webpage which I open using urllib2.
I want fetch last record using hibernate criteria Can u help me?
want to fetch the value from dynamically created textfield with tag from NSMutableArray.... Txt_New_Estimated
I want to fetch the title from book table and the subject name from
I want to fetch the unmatching records from two table in SQL, the table
I am working on an application in which i need to fetch all the
I want fetch the parameters of my hard disk. Using the technique described here
I want to fetch 10.2.0.4.0 from tnsping output in AIX, so I wrote tnsping
I want to fetch the files from the folder and convert to binary stream.

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.