I am using the twitter search API 1.1 and getting this response
{"errors":[{"message":"Bad Authentication data","code":215}]}
The query I am constructing for search is
https://api.twitter.com/1.1/search/tweets.json?q=.priyanka%20chopra
Am I making the right query or not? Please help me out
The query seems OK, but, are you authenticating your request via OAuth?
https://dev.twitter.com/oauth/overview
Related
Good afternoon!
I'm trying to start working with adwords api, I created the adwords identifier and OAuth2 keys by the instruction, I try to get a token through GetRefreshToken by clicking on the link
https://accounts.google.com/o/oauth2/auth?access_type=offline&client_id=***.apps.googleusercontent.com&redirect_uri=urn:ietf:wg:oauth:2.0:oob&response_type=code&scope=https://www. googleapis.com/auth/adwords
I get a 403 error:
Error: restricted_client Unregistered scope (s) in the request: https://www.googleapis.com/auth/adword
Tell me what's wrong with what I'm doing?
Are you trying it with the same email linked with AdWords? Please try logging into your account and then try the same call. There might be some cache issue of your browser
You need to use the same email address id which is linked with Adwords
Friends,I got a question,and I have googled it,but I didn't find the answer.
I create an iOS twitter app,and apply for a twitter API.
I used my API key in my app,Xcode returns error.
Just like this: http://tinypic.com/r/262ksnk/8
("Failed to validate oauth signature and token")
and this picture is my twitter api status
(sorry,I do not have enough coin to upload a pic,so post my pic here. )
what is wrong with my twitter api,can anyone help me?
Thanks very much.
What is wrong?
Best regards.
This error message relates to a HTTP 401 response.
Please make sure you are properly signing your OAuth requests. This guide will help you with the common pitfalls: Troubleshooting OAuth 1.0A.
In particular, if you are using valid keys and properly signing your OAuth requests but still receiving 401 errors, please check your system time. Since the OAuth signature relies on the current time, it must be in sync with the one from Twitter servers (exposed in all Date response headers from the Twitter API).
The "performance issues" described on the Twitter API status page apply to Twitter as a whole, and have nothing to do with your application. If you are having issues interacting with the Twitter API, we cannot diagnose those from the information provided ("error 3").
Twitter has implemented Authentication in their API version 1.1. Now how can i search tweets using a keyword with Authentication in Java ?
I tried to use the code given Here to authenticate. But i am getting "Server returned HTTP response code: 400 for URL: https://api.twitter.com/1.1/search/tweets.json?q=freebandnames"
Can anyone help me out
Any help would be greatly appreciated !!!
I recently got oAuth working for my iOS app to log in to Tumblr. Now I'm having trouble posting using the new API calls. I'm able to generate a request and prepare Autorization headers but I'm still getting errors.
Here is my URL:
http://api.tumblr.com/v2/blog/my_blog.tumblr.com/post?tweet=no&tags=my%2C%20app&state=published&type=text&title=Hello&body=I%2520finally%2520got%2520this%2520to%2520work
Here is my Authorization header with x's in place of sensitive info:
Authorization = "OAuth realm=\"\", oauth_consumer_key=\"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\", oauth_token=\"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\", oauth_signature_method=\"HMAC-SHA1\", oauth_signature=\"XXXXXXXXXXXXXXXXXXXXXXXXX\", oauth_timestamp=\"1347656207\", oauth_nonce=\"XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX\", oauth_version=\"1.0\"";
There error I receive:
{"meta":{"status":400,"msg":"Bad Request"},"response":{"errors":["Post cannot be empty."]}}
Does anyone have experience with this? I've been working at it for at least 20 hours over a two day period.
Any help is greatly appreciated.
EDIT: I've also tried including authorization data in the url (i.e., oauth_token, oauth_consumer_key), essentially the stuff found in the header. When I do this I get a 401 "Not Authorized" error, which I know isn't correct because I just successfully called "http://api.tumblr.com/v2/user/info" which requires a valid authorization.
found solution, see explanation here.
I am trying to use Facebook's Graph API to get nearby places but when I try https://graph.facebook.com/search?type=place¢er=37.76,122.427&distance=1000 , I get an authentication error. I registered my mobile application on Facebook but I am not sure how to authorize it so that I can search. How can I do this?
You need to add the access_token to the GET params you're sending. Also, you can add a q='query' param to search for an exact term like airport or cafe...
https://graph.facebook.com/search?type=place¢er=37.76,122.427&distance=1000&access_token=2227470867|2.BsVGGHo_rW5YzHPWjk4UMw__.3600.1304935200.0-100001037215362|5jSEZH-iCmFUB7A8myjG98IZVVQ