Exploring the Twitter API = HTTP/1.1 401 API is secure. Needs security Credentials


#1

Hi,

that are my first steps in the twitter api. im exploring the twitter api here https://dev.twitter.com/console.

I get always the response “HTTP/1.1 401 API is secure. Needs security Credentials” - Why? What must i do?

Details:

Service: https://api.twitter.com/1.1

Authentication: OAuth1

API method: /statuses/update.json

Request URL: Post
https://api.twitter.com/1.1/statuses/update.json?status=Posting%20from%20%40apigee’s%20API%20test%20console.%20It’s%20like%20a%20command%20line%20for%20the%20Twitter%20API!%20%23apitools&display_coordinates=false

Request:
POST /1.1/statuses/update.json?status=Posting%20from%20%40apigee’s%20API%20test%20console.%20It’s%20like%20a%20command%20line%20for%20the%20Twitter%20API!%20%23apitools&display_coordinates=false HTTP/1.1
X-HostCommonName:
api.twitter.com
Authorization:
OAuth oauth_consumer_key=“myconsumerkey”,oauth_signature_method=“HMAC-SHA1”,oauth_timestamp=“1361626681”,oauth_nonce=“oauth_nonce”,oauth_version=“1.0”,oauth_token=“my oauth_token”,oauth_signature="my oauth_signature"
Host:
api.twitter.com
Content-Length:
0
X-Target-URI:
https://api.twitter.com
Content-Type:
application/x-www-form-urlencoded; charset=UTF-8
Connection:
Keep-Alive

Response:
HTTP/1.1 401 API is secure. Needs security Credentials
Date:
Sat, 23 Feb 2013 13:38:01 UTC
Content-Length:
63
Set-Cookie:
k=10…; path=/; expires=Sat, 02-Mar-2013 13:38:01 UTC; domain=.com; httponly
Connection:
close
Content-Type:
application/json; charset=utf-8
Server:
tfe

{
“errors”: [
{
“message”: “Could not authenticate you”,
“code”: 32
}
]
}

Best regards
leo