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 7618617
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T03:27:02+00:00 2026-05-31T03:27:02+00:00

Working with an OAuth API I need to retrieve the access_token attribute. Send the

  • 0

Working with an OAuth API I need to retrieve the access_token attribute. Send the login information works fine and I do get a proper response back. The response is formatted as such:

access_token=SOMETOKEN&login=SOMELOGIN&apiKey=SOMEAPIKEY

Currently I’m getting the response as such:

org.apache.http.HttpResponse response = httpclient.execute(httppost);
String content = convertStreamToString(response.getEntity().getContent());

Where the second line gets the String of the content as described. So what’s coming back is an URL Encoded string, and I need to get the access_token value of that. However I’m not sure how to do this, I can’t seem to find a method or anything for doing this, Would I have to parse it or is there some other methods to do it?

  • 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-05-31T03:27:04+00:00Added an answer on May 31, 2026 at 3:27 am

    I actually just found a solution to this located in the Twitter Api Me (http://kenai.com/projects/twitterapime/pages/Home) StringUtil class, I’m not gonna paste it here, but its open sorce so if anyone needs it, go get it from there.

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

Sidebar

Related Questions

I am trying to get Oauth working with the Google API using Python. I
I'm trying to understand how getting an access_token works with CURL. $url = https://api.com/oauth/access_token;
Ive been working with the twitter oauth and api and im having a weird
I'm working with django-piston to attempt to create an API that supports oAuth. I
Im trying to get TripIt OAuth authentication working, but I find the documentation to
I am implementing OAUTH in android using appcelerator. login page is redirecting to response
I'm using PECL OAuth with LinkedIn because it is working fine with Twitter and
I already have oAuth working with the Linked API. The dance is working nicely.
I am trying to get OAuth working with the .NET library for Google Data
I'm working on a largely navigation-based iPhone app that communicates with a REST API

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.