[twitter-dev] Search API issue involving server cookies
There appears to be an issue with Twitter's API and cookies. The following yields no results found: GET http://search.twitter.com/search.json?q=%23tweetz HTTP/1.1 Accept: */* Accept-Language: en-us Content-Type: application/x-www-form-urlencoded UA-CPU: AMD64 Accept-Encoding: gzip, deflate User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; Win64; x64; Trident/4.0; .NET CLR 2.0.50727; SLCC2; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; Tablet PC 2.0; .NET4.0C; .NET4.0E) Host: search.twitter.com Connection: Keep-Alive Cookie: k=68.40.12.103.1280961938551221; guest_id=128035711958013764; lang=en; _twitter_sess=BAh7CDoPY3JlYXRlZF9hdGwrCJWulT8qASIKZmxhc2hJQzonQWN0aW9uQ29u %250AdHJvbGxlcjo6Rmxhc2g6OkZsYXNoSGFzaHsABjoKQHVzZWR7ADoHaWQiJWQ3%250AMWIxNzJlZmUzNThmM2Y1NGRkYzYwZTRjZmM1YmNh--0871d612503b63999c65c8c6abefb83f6bed9643 The response is: HTTP/1.0 200 OK Date: Thu, 05 Aug 2010 00:32:14 GMT Server: hi Status: 200 OK X-Served-From: sjc1r085 X-Runtime: 0.02556 Content-Type: application/json; charset=utf-8 X-Timeline-Cache-Hit: Hit X-Served-By: sjc1v012.prod.twitter.com Cache-Control: max-age=15, must-revalidate, max-age=300 Expires: Thu, 05 Aug 2010 00:37:14 GMT Content-Length: 251 Vary: Accept-Encoding X-Varnish: 2325786061 Age: 0 Via: 1.1 varnish X-Cache-Svr: sjc1v012.prod.twitter.com X-Cache: MISS Connection: close {results:[],max_id:20340216330,since_id: 20294384707,refresh_url:?since_id=20340216330q= %23tweetz,results_per_page:15,page:1,completed_in: 0.017987,warning:adjusted since_id to 20294384707 due to temporary error,query:%23tweetz} Issue the same request without the cookies and search returns expected results. I can't remove the cookies since they're server issued (I'm running in a browser). Is there a workaround?
[twitter-dev] Got rejected from becoming API whitelist
Hello guys, My company just got rejected from being API whitelist, and I don't exactly know why. The rejection email said I can refer to http://dev.twitter.com/pages/api_faq#under_limit about the rejection. My guess is that my subordinate put small amount of call number in the application. He has put Direct Message Methods-1,000 call per hour and List Members Methods- 300 call per hour. But our call would be a lot more than this considering UV and PV. So, 1. Is the small call number a problem? 2. I just need to re submit the application with higher number? Thank you in advance.
[twitter-dev] Question question of cursor-enabled GET's and API limits ...
Hi Twitter devs, So does each chunk of a cursor-enabled GET you make count as an API call from your account? And if yes (I'd imagine so), and you may well need to make more successive API calls in an hour than are allotted, does the cursor offset allow you to start where you left off once your API limit rolls over again? Thanks! /John
[twitter-dev] Rate Limit Decrement
I have some questions regarding the message on http://countdowntooauth.com/ ...starting on August 16th, the rate limits on basic authentication will be reduced by roughly 10 calls/hour/day ending on August 31st. Does this mean each user can login/post 150 times per hour on 8/16 and then 140 times per hour on 8/15? or does the rate limit decrease each hour, starting at 12:00 AM on 8/16 with the rate being 0 per hour at 3:00 PM, starting over on 8/17 at 12:00 AM. I appreciate any help w/ regard to this!
[twitter-dev] Re: DMs and followers list
Thanks, one of my colleagues, who is more ajax-savvy than me, suggested similar just a few minutes ago. I appreciate your advice. We will do this, but I probably not top priority. I still wonder what twitter does, since someone I know who does have many followers could not explain what twitter does with his DM followers dropdown Thanks again, Mark On Aug 4, 11:40 am, Marcelo Calbucci marc...@calbucci.com wrote: Mark, you should implement similarly to what Google Auto-suggest does... As users start typing they send AJAX calls back to the servers that return the top 10 matches. As long as your server responds quickly, users are not going to notice because the total latency might be 100 or 200ms, which would enough to keep users happy. -Marcelo On Wed, Aug 4, 2010 at 6:32 AM, Mark Krieger markskrie...@gmail.com wrote: I am working on a twitter application, I want followers to be kept in a dropdown in my application like twitter does when I send a DM from twitter. However, since I have less than 50 followers now (alas), I do not know the twitter behavior when someone has (let's say) 5000 or 1 or even 10 followers. Surely you do not put a gigantic list into that dropdown. But since I cannot test that situation, can someone tell me what twitter itself does? I'd like to more or less do the same as twitter in this case. thanks, Mark -- -Marcelo Twitter: @calbucci http://twitter.com/calbucci | blog.calbucci.com | Seattle 2.0 http://www.seattle20.com/
[twitter-dev] Re: Find all mentions
Hey Sachin - We just released an API call that tells some of the data you're looking for: http://api.infochimps.com/describe/soc/net/tw/influence These are all actionable metrics, no raw data for # of mentions or RTs. It spans a user's entire Twitter timeline. To gather the stats, we've scraping all of Twitter since 2006. Let me know if that helps you at all. Thanks, Jesse Infochimps API Rancher On Jul 20, 10:15 am, Sachin sachinmo...@gmail.com wrote: Using the GET statuses/mentions request I can return all the @mentions and RT's for the authenticating user. The API documentation says that no authentication is required, but since there is no user ID parameter I can see that it does in fact require authentication (reading the forums have confirmed this I think). Does anyone know of a way to get the # of mentions and RTs for a user ID within a timeframe (i.e. last 30 days)? Using the Search API I can get some results in json... but it seems to be only returning the last 8 or so mentions. Does anyone know how applications like Klout are getting these stats? (http://klout.com/uschles/scoreshows 267 mentions and 63 retweets). I'm sure they are still only accurate within a certain timeframe but I'm curious as to how they're getting these stats at all without authentication from the user. Any help would be much appreciated. Thanks, Sachin
[twitter-dev] Re: Search API reporting temporary error
I'm going directly to the URL in question; it only seems to happen to me when I have lang=en anywhere in the url. On Jun 15, 1:35 pm, Mack D. Male master...@gmail.com wrote: There seems to be something wrong with thesearchAPI. It is only returning a tiny subset of what I would expect (after looking at the same query onsearch.twitter.com for instance) and is reporting the following: adjustedsince_idto 16201119561 due to temporary error Any word on what this temporary error is, or when it'll be fixed? I'm using the latest build of TweetSharp, if that makes any difference.
[twitter-dev] Re: max_id being added to search queries?
I've been getting this as well. It only seems to happen to me when I append lang=en to my url. If I leave that off I get the records I expect back. On Jul 19, 5:53 pm, Mark Linsey mjlin...@gmail.com wrote: Hi all, I am using the Twitter Search API. I am finding today that even though I am not providing a max_id or a since_id, both are being added. I am getting a response warning saying that since_id has been adjusted. I assume max_id is being adjusted for the same reason. I am fetching this url:http://search.twitter.com/search.json?q=qwerpoiurpp=100page=1resul... and getting this response: {results:[],max_id:18949422775,since_id:18903514913,refresh_url:?since_id=18949422775q=qwerpoiu,results_per_page:100,page:1,completed_in:0.020541,warning:adjusted since_id to 18903514913 due to temporary error,query:qwerpoiu} I was expecting to get this tweet, which does appear on search.twitter.com:http://twitter.com/mjltest/statuses/18953620545 I assume that these are extra limits put in place today to deal with other issues in the Twitter API. Is there any way of getting recent search results now? -Mark
[twitter-dev] Re: BlackBerry, XAuth and twitterapime
Which OAuth library did you use on your BB? Did you use the Java library? On Aug 4, 7:42 am, Ernandes Jr. ernan...@gmail.com wrote: Hi, I suggest you to get in touch to Twitter API ME support before replacing codes. Send an e-mail to supp...@twapime.com or check project's forum page:http://kenai.com/projects/twitterapime/forums/forum Maybe your issues are already discussed there. Regards, Ernandes On Tue, Aug 3, 2010 at 9:21 PM, BBTweet Media Player bbtweetme...@gmail.com wrote: I am having a very difficult time trying to get XAuth working in my BlackBerry app. I have downloaded twitterapime the hmacsha ecodingand Base64Ecoder did not seem to work for me so I replaced the getSignature method in XAuthSigner with... /** * p * Generate a signature from the given base string. * /p * @param baseString Base string. * @param consumerSecret Consumer secret. * @param tokenSecret Token secret. * @return Signature. */ private static String getSignature(String baseString, String consumerSecret, String tokenSecret) { // byte[] b = HMAC.getHmac(baseString, consumerSecret + '' + tokenSecret); // // // return Base64Encoder.encode(b); String ret = null; try { ret = hmacsha1(baseString, consumerSecret + '' + tokenSecret); } catch (Exception e) { new RuntimeException(e.getMessage()); } return ret; } private static String hmacsha1(String key, String message) throws CryptoTokenException, CryptoUnsupportedOperationException, IOException { HMACKey k = new HMACKey(key.getBytes()); HMAC hmac = new HMAC(k, new SHA1Digest()); hmac.update(message.getBytes()); byte[] mac = hmac.getMAC(); return Base64OutputStream.encodeAsString(mac, 0, mac.length, false, false); } and any base 64 encodings with Base64OutputStream.encodeAsString(mac, 0, mac.length, false, false); I get 401 errors when attempting to get my request token. I can replace my secrets, ids and pass with dummys and place a step by steps of what is going on if that would help? -- Ernandes Jr. - ALL programs are poems. However, NOT all programmers are poets.
[twitter-dev] Re: Rate Limit Decrement
The per-hour rate is decreasing by 10 requests each day until August 31st. 150 on 16/8 140 on 17/8 ... 0 on 31/8 Cheers -N -- @nikf On Aug 4, 10:00 pm, kme km.ens...@gmail.com wrote: I have some questions regarding the message onhttp://countdowntooauth.com/ ...starting on August 16th, the rate limits on basic authentication will be reduced by roughly 10 calls/hour/day ending on August 31st. Does this mean each user can login/post 150 times per hour on 8/16 and then 140 times per hour on 8/15? or does the rate limit decrease each hour, starting at 12:00 AM on 8/16 with the rate being 0 per hour at 3:00 PM, starting over on 8/17 at 12:00 AM. I appreciate any help w/ regard to this!
Re: [twitter-dev] JSONP returning HTML on error
On 5 August 2010 12:19, Remy Sharp r...@leftlogic.com wrote: (...) How far away are we from this being fixed and released, it makes me sad seeing HTML being injected in to JavaScript :'( +1! For every time text/html gets thrown into scripts Brendan Eich kills a kitten. -- André Luís http://id.andr3.net/
[twitter-dev] Re: Using the Authorization header
Hi Tom/Jacky, Thanks for replying. I've seen a couple of places (The Hueniverse page above being one of them) where the realm is included in the Authorization header. I notice that this isn't the case for Twitter though so I'll remove it. (Tried this, first time, it gave a new error 'Could not authorize you using OAuth' I think, but then it went back to throwing 500 errors and serving up the error page) Regarding the timestamps, I'm just going off the OAuth spec http://oauth.net/core/1.0/ says on this. I've been making requests more than 1 second apart at the moment, so the timestamps fullfil the need to be greater or equal to the previous one. Is there anything else I should watch out for with them? Thanks again! ben On Aug 5, 12:37 am, Tom allerleiga...@gmail.com wrote: Oops, silly me, didn't read the full post. Sorry. Make sure to watch for character encoding and timestamps. Especially timestamps are known to cause trouble. 401 errors are almost never an issue at Twitter. Tom On Aug 5, 1:34 am, Tom allerleiga...@gmail.com wrote: You are sending realm= in your Authorization header. It doesn't belong there. ;-) Tom On Aug 4, 6:19 pm, Ben Jones benjamin.david.jo...@gmail.com wrote: Hi all, I'm currently writing my own OAuth lib for use with Twitter and have gotten stuck whilst using the Authorization HTTP header, rather than putting the OAuth parameters in the body. An example of a request that is failing is: POST /1/statuses/update.xml HTTP/1.1 Authorization: OAuth realm=http://api.twitter.com/1/statuses/ update.xml, oauth_consumer_key=x, oauth_token=x, oauth_nonce=x, oauth_timestamp=1280937572, oauth_signature_method=HMAC-SHA1, oauth_version=1.0, oauth_signature=DLPyc3h6BcC5zbGXrUcujvZnqxk= User-Agent: Java/1.6.0_07 Host: api.twitter.com Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2 Connection: keep-alive Content-type: application/x-www-form-urlencoded Content-Length: 53 status=Test%25201%25202%25203%25204%25201280937572396 ...(token etc blanked out, and new lines added in) This results in the server returning a 500 error and the Something is technically wrong. error page. I've talked to another developer who doesn't experience this. I've tried this with the parameters alphabetically ordered, unordered and with and without the 'realm' parameter, which isn't used in thehttp://dev.twitter.com/pages/authpage. I don't have the same problem (as in the 500 error) when I put the OAuth parameters in the request body, but this often fails as well with 401 'Invalid signature' errors. What's strange is that putting the OAuth parameters into the form at Hueniverse's OAuth request signing page (http://tinyurl.com/y9bvjyt) shows them, including the signature, to be correct. If I retry the same request, it eventually works (sometimes it works the first time, just not consistently), so I don't think I'm calculating the signature incorrectly. Are the 401 errors occurring because Twitter is busy, or am I doing something wrong? Thanks in advance, any help would be greatly appreciated! ben
[twitter-dev] Count the favourited tweets of a specific user
Hi there, I'm searching for the possibility to get the number how often tweets of a specific user are marked as a favourite. While searching I came across this feature wish: http://code.google.com/p/twitter-api/issues/detail?id=459, which is marked as Wontfix. favouritedtrue/false/favourited in /1/statuses/show/id won't help, because if I understand right, true is only given, if the authenticated api user has marked this tweet himself as favourite. Is there another posibility to get this number? Or is there anything planned for the future? Thanks for your answer and best wishes. Joachim Seibert / Dipl.-Inf. (FH) //SEIBERT/MEDIA/TECHNOLOGIES -- www.seibert-media.net / http://blog.seibert-media.net smime.p7s Description: S/MIME cryptographic signature
[twitter-dev] How to retreive all tweets in time range in .net
Hi all, I need to retreive all the tweets in a time range (say for last seven days), irrespective of the user who made them. Also,I want to store them in database so that I can use them later.How can I do this in .net . Can anybody please help me. I need this urgently. Thanks in advance! Shikha .
[twitter-dev] Formerly Known As Tweetie Update
Anyone else noticed the upsurge of crash complaints regarding the most recent update? Take a look at the comments in the App Store. Person after person. There are still plenty of people using 3.1.3 since upgrading to 4.0 is irrational on the 3G.
[twitter-dev] Re: Using the Authorization header
Hi Tom/Jacky, Thanks for responding! Apologies if this is a double post, last one didn't seem to go through. I tried removing 'realm' from the Authorization header, and this changed the response the first time, to something like 'Couldn't authenticate you using OAuth', but then returned to the previous behaviour of throwing 500 errors. What should I look out for with regards timestamps? I'm following the advice from the OAuth spec, in that they have to be in seconds, and equal or greater than the last used. Do they have to sync with Twitter's clock? Thanks again! ben On Aug 5, 12:37 am, Tom allerleiga...@gmail.com wrote: Oops, silly me, didn't read the full post. Sorry. Make sure to watch for character encoding and timestamps. Especially timestamps are known to cause trouble. 401 errors are almost never an issue at Twitter. Tom On Aug 5, 1:34 am, Tom allerleiga...@gmail.com wrote: You are sending realm= in your Authorization header. It doesn't belong there. ;-) Tom On Aug 4, 6:19 pm, Ben Jones benjamin.david.jo...@gmail.com wrote: Hi all, I'm currently writing my own OAuth lib for use with Twitter and have gotten stuck whilst using the Authorization HTTP header, rather than putting the OAuth parameters in the body. An example of a request that is failing is: POST /1/statuses/update.xml HTTP/1.1 Authorization: OAuth realm=http://api.twitter.com/1/statuses/ update.xml, oauth_consumer_key=x, oauth_token=x, oauth_nonce=x, oauth_timestamp=1280937572, oauth_signature_method=HMAC-SHA1, oauth_version=1.0, oauth_signature=DLPyc3h6BcC5zbGXrUcujvZnqxk= User-Agent: Java/1.6.0_07 Host: api.twitter.com Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2 Connection: keep-alive Content-type: application/x-www-form-urlencoded Content-Length: 53 status=Test%25201%25202%25203%25204%25201280937572396 ...(token etc blanked out, and new lines added in) This results in the server returning a 500 error and the Something is technically wrong. error page. I've talked to another developer who doesn't experience this. I've tried this with the parameters alphabetically ordered, unordered and with and without the 'realm' parameter, which isn't used in thehttp://dev.twitter.com/pages/authpage. I don't have the same problem (as in the 500 error) when I put the OAuth parameters in the request body, but this often fails as well with 401 'Invalid signature' errors. What's strange is that putting the OAuth parameters into the form at Hueniverse's OAuth request signing page (http://tinyurl.com/y9bvjyt) shows them, including the signature, to be correct. If I retry the same request, it eventually works (sometimes it works the first time, just not consistently), so I don't think I'm calculating the signature incorrectly. Are the 401 errors occurring because Twitter is busy, or am I doing something wrong? Thanks in advance, any help would be greatly appreciated! ben
Re: [twitter-dev] Re: Using the Authorization header
Hi Everyone on this thread, A few clarifications: - The realm isn't required, but we'll take a realm if you provide one. Really, it's a no-op in our system. We don't care if you have it or not, and if you provide it, we don't do anything with it. - Timestamp is important in that the oauth_timestamp in your requests should be within about 5 minutes of our servers. We return the current time in a header within each response, failed or otherwise. One quick way to get a non-rate-limited check on the current time according to twitter is to send a HEAD request to /1/help/test.xml and inspect the Date header, recontextualizing your app's concept of the current time based on that. Back to the original poster's issue, I noticed you're essentially trying to post this status: Test 1 2 3 4 1280937572396 But your POST body shows this status over-encoded: status=Test%25201%25202%25203%25204%25201280937572396 When it should be: status=Test%201%202%203%204%201280937572396 The encoding in your POST body is correct as to what should be in your signature base string. This might be what is causing your invalid signature errors. Taylor On Thu, Aug 5, 2010 at 5:10 AM, Ben Jones benjamin.david.jo...@gmail.comwrote: Hi Tom/Jacky, Thanks for responding! Apologies if this is a double post, last one didn't seem to go through. I tried removing 'realm' from the Authorization header, and this changed the response the first time, to something like 'Couldn't authenticate you using OAuth', but then returned to the previous behaviour of throwing 500 errors. What should I look out for with regards timestamps? I'm following the advice from the OAuth spec, in that they have to be in seconds, and equal or greater than the last used. Do they have to sync with Twitter's clock? Thanks again! ben On Aug 5, 12:37 am, Tom allerleiga...@gmail.com wrote: Oops, silly me, didn't read the full post. Sorry. Make sure to watch for character encoding and timestamps. Especially timestamps are known to cause trouble. 401 errors are almost never an issue at Twitter. Tom On Aug 5, 1:34 am, Tom allerleiga...@gmail.com wrote: You are sending realm= in your Authorization header. It doesn't belong there. ;-) Tom On Aug 4, 6:19 pm, Ben Jones benjamin.david.jo...@gmail.com wrote: Hi all, I'm currently writing my own OAuth lib for use with Twitter and have gotten stuck whilst using the Authorization HTTP header, rather than putting the OAuth parameters in the body. An example of a request that is failing is: POST /1/statuses/update.xml HTTP/1.1 Authorization: OAuth realm=http://api.twitter.com/1/statuses/ update.xml, oauth_consumer_key=x, oauth_token=x, oauth_nonce=x, oauth_timestamp=1280937572, oauth_signature_method=HMAC-SHA1, oauth_version=1.0, oauth_signature=DLPyc3h6BcC5zbGXrUcujvZnqxk= User-Agent: Java/1.6.0_07 Host: api.twitter.com Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2 Connection: keep-alive Content-type: application/x-www-form-urlencoded Content-Length: 53 status=Test%25201%25202%25203%25204%25201280937572396 ...(token etc blanked out, and new lines added in) This results in the server returning a 500 error and the Something is technically wrong. error page. I've talked to another developer who doesn't experience this. I've tried this with the parameters alphabetically ordered, unordered and with and without the 'realm' parameter, which isn't used in thehttp:// dev.twitter.com/pages/authpage. I don't have the same problem (as in the 500 error) when I put the OAuth parameters in the request body, but this often fails as well with 401 'Invalid signature' errors. What's strange is that putting the OAuth parameters into the form at Hueniverse's OAuth request signing page (http://tinyurl.com/y9bvjyt) shows them, including the signature, to be correct. If I retry the same request, it eventually works (sometimes it works the first time, just not consistently), so I don't think I'm calculating the signature incorrectly. Are the 401 errors occurring because Twitter is busy, or am I doing something wrong? Thanks in advance, any help would be greatly appreciated! ben
Re: [twitter-dev] Please help - OCRegister is search rate-limited, but we need to use it as a reporting tool
Hi Sonya, To request additional privileges for Search, just send an email to a...@twitter.com from the same email address as you have associated with your Twitter account. Include as many details as possible, including the IP addresses your office broadcasts from, and if possible, some example queries that you run. While I can't predict whether your request will be approved, it's the official channel at the moment to request these kinds of additional permissions. Thanks, Taylor On Wed, Aug 4, 2010 at 2:53 PM, sonyanews sonyan...@gmail.com wrote: Hi and thanks for any help. I'm the social leader for the newsroom at the Orange County Register. We use Twitter's search every day as a tool to help us find news tips and leads. A few times every day we get locked out of search because we went over the limit. Twitter search is a requirement for us as it fulfills 1 of our 3 goals in using social media (reporting, customer service and public service). Thanks for any and all help!
Re: [twitter-dev] GAE Twitter API Access
Hi there, The library you're trying to use only uses basic authentication which is about to completely go away. While there are many reasons your integration could not be working, the most likely is that you're being rate limited before you even make your first API call. If you use OAuth for authentication, you'll have much more fidelity for making API calls as the shared IP address won't be the single gating factor any more. Can you describe a bit more about what your intentions are and in what way your calls are failing? Thanks, Taylor On Wed, Aug 4, 2010 at 1:38 AM, D hidi...@gmail.com wrote: I am using this http://python-twitter.googlecode.com/hg/twitter.py file to access Twitter's UserTimeline and ProfileImg from GAE - Google App Engine. My GAE app url is http://test.appspot.com and it is accessed using custom domain http://www.mydomain.com. I tried both URL's in twitter application registration, but its not allowing me to access UserTimeLine or ProfileImg on my website. Am I doing something wrong? Please Help.
[twitter-dev] Re: How to retreive all tweets in time range in .net
You can't specify a time range, only a count and since_id. You will have to retrieve enough tweets (to the maximum of 3200, if necessary) and then select the tweets you want. Tom On Aug 5, 11:35 am, Shikha Gupta shikhag.gu...@yahoo.com wrote: Hi all, I need to retreive all the tweets in a time range (say for last seven days), irrespective of the user who made them. Also,I want to store them in database so that I can use them later.How can I do this in .net . Can anybody please help me. I need this urgently. Thanks in advance! Shikha .
[twitter-dev] Re: Got rejected from becoming API whitelist
No, you will most likely need to change your application. I have no idea what kind of application you are using. If you want to send 1000 Direct Messages per hour, then you may want to reconsider your application - Twitter will not allow sending this many Direct Messages. The link you provided is about how to limit the amount of calls. In most cases, applications will work fine by using the Stream API and a limited number of REST requests. But this depends on your application. Tom On Aug 5, 1:47 am, Jeansu Park jeansu.p...@gmail.com wrote: Hello guys, My company just got rejected from being API whitelist, and I don't exactly know why. The rejection email said I can refer tohttp://dev.twitter.com/pages/api_faq#under_limit about the rejection. My guess is that my subordinate put small amount of call number in the application. He has put Direct Message Methods-1,000 call per hour and List Members Methods- 300 call per hour. But our call would be a lot more than this considering UV and PV. So, 1. Is the small call number a problem? 2. I just need to re submit the application with higher number? Thank you in advance.
Re: [twitter-dev] Re: OAuth 401 Error
Hi All, If you're using OAuth, you should have 350 API calls per hour on GET requests. The one-hour window begins after your first request within the group. Most POST requests are not rate limited, but have certain kinds of business logic limits that change from time to time. You may be running into the maximum tweets your account can send per day (a site-wide limitation) or it's possible you're trying to send the same tweet more than once in a short period. If you provide more details about the exact error message you received we can help you further. Thanks, Taylor On Thu, Aug 5, 2010 at 2:56 AM, James8472 jame...@gmx.li wrote: I've got the same problem, I got a token, post one status update successfully and when I want to post another status update, I got a 401 Error. Can I get an unlimited access_token oder s.th. like that?
Re: [twitter-dev] Count the favourited tweets of a specific user
Hi Joachim. There's no direct way to accomplish this right now and we don't have any official plans to enable this at this time. Taylor On Thu, Aug 5, 2010 at 5:46 AM, Joachim Seibert jseib...@seibert-media.netwrote: Hi there, I'm searching for the possibility to get the number how often tweets of a specific user are marked as a favourite. While searching I came across this feature wish: http://code.google.com/p/twitter-api/issues/detail?id=459, which is marked as Wontfix. favouritedtrue/false/favourited in /1/statuses/show/id won't help, because if I understand right, true is only given, if the authenticated api user has marked this tweet himself as favourite. Is there another posibility to get this number? Or is there anything planned for the future? Thanks for your answer and best wishes. Joachim Seibert / Dipl.-Inf. (FH) //SEIBERT/MEDIA/TECHNOLOGIES -- www.seibert-media.net / http://blog.seibert-media.net
Re: [twitter-dev] Search API issue involving server cookies
Hi Mike, Thanks for reporting this bug, I'm able to reproduce and I'll report it to the team. Thanks! Taylor On Wed, Aug 4, 2010 at 5:35 PM, Mike Ward m...@blueonionsoftware.comwrote: There appears to be an issue with Twitter's API and cookies. The following yields no results found: GET http://search.twitter.com/search.json?q=%23tweetz HTTP/1.1 Accept: */* Accept-Language: en-us Content-Type: application/x-www-form-urlencoded UA-CPU: AMD64 Accept-Encoding: gzip, deflate User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; Win64; x64; Trident/4.0; .NET CLR 2.0.50727; SLCC2; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; Tablet PC 2.0; .NET4.0C; .NET4.0E) Host: search.twitter.com Connection: Keep-Alive Cookie: k=68.40.12.103.1280961938551221; guest_id=128035711958013764; lang=en; _twitter_sess=BAh7CDoPY3JlYXRlZF9hdGwrCJWulT8qASIKZmxhc2hJQzonQWN0aW9uQ29u %250AdHJvbGxlcjo6Rmxhc2g6OkZsYXNoSGFzaHsABjoKQHVzZWR7ADoHaWQiJWQ3%250AMWIxNzJlZmUzNThmM2Y1NGRkYzYwZTRjZmM1YmNh--0871d612503b63999c65c8c6abefb83f6bed9643 The response is: HTTP/1.0 200 OK Date: Thu, 05 Aug 2010 00:32:14 GMT Server: hi Status: 200 OK X-Served-From: sjc1r085 X-Runtime: 0.02556 Content-Type: application/json; charset=utf-8 X-Timeline-Cache-Hit: Hit X-Served-By: sjc1v012.prod.twitter.com Cache-Control: max-age=15, must-revalidate, max-age=300 Expires: Thu, 05 Aug 2010 00:37:14 GMT Content-Length: 251 Vary: Accept-Encoding X-Varnish: 2325786061 Age: 0 Via: 1.1 varnish X-Cache-Svr: sjc1v012.prod.twitter.com X-Cache: MISS Connection: close {results:[],max_id:20340216330,since_id: 20294384707,refresh_url:?since_id=20340216330q= %23tweetz,results_per_page:15,page:1,completed_in: 0.017987,warning:adjusted since_id to 20294384707 due to temporary error,query:%23tweetz} Issue the same request without the cookies and search returns expected results. I can't remove the cookies since they're server issued (I'm running in a browser). Is there a workaround?
[twitter-dev] Twitter Search API Problems
Hi all I have problems with twitter api. I made an application (PHP) that use twitter api (http://search.twitter.com/search.atom?q=) and I use cURL to comunicate both. Until yesterday all worked fine but today all goes bad, twitter api do not reponse through cURL (php) but twitter api works fine by the browser. so, do you have some limits of request to twitter api by rss or what ? PS: sorry for my bad english, I'm from southamerica, Chile. Greatings
[twitter-dev] Re: How to retreive all tweets in time range in .net
I need to retreive all the tweets in a time range (say for last seven days), irrespective of the user who made them. That's going to be a LOT of tweets. Our site http://stltweets.com follows just St. Louis located people, mentions and 1500+ curated users. We get 6 unique tweets every day... and that's a tiny little slice of all tweets... Also,I want to store them in database so that I can use them later.How can I do this in .net . There are many strategies... and several libraries. I personally use the LinqToTwitter library from CodePlex to do the Twitter side of things, and use a SQL Server 2008 database via simple DataReader stuff. The thing is,there is no way you can do this with the firehose (which is the only way you will get all tweets), because no database is going to commit that fast. I don't have any issues keeping up with my stream, but you're talking about a ton more data. In any case, it can be done quite easily in .Net... start with http://linqtotwitter.codeplex.com and a simple schema to capture the data. You'll have to figure out how you are going to use the data to properly design a schema, but for simple use something like this: SET ANSI_NULLS ON SET QUOTED_IDENTIFIER ON GO CREATE TABLE [dbo].[Tweep]( [UserID] [bigint] NOT NULL, [ScreenName] [nvarchar](20) NOT NULL, [Name] [nvarchar](30) NOT NULL, [Location] [nvarchar](30) NOT NULL, [Description] [nvarchar](160) NOT NULL, [ProfileImageUrl] [nvarchar](max) NOT NULL, [HomepageUrl] [nvarchar](max) NOT NULL, [Followers] [int] NOT NULL, [Following] [int] NOT NULL, [Listed] [int] NOT NULL, [Tweets] [bigint] NOT NULL, [Freshness] [datetime] NOT NULL, [Verified] [bit] NOT NULL, CONSTRAINT [PK_Tweep] PRIMARY KEY CLUSTERED ( [UserID] ASC ) GO CREATE UNIQUE NONCLUSTERED INDEX [IX_Tweep_ScreenName] ON [dbo]. [Tweep] ( [ScreenName] ASC ) GO CREATE TABLE [dbo].[Tweet]( [TweetID] [bigint] NOT NULL, [TweepUserID] [bigint] NOT NULL, [CreatedTime] [datetime] NOT NULL, [Message] [nvarchar](max) NOT NULL, [Source] [nchar](100) NOT NULL, CONSTRAINT [PK_Tweet] PRIMARY KEY CLUSTERED ( [TweetID] ASC ) GO ALTER TABLE [dbo].[Tweet] WITH CHECK ADD CONSTRAINT [FK_Tweet_Tweep] FOREIGN KEY([TweepUserID]) REFERENCES [dbo].[Tweep] ([UserID]) GO ALTER TABLE [dbo].[Tweet] CHECK CONSTRAINT [FK_Tweet_Tweep] GO Hope this gets you started...
Re: [twitter-dev] Re: BlackBerry, XAuth and twitterapime
I do not have a BB to test the API. However, I have received some e-mails from people facing same problem as you. Some of them were making some small mistakes and then it worked, however, others did not have much success. At this moment, I am trying to find the route cause of many problems with BB. I hope to find it soon and then release a fix for release 1.4. By the way. which is your BB's OS version? Regards, Ernandes On Thu, Aug 5, 2010 at 4:56 AM, Bess bess...@gmail.com wrote: Which OAuth library did you use on your BB? Did you use the Java library? On Aug 4, 7:42 am, Ernandes Jr. ernan...@gmail.com wrote: Hi, I suggest you to get in touch to Twitter API ME support before replacing codes. Send an e-mail to supp...@twapime.com or check project's forum page:http://kenai.com/projects/twitterapime/forums/forum Maybe your issues are already discussed there. Regards, Ernandes On Tue, Aug 3, 2010 at 9:21 PM, BBTweet Media Player bbtweetme...@gmail.com wrote: I am having a very difficult time trying to get XAuth working in my BlackBerry app. I have downloaded twitterapime the hmacsha ecodingand Base64Ecoder did not seem to work for me so I replaced the getSignature method in XAuthSigner with... /** * p * Generate a signature from the given base string. * /p * @param baseString Base string. * @param consumerSecret Consumer secret. * @param tokenSecret Token secret. * @return Signature. */ private static String getSignature(String baseString, String consumerSecret, String tokenSecret) { // byte[] b = HMAC.getHmac(baseString, consumerSecret + '' + tokenSecret); // // // return Base64Encoder.encode(b); String ret = null; try { ret = hmacsha1(baseString, consumerSecret + '' + tokenSecret); } catch (Exception e) { new RuntimeException(e.getMessage()); } return ret; } private static String hmacsha1(String key, String message) throws CryptoTokenException, CryptoUnsupportedOperationException, IOException { HMACKey k = new HMACKey(key.getBytes()); HMAC hmac = new HMAC(k, new SHA1Digest()); hmac.update(message.getBytes()); byte[] mac = hmac.getMAC(); return Base64OutputStream.encodeAsString(mac, 0, mac.length, false, false); } and any base 64 encodings with Base64OutputStream.encodeAsString(mac, 0, mac.length, false, false); I get 401 errors when attempting to get my request token. I can replace my secrets, ids and pass with dummys and place a step by steps of what is going on if that would help? -- Ernandes Jr. - ALL programs are poems. However, NOT all programmers are poets. -- Ernandes Jr. - ALL programs are poems. However, NOT all programmers are poets.
Re: [twitter-dev] Got rejected from becoming API whitelist
It's more likely you are trying to build an application that violates Twitter TOS (like hey, I'll help you get hundreds of followers), or that your Service will enable a Spammy behavior by users. I doubt it has anything to do with the technical aspects. I've got Whitelisted 4 times on 4 different services without any problem. -Marcelo On Wed, Aug 4, 2010 at 4:47 PM, Jeansu Park jeansu.p...@gmail.com wrote: Hello guys, My company just got rejected from being API whitelist, and I don't exactly know why. The rejection email said I can refer to http://dev.twitter.com/pages/api_faq#under_limit about the rejection. My guess is that my subordinate put small amount of call number in the application. He has put Direct Message Methods-1,000 call per hour and List Members Methods- 300 call per hour. But our call would be a lot more than this considering UV and PV. So, 1. Is the small call number a problem? 2. I just need to re submit the application with higher number? Thank you in advance. -- -Marcelo Twitter: @calbucci http://twitter.com/calbucci | blog.calbucci.com | Seattle 2.0 http://www.seattle20.com/
[twitter-dev] Re: In Reply To
Hey gloopymoop, Like the original thread said, you can use the search API to search for tweets to that particular user and check the in_reply_to_status_id field. If you want to track the chain (ie all the replies to @dtran320's reply to @gloopymoop's original tweet), then you have to periodically search each user in the chain. A more efficient way of achieving this would be to use the Track or Follow streaming API methods and add one users as they join the reply chain: http://dev.twitter.com/pages/streaming_api_methods#follow On Aug 3, 6:49 pm, gloopymoop nerdf...@gmail.com wrote: I believe this has been discussed before here, so forgive me if this is redundant. http://groups.google.com/group/twitter-development-talk/browse_thread... I would like to build a chain of replies originating from a single tweet. The user will look at the first tweet, then be presented with the replies to this tweet and be able to move along the chain from the head down the branches. What would be the best way of implementing this? Requiring users to include a hashtag then periodically searching and keeping a local database of which tweets are in_reply_to which?
[twitter-dev] AS3 Support?
Is there any kind of AS3 support for the twitter api? I am struggling trying to cobble together information on the topic and it seems like everything is outdated. This is the demo I am trying to implement but it doesnt seem to be making any requests with the connect() method: http://blog.yoz.sk/2010/04/twitterlogger-class-to-full-twitter-api-access-from-actionscript-3/ Thanks for any help, Dave
[twitter-dev] Help with an application.
Hi! My name is Victoria and I am making a twitter application that sends tweets to the user´s twitter account according to the actions the user does on the application webpage. For example if the user pushes a botton that says hello, the application sends a tweet that says hello concatenated to a 5 digit random number (to avoid two tweets with the same message which I know Twitter doesn´t take). The problem is the application sends the tweets some of the times but not all of them... For example if the application is suppose to send 5 tweets, only 3 of them gets send, or sometimes 4. I believe it has nothing to do with the variable where I put the tweet message (it´s a session variable concatenated with a string and the random number). I will appreciate your help, thanks, Victoria P.
[twitter-dev] Re: How is this a solution?
i have seen it stated a few times that this solution is still being evaluated and it sounds like it might not see the light of day (which is fine by me - it seemed kind of convoluted to begin with). however, the oAuth deadline is fast approaching - what options do open source apps have in order to make the switch in time? requests to @twitterapi have gone unanswered and there have been no further updates as to how to proceed. i will implement whatever alternative is offered, but since the key exchange is not publicly available and may never be, what is the recommended approach for keeping the consumer secret a secret? On Jul 19, 7:21 am, Taylor Singletary taylorsinglet...@twitter.com wrote: We're continuing to experiment with the feasibility of this feature, and SSL support is one gating factor among a few others. There are future solutions that we can envision that would obviate the need for this less-than-friendly model. Taylor On Sat, Jul 17, 2010 at 12:35 PM, Abraham Williams 4bra...@gmail.comwrote: There is an open issue for SSL support on dev.twitter.com - http://code.google.com/p/twitter-api/issues/detail?id=1665 Abraham - Abraham Williams | Hacker Advocate |http://abrah.am @abraham |http://projects.abrah.am|http://blog.abrah.am This email is: [ ] shareable [x] ask first [ ] private. On Fri, Jul 16, 2010 at 06:41, Decklin Foster deck...@red-bean.comwrote: Excerpts from Cameron Kaiser's message of Fri Jul 16 01:00:55 -0400 2010: Actually, no. The process creates a completely new app key and secret cloned from the original one. They do not have anything in common with each other apart from the name and branding (and the user can change it later; it's just a regular old app key). You can see this in action by looking at TTYtter, which uses the process. They are not the same key and secret at all. When was this process turned on? (I just checked out TTYtter and indeed, it works.) I asked for an update a couple weeks ago but I hadn't seen anything here or on the announce list, so I assumed other things had taken priority. -- things change. deck...@red-bean.com
Re: [twitter-dev] Re: How is this a solution?
Hi Everyone, The key exchange solution will not be ready for the cut off, unfortunately. If you want to distribute an open source application or library, it should either: - consume only public resources not requiring authentication - be distributed without consumer keys and secrets. If your API key has been afforded any kind of privileges, such as xAuth, we ask that you be especially vigilant in not exposing your application secrets in easily accesible ways. I hope the logic in that is self-evident. We know this isn't ideal. This will be easier some day -- we want it to be, open source developers consumers *need* it to be, and the push for a more frictionless user experience across platform products demand it to be so. But we're supporting OAuth 1.0a right now, and for the safety of our users, for the ecosystem, and for you: please don't distribute API tokens and secrets in your open source projects. Taylor Singletary http://twitter.com/episod On Thu, Aug 5, 2010 at 1:34 PM, briandunnington briandunning...@gmail.comwrote: i have seen it stated a few times that this solution is still being evaluated and it sounds like it might not see the light of day (which is fine by me - it seemed kind of convoluted to begin with). however, the oAuth deadline is fast approaching - what options do open source apps have in order to make the switch in time? requests to @twitterapi have gone unanswered and there have been no further updates as to how to proceed. i will implement whatever alternative is offered, but since the key exchange is not publicly available and may never be, what is the recommended approach for keeping the consumer secret a secret? On Jul 19, 7:21 am, Taylor Singletary taylorsinglet...@twitter.com wrote: We're continuing to experiment with the feasibility of this feature, and SSL support is one gating factor among a few others. There are future solutions that we can envision that would obviate the need for this less-than-friendly model. Taylor On Sat, Jul 17, 2010 at 12:35 PM, Abraham Williams 4bra...@gmail.com wrote: There is an open issue for SSL support on dev.twitter.com - http://code.google.com/p/twitter-api/issues/detail?id=1665 Abraham - Abraham Williams | Hacker Advocate |http://abrah.am @abraham |http://projects.abrah.am|http://blog.abrah.am This email is: [ ] shareable [x] ask first [ ] private. On Fri, Jul 16, 2010 at 06:41, Decklin Foster deck...@red-bean.com wrote: Excerpts from Cameron Kaiser's message of Fri Jul 16 01:00:55 -0400 2010: Actually, no. The process creates a completely new app key and secret cloned from the original one. They do not have anything in common with each other apart from the name and branding (and the user can change it later; it's just a regular old app key). You can see this in action by looking at TTYtter, which uses the process. They are not the same key and secret at all. When was this process turned on? (I just checked out TTYtter and indeed, it works.) I asked for an update a couple weeks ago but I hadn't seen anything here or on the announce list, so I assumed other things had taken priority. -- things change. deck...@red-bean.com
[twitter-dev] search.twitter.com/search and api.twitter.com/1/search not returning the same.
Hi there, I was under the impression, maybe falsely, that I could make a Twitter Search request to api.twitter.com/1/search as well as search.twitter.com, and I've been using the api.twitter.com for a while now, mainly because I wanted to specify the version to prevent version changes from breaking my code (which it has in the past). However I'm now getting the different results from the two endpoints: From this endpoint: https://api.twitter.com/1/search.json?q=superbikes I get as a result: {statuses: [40825857259,40827308851,40828019793,40830197255,40831193039,40832571529,40833377437,40833526201,40833626835,40834185577,40834533109,40835446369,40835933327,40836359953,40836960689,40837682441],created_in: 0.008378} Where as from: https://search.twitter.com/search.json?q=superbikes I get a correct response. Which should I use? And how can I protect myself from major code changes? Also, I can switch back to search.twitter.com, but I have an App live in the App Store that was working great and now suddenly isn't working because of this, and an update will be subject to a week long delay by Apple. Please, please, please could you make api.twitter.com/search match search.twitter.com at least for the next week. Many thanks, Keith (@keefmoon)
Re: [twitter-dev] search.twitter.com/search and api.twitter.com/1/search not returning the same.
Hi Keef, At this time, api.twitter.com/1/search doesn't really exist. Except for when it does. It's an undocumented end point and we'd like everyone to move away from it. Because it is janky. Please use search.twitter.com for your search operations for now. Taylor On Thu, Aug 5, 2010 at 4:17 PM, Keef keef.m...@gmail.com wrote: Hi there, I was under the impression, maybe falsely, that I could make a Twitter Search request to api.twitter.com/1/search as well as search.twitter.com, and I've been using the api.twitter.com for a while now, mainly because I wanted to specify the version to prevent version changes from breaking my code (which it has in the past). However I'm now getting the different results from the two endpoints: From this endpoint: https://api.twitter.com/1/search.json?q=superbikes I get as a result: {statuses: [40825857259,40827308851,40828019793,40830197255,40831193039,40832571529,40833377437,40833526201,40833626835,40834185577,40834533109,40835446369,40835933327,40836359953,40836960689,40837682441],created_in: 0.008378} Where as from: https://search.twitter.com/search.json?q=superbikes I get a correct response. Which should I use? And how can I protect myself from major code changes? Also, I can switch back to search.twitter.com, but I have an App live in the App Store that was working great and now suddenly isn't working because of this, and an update will be subject to a week long delay by Apple. Please, please, please could you make api.twitter.com/search match search.twitter.com at least for the next week. Many thanks, Keith (@keefmoon)
[twitter-dev] Re: In Reply To
Thankyou for your reply. I'm a little unsure as to how the streaming API method would work.. can you give me an example ? I would still have to create a local database of the chain, right? On Aug 6, 3:58 am, David dtran...@gmail.com wrote: Hey gloopymoop, Like the original thread said, you can use the search API to search for tweets to that particular user and check the in_reply_to_status_id field. If you want to track the chain (ie all the replies to @dtran320's reply to @gloopymoop's original tweet), then you have to periodically search each user in the chain. A more efficient way of achieving this would be to use the Track or Follow streaming API methods and add one users as they join the reply chain:http://dev.twitter.com/pages/streaming_api_methods#follow On Aug 3, 6:49 pm, gloopymoop nerdf...@gmail.com wrote: I believe this has been discussed before here, so forgive me if this is redundant. http://groups.google.com/group/twitter-development-talk/browse_thread... I would like to build a chain of replies originating from a single tweet. The user will look at the first tweet, then be presented with the replies to this tweet and be able to move along the chain from the head down the branches. What would be the best way of implementing this? Requiring users to include a hashtag then periodically searching and keeping a local database of which tweets are in_reply_to which?
[twitter-dev] Re: BlackBerry, XAuth and twitterapime
Ernandes, Thanks for the response. I am sure there is something small I am doing wrong. I did grab twitter4j and made a simple j2se app to make sure I could use my consumer key and secret and XAuth worked. So I know my account is good at least. I am now trying to hand code the example on http://dev.twitter.com/pages/xauth to make sure I can properly encode a header. Everything worked fine using BASIC. I do not see why they had to make it so hard. I am using the BB 5 and 6 OSs. On Aug 5, 2:39 pm, Ernandes Jr. ernan...@gmail.com wrote: I do not have a BB to test the API. However, I have received some e-mails from people facing same problem as you. Some of them were making some small mistakes and then it worked, however, others did not have much success. At this moment, I am trying to find the route cause of many problems with BB. I hope to find it soon and then release a fix for release 1.4. By the way. which is your BB's OS version? Regards, Ernandes On Thu, Aug 5, 2010 at 4:56 AM, Bess bess...@gmail.com wrote: Which OAuth library did you use on your BB? Did you use the Java library? On Aug 4, 7:42 am, Ernandes Jr. ernan...@gmail.com wrote: Hi, I suggest you to get in touch to Twitter API ME support before replacing codes. Send an e-mail to supp...@twapime.com or check project's forum page:http://kenai.com/projects/twitterapime/forums/forum Maybe your issues are already discussed there. Regards, Ernandes On Tue, Aug 3, 2010 at 9:21 PM, BBTweet Media Player bbtweetme...@gmail.com wrote: I am having a very difficult time trying to get XAuth working in my BlackBerry app. I have downloaded twitterapime the hmacsha ecodingand Base64Ecoder did not seem to work for me so I replaced the getSignature method in XAuthSigner with... /** * p * Generate a signature from the given base string. * /p * @param baseString Base string. * @param consumerSecret Consumer secret. * @param tokenSecret Token secret. * @return Signature. */ private static String getSignature(String baseString, String consumerSecret, String tokenSecret) { // byte[] b = HMAC.getHmac(baseString, consumerSecret + '' + tokenSecret); // // // return Base64Encoder.encode(b); String ret = null; try { ret = hmacsha1(baseString, consumerSecret + '' + tokenSecret); } catch (Exception e) { new RuntimeException(e.getMessage()); } return ret; } private static String hmacsha1(String key, String message) throws CryptoTokenException, CryptoUnsupportedOperationException, IOException { HMACKey k = new HMACKey(key.getBytes()); HMAC hmac = new HMAC(k, new SHA1Digest()); hmac.update(message.getBytes()); byte[] mac = hmac.getMAC(); return Base64OutputStream.encodeAsString(mac, 0, mac.length, false, false); } and any base 64 encodings with Base64OutputStream.encodeAsString(mac, 0, mac.length, false, false); I get 401 errors when attempting to get my request token. I can replace my secrets, ids and pass with dummys and place a step by steps of what is going on if that would help? -- Ernandes Jr. - ALL programs are poems. However, NOT all programmers are poets. -- Ernandes Jr. - ALL programs are poems. However, NOT all programmers are poets.
[twitter-dev] Twitter streaming api
I'm using the Twitter Streaming api (Ror TwitterStream) , and I'm setting the client to follow a set of user accounts (using the account IDs). But it seems like I'm getting tweets from accounts I don't follow . Did anyone ever encounter this before ?
[twitter-dev] Re: search.twitter.com/search and api.twitter.com/1/search not returning the same.
Taylor, Thanks for the reply. Is there any chance of it not being janky for the next week? Please. I really need time to get my update fix through the Apple approval process. Thanks, Keith On Aug 6, 12:44 am, Taylor Singletary taylorsinglet...@twitter.com wrote: Hi Keef, At this time, api.twitter.com/1/search doesn't really exist. Except for when it does. It's an undocumented end point and we'd like everyone to move away from it. Because it is janky. Please use search.twitter.com for your search operations for now. Taylor On Thu, Aug 5, 2010 at 4:17 PM, Keef keef.m...@gmail.com wrote: Hi there, I was under the impression, maybe falsely, that I could make a Twitter Search request to api.twitter.com/1/search as well as search.twitter.com, and I've been using the api.twitter.com for a while now, mainly because I wanted to specify the version to prevent version changes from breaking my code (which it has in the past). However I'm now getting the different results from the two endpoints: From this endpoint: https://api.twitter.com/1/search.json?q=superbikes I get as a result: {statuses: [40825857259,40827308851,40828019793,40830197255,40831193039,40832571529,40 833377437,40833526201,40833626835,40834185577,40834533109,40835446369,40835 933327,40836359953,40836960689,40837682441],created_in: 0.008378} Where as from: https://search.twitter.com/search.json?q=superbikes I get a correct response. Which should I use? And how can I protect myself from major code changes? Also, I can switch back to search.twitter.com, but I have an App live in the App Store that was working great and now suddenly isn't working because of this, and an update will be subject to a week long delay by Apple. Please, please, please could you make api.twitter.com/search match search.twitter.com at least for the next week. Many thanks, Keith (@keefmoon)
[twitter-dev] Re: Got rejected from becoming API whitelist
So this is the application sent. Could anyone tell me how I should correct it? Describe your project in detail [Specify the methods you'll be using] OAuth Methods Status Methods Timeline Methods Account Methods User Methods Direct Message Methods List Methods List Members Methods [the functionality of your application] tweet Create reply Create retweet Create Direct Message Create show timeline show profile Compile show Celebrities's tweets [the expected frequency of use] OAuth Methods Status Methods Timeline Methods Account Methods User Methods Direct Message Methods - 1,000 call per hour List Methods List Members Methods - 300 call per hour On Aug 5, 8:47 am, Jeansu Park jeansu.p...@gmail.com wrote: Hello guys, My company just got rejected from being API whitelist, and I don't exactly know why. The rejection email said I can refer tohttp://dev.twitter.com/pages/api_faq#under_limit about the rejection. My guess is that my subordinate put small amount of call number in the application. He has put Direct Message Methods-1,000 call per hour and List Members Methods- 300 call per hour. But our call would be a lot more than this considering UV and PV. So, 1. Is the small call number a problem? 2. I just need to re submit the application with higher number? Thank you in advance.
[twitter-dev] OAuth singing on BlackBerry
I am having a really tough time trying to figure out how to sign my OAuth request. I am trying to follow the example at http://dev.twitter.com/pages/xauth and my signature does not come out the same as it does in the example... I am doing public static void xauth(){ try { String twitter_url=https://api.twitter.com/oauth/ access_token; String oauth_consumer_key = sGNxxnqgZRHUt6NunK3uw; String oauth_consumer_secret = 5kEQypKe7lFHnufLtsocB1vAzO07xLFgp2Pc4sp2vk; String oauth_nonce = WLxsobj4rhS2xmCbaAeT4aAkRfx4vSHX4OnYpTE77hA; String oauth_signature_method = HMAC-SHA1; String oauth_timestamp = 1276101652; String oauth_version = 1.0; String x_auth_mode = client_auth; String x_auth_password = %123!aZ+()456242134; String x_auth_username = tpFriendlyGiant; String postBody = x_auth_mode=+x_auth_mode +x_auth_password=+encodeUTF8(x_auth_password)+ x_auth_username=+encodeUTF8(x_auth_username); String baseString = POST+encodeUTF8(twitter_url)+ oauth_consumer_key%3D+oauth_consumer_key + %26oauth_nonce%3D+oauth_nonce+ %26oauth_signature_method%3D+oauth_signature_method+ %26oauth_timestamp%3D+oauth_timestamp+ %26oauth_version%3D+oauth_version+ %26+encodeUTF8(postBody); String signingSecret = encodeUTF8(oauth_consumer_secret) +; String signature = hmacsha1(signingSecret, baseString); String header = new StringBuffer(OAuth oauth_nonce= \).append(oauth_nonce).append(\, oauth_signature_method=\) .append(oauth_signature_method).append(\, oauth_timestamp=\).append(oauth_timestamp).append(\, oauth_consumer_key=\) .append(oauth_consumer_key).append(\, oauth_signature=\).append(signature).append(\, oauth_version=\) .append(oauth_version).append(\).toString(); System.out.println(Header = + header); } catch (CryptoTokenException e) { // TODO Auto-generated catch block e.printStackTrace(); } catch (CryptoUnsupportedOperationException e) { // TODO Auto-generated catch block e.printStackTrace(); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } } private static String hmacsha1(String key, String message) throws CryptoTokenException, CryptoUnsupportedOperationException, IOException { HMACKey k = new HMACKey(key.getBytes()); HMAC hmac = new HMAC(k, new SHA1Digest()); hmac.update(message.getBytes()); byte[] mac = hmac.getMAC(); return Base64OutputStream.encodeAsString(mac, 0, mac.length, false, false); } Everything matches the example, but when they sign they get... oauth_signature=yUDBrcMMm6ghqBEKCFKVoJPIacU%3D and I get... MUYmiobRdoK6s0ZVqo4xQNNO17w= Can anyone see anything I am doing wrong? Thanks, Kevin
[twitter-dev] Re: What tools do you use?
[Bringing this old stickied thread back up for an announcement... apologies for semi-broken threading.] With basic auth on the way out at Twitter, I've wanted a way to make requests from the command line just as I used to with curl. Rather than implementing an HTTP client in Ruby/Python/whatever, I decided to do this as a shell script wrapping curl: http://github.com/decklin/curlicue It's really just curl under the hood, so you have access to all your favorite command-line options. It should work with any OAuth 1.0a service, not just Twitter. There is of course an initial setup step that requires your consumer key and secret, but if you save your credentials in the correct location after that, you can pretty much just replace curl with curlicue in commands and forget about it. Please direct any bugs/issues/questions to Github. Thanks! (I wrote this a month or so ago, but was holding off on posting here because I was hoping for the open source key exchange process to move forward. Now that that is officially not going to be ready in time[1], I figured I might as well get this out there. For now, you will have to register your own app before you can use it, and make requests as that app.) [1] http://xrl.us/bhva55 Abraham Williams wrote: Lets collect an awesome list of tools and applications we use to help develop with the Twitter API.
Re: [twitter-dev] Twitter streaming api
Are you getting retweets of the specified users by other users? Please send an example query and an example tweet markup that was delivered, but shouldn't have been delivered. -John Kalucki http://twitter.com/jkalucki Twitter Inc. On Thu, Aug 5, 2010 at 5:03 PM, Idoshilon idoshi...@gmail.com wrote: I'm using the Twitter Streaming api (Ror TwitterStream) , and I'm setting the client to follow a set of user accounts (using the account IDs). But it seems like I'm getting tweets from accounts I don't follow . Did anyone ever encounter this before ?