,"error":"Not authorized" when attempting to get tweet from user with hashtag [closed] - api

Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 1 year ago.
Improve this question
I am attempting to get all tweets fro a specific user with a hashtag. The url I am using is:
https://api.twitter.com/1/statuses/user_timeline.json?q=%23jdmr%2Bfrom%3ABarrySpang
which without the URL encoding is simply: https://api.twitter.com/1/statuses/user_timeline.json?q=#jdmr+from:BarrySpang
When I try it in twitter search (as stated in the API docs) and it displays the desired results, however when I try the above URL I get a 401 response with this error message: {"request":"/1/statuses/user_timeline.json?q=%23jdmr%2Bfrom%3ABarrySpang","error":"Not authorized"}
Please can you advise me on this

statuses/user_timeline doesn't have q parameter
You should be using search: https://api.twitter.com/1/search.json?q=%23jdmr%2Bfrom%3ABarrySpang

I just received the same error when running python-twitter's GetFollowers() method on a user account that had been suspended. If others receive the same error, it might pay to check whether the account you're trying to access still exists.

Related

FIWARE Lab Store widget list errors and publishing [closed]

Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 4 years ago.
Improve this question
lately the FIWARE Lab store doesn't seem to work for me. The first page with Top Rated and Latest offerings loads ok, but after clicking on widgets/mashups tab, it produces an error window:
get() returned more than one Purchase -- it returned 2! Lookup parameters
were {'customer': <django.utils.functional.SimpleLazyObject object at
0x7fd9e41a3750>, 'organization_owned': False, 'offering': <Offering: EntityService>}
Also, when trying to publish a widget, after choosing to upload to the FIWARE Lab Store, the POST request to https://mashup.lab.fiware.org/api/markets/publish fails with code 502 and the following response:
{"description": "Something went wrong (see details for more info)",
"details": {"FIWARE Lab": "Unexpected response from Store"}}
I know that some software components have been updated lately so I understand that this might be a transitional bug. Thanks for your help if you can fix it.
As you pointed, that was a temporal problem. You should be able to use the Store portal again.
Anyway, StackOverflow is for asking questions related to programming (visit the help center for more info), so it's better to use the contact info published on the FIWARE catalogue or the fiware-lab-help#lists.fiware.org for this kind of questions/support.

Which HTTP error codes should I create custom error pages for? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
I think it makes sense for 404, since it is very likely that the user may have typed in an incorrect url.
But I'm not sure about the others - I would rather not waste bandwidth and send only minimal error pages back as content if users are not going to see it.
My personal selection:
401: Unauthorized
403: Forbidden
404: Not Found
500: Internal server error
Note that you can have all these pages point to a single php script that will take care of the fancy decoration, and the only variable part will boild down to the error code and name.
You might want to do a special case for 404, but the others are either caused by server failure (if you see these too often, it's time to have a word with your provider) or a user forcibly wandering where he should not (typically trying some raw urls to see if he can access a hidden part of your site), so I expect the niceties should be reduced to the bare minimum :).

How does a competing social network get permission to export data through a facebook app? [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
It says in the app agreement that a competing social network has to get permission to export user data to their website. I noticed that sites like Pinterest and Myspace etc. can do this, did they have to get permission? How does one do this?
-Wayne
http://www.facebook.com/help/?page=220217228006012
Enter your question into help search and get your answer from our database of common questions. If you can’t troubleshoot your issue with our instructions, we’ll provide you with a custom form to contact us for further support.
I've contacted them for other issues that way and eventually got a reply. It might work for you too. I'm not aware of a direct email address.
There is also a fairly vague section on contacting Facebook here: http://developers.facebook.com/policy/contact/

Google Weather API returning strange new error [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I'm using the Google Weather API in an iPhone app, and lately sometimes it has been returning a 403 error, but now it's returning a really funky error saying "Unknown API" no matter what location I enter into it.Example here.
Does anybody know what's going on? I checked the Google Weather Monitoring link and it says everything is okay. What the heck is going on? O.o
I have had the same problem over the past few weeks (random 403 errors) with the Unsupported API message appearing last week.
If you ask me, I think Google has shut the unsuported weather api down for good!
Since Google has announced it will shut down iGoogle - for which the api was used for.
I think you need to start looking for a different free weather api (same as me =( ).
If you analyse the iGoogle page with a weather widget you will notice that the call now uses wunderground.com and no more google weather api
eg: http://igoogle.wunderground.com/cgi-bin/findweather/getForecast?query=47.644199,9.180259&unit=SI&hl=de

How can I enable anonymous posting in OSQA? [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I am wondering about how to enable anonymous posting of question and answer in a OSQA website, like stackoverflow.com does. If OSQA does not support this feature yet, can you please give me a short brief on how can I implement a such feature like that?
Currently users, that are not authenticated cannot ask questions, post comments and answers. Actually the whole concept of Q&A community is based on user authorization. Just try to imagine a "community" where the one who asks is unknown (or call him a guest, if you like), and the ones who answer and comment are also unknown users.
Personally I don't think that the registration process is painful. Actually it's maximally simplified and users can get registered in less than a minute. Anyway, will be glad to hear how you think it can be improved.