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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T16:41:36+00:00 2026-06-06T16:41:36+00:00

I am trying to connect to Twitter through REST API using Java. I am

  • 0

I am trying to connect to Twitter through REST API using Java.
I am passing the following Query Parameters using POST to

https://api.twitter.com/1/statuses/update.json.

include_entities=true
oauth_consumer_key=**********
oauth_consumer_secret=************
oauth_nonce=***********
oauth_signature_method=HMAC-SHA1
oauth_timestamp=1340329822
oauth_token=***************
oauth_version=1.0
status=test msg

What is the actual process to connect to Twitter?
First I need to get auth_token using authorize request and then issue update.json request?

What ever request I am issue I am getting

{"error":"Could not authenticate you.","request":"\/1\/statuses\/update.json"}

But I checked all my config params(keys/secrets) and they are correct.
I tried connecting with the same parameters using Twitter4J and working fine.

When I tried to invoke from REST Client Tool (http://code.google.com/a/eclipselabs.org/p/restclient-tool/) with same params its failing.

Any help?

  • 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-06T16:41:37+00:00Added an answer on June 6, 2026 at 4:41 pm

    You have to pass your oauth_* parameters in a header called “Authorization”, not with the other POST parameters. It is explained in the Twitter API documentation here : https://dev.twitter.com/docs/auth/authorizing-request

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

Sidebar

Related Questions

I'm using abraham's twitter oauth class (https://github.com/abraham/twitteroauth) to connect and update twitter. I had
I am trying to connect to a MySQL Server using JDBC tool in java
I am trying to connect to twitter via TwitterVB and the following code does
I'm using http://github.com/bengottlieb/Twitter-OAuth-iPhone/tree/master for Twitter+Oauth in my iPhone app. I'm trying to create a
I'm trying to connect to a server using https and when I do it
When trying to connect to a web service using the following $client = new
I'm trying to connect to the Twitter API via an AS3 app, but I
I am trying to connect with social web sites like facebook,twitter,linkedin etc using Hybridauth
Im trying to connect to www.google.com using socket but the result is: HTTP/1.0 302
I trying to connect to a Java Service with some special security requirements It

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.