Re: [twitter-dev] Re: Web Application talking to twitter API
Hi Vijay, For the situation you describe we provide a My Access Token page which you can reach from the details page of your application. Just visit http://dev.twitter.com/apps, follow the link to your applications details and then click My Access Token on the right hand side. That page provides you with the user token and secret for your account using that application. Using these details you don't need to complete the OAuth handshake process and can go straight onto making signed OAuth requests. Hope that helps, Matt On Wed, Jul 7, 2010 at 10:40 PM, Vijay bvija...@gmail.com wrote: Hi, I am trying a server to server communication from my Java application to my twitter account only.I assuming I have to use 2 legged OAuth/ xAuth to do this and avoid the browser redirection in the middle since this user/twitter account is totally under my control and I will not be using it for other users account and do not want to interact with a browser during this interaction with the Twitter account. Is this a correct assumption ? I was told that xAuth is a temporary option provided by Twitter API folks. TIA, Vijay On Jun 13, 12:01 am, Vijay bvija...@gmail.com wrote: HI Matt, Thanks for your response. I tried using the oauth token and secret for the x_auth_username and x_auth_password but that did not work for the 2 legged oauth that I am trying to achieve using Twitter4J so that I don't get prompted for the browser authorization that I am trying to avoid.I have sent a request to the twittter api folks about it.I am not sure if that is the right way to proceed. Just to clarify.I have my own Twitter account and I have a web application that wants to access my Twitter account private list of followers.So, I setup a Twitter a/c and also an Application under that a/c which gave me a consumer key/secret.Now, I have a web application which accesses this Twitter a/c to get the private list of followers without prompting a Browser prompt for user authorization(server to server backend using 2 legged Oauth maybe ???) TIA,Vijay On Jun 12, 12:07 pm, Matt Harris thematthar...@twitter.com wrote: HiVijay, If you only want access to your own account then you can visit the application details for your application onhttp://dev.twitter.com/apps. On that page you will find an option called My Access Token. This option will display the user token and secret for you to be able to access your application. Remember, this is only suited for your own account on your own application. Hope that helps, Matt On Fri, Jun 11, 2010 at 11:06 PM,Vijaybvija...@gmail.com wrote: Hi, Pardon my ignorance here as a 1st time poster. My actual requirement: My web app using jQuery/Juitter needs to access my twitter account's private List of people I am following. I am trying to use a proxy service with a java servlet on the serverside to access the Twitter API.Basic Auth is not going to work and the next option was OAuth which lead me to the server-side solution with java/Twitter4J. I need to get a Browserless authorization exchange for my web application.Ideally, I would like to use the Consumer key and secret instead of username and password but I do not want to display the Authorization page for the backend access from my web application to my twitter account via the Twitter API to happen.Curently, I am trying to use Twitter4J to access the API with the Consumer key and secret and get a 401 authentication credentials error. I have looked at this post which asks to provide username and password in the POST.Is xAuth the option I should use for my web app to access my twitter account's private List of people I am following ? http://apiwiki.twitter.com/Twitter-REST-API-Method%3A-oauth-access_to... Appreciate any feedback for a newcomer with Twitter. Vijay -- Matt Harris Developer Advocate, Twitterhttp://twitter.com/themattharris -- Matt Harris Developer Advocate, Twitter http://twitter.com/themattharris
[twitter-dev] Re: Home_timeline and retweets
Perhaps *I'm* missing something but can't you just use the user_timeline for this? It's what I'm doing, and after discovering the include_rts flag you can get all your own activity in this one request. On a sidenote: the include_rts flag is mentioned in http://dev.twitter.com/doc/get/statuses/user_timeline but isn't mentioned in http://apiwiki.twitter.com/Twitter-REST-API-Method%3A-statuses-user_timeline which caused me some annoyance as I didn't know the former existed until very recently and had been using the latter as my development guide. On Jul 7, 12:55 pm, luisg luisfmgoncal...@gmail.com wrote: Hello, and thanks for your reply. When I said ridiculous, I don't meant to offend you cause I REALLY appreciate your work. I was just discussing my point of view. Sorry for that. About the retweets: Imagine I get my home_timeline. I will get the 'normal' tweets (posted by me via web, for example), the retweets I did and the tweets (and retweets) done by the ones I'm following. The thing is, how can I identify if a element from the home_timeline is a 'normal' tweet or a retweet done by me? For example, in the retweets done by the people you are following, you have the retweeted_status and with that I know that is a retweet instead of a 'normal' tweet by him/her. But with my own, I dont know. The goal is I want to add the Undo(retweet) in my application. To do the undo I need to know which of those are retweets. You understand my problem? Maybe I'm missing something. If so, I'm being ridiculous :) Thanks a lot, Luis On Jul 6, 7:01 am, Raffi Krikorian ra...@twitter.com wrote: i don't think ridiculous is the right term :P we're constantly evolving the API to match up with what our developers are trying to do! so - that being said - what are you looking for? are you trying to figure out which tweets on the home timeline has the authenticating user retweeted? On Mon, Jul 5, 2010 at 2:58 PM, luisg luisfmgoncal...@gmail.com wrote: So, instead of 1, now I have to do 2 call (one for the home_timeline and another for the retweets_of_me). I started to understand the 'Tiwtter is over capacity' error! ...ridiculous... On Jul 5, 6:17 pm, Thomas Woolway priv...@tswoolway.co.uk wrote: I don't think that you're doing anything wrong - it's just a quirk of the API - you don't get any info in your home timeline on stuff you retweeted. I think this is because of the condition that you should never see a retweet if you would have seen it already in your timeline. This stops you from seeing the latest popular tweet retweeted 100 times from each of your followers if you follow the person who originally tweeted it. However, I guess it also stops you seeing that you have retweeted a tweet, as theoretically you've already seen it. I think I've made that more complicated than it actually is... The only thing that you can do is to get the Home Timeline and then merge retweets_of_me in over the top. Tom On Mon, Jul 5, 2010 at 4:03 PM, luisg luisfmgoncal...@gmail.com wrote: Can somebody help? Maybe I'm doing something wrong. For example, if account A has Account B as follower and vice-versa, and if account A retweets tweet XPTO made by account B, shouldn't the tweet XPTO appear with retweet_status property if we request the home_timeline? Please help, Luis On Jul 3, 4:45 pm, luisg luisfmgoncal...@gmail.com wrote: Hello everybody, I'm having a problem lately with the retweets. In the API documentation and about the home_timeline says: 'Returns the 20 most recent statuses, including retweets, posted by the authenticating user and that user's friends. This is the equivalent of /timeline/home on the Web.' The problem is, when I request the home_timeline, none of my tweets have the 'retweeted_status' that should be present if it is a retweet. But if I request 'retweeted_by_me' I get all the information, including the 'retweeted_status'. Can someone tell me what's wrong? Something changed? Thanks, Luis -- Raffi Krikorian Twitter Platform Teamhttp://twitter.com/raffi
Re: [twitter-dev] Re: Rate limits should be resetting now
Great news. I'm crossing my fingers too. isaiah http://twitter.com/isaiah On Jul 7, 2010, at 8:32 PM, Raffi Krikorian wrote: we are currently sitting at 100% - so 350 calls/hour on oauth, and 150 calls/hour on basic auth. fingers crossed! On Wed, Jul 7, 2010 at 6:42 PM, isaiah isa...@mac.com wrote: Does this mean a return to previous rate limits as well? Or are we still getting the squeeze? Isaiah On Jul 7, 5:54 pm, themattharris thematthar...@twitter.com wrote: Hey everyone, We've been working on the rate limit issue which has been affecting many of you and believe we now have it fixed. As the issue affected people in different ways we want to be check your applications are working again. If your rate limit is still not resetting please email a...@twitter.com the following information: * The IP of the computer which is making the requests * A username you are making requests for * The time you tried to make the request * The request you were trying to make * Any response headers you received Thanks, Matt -- Raffi Krikorian Twitter Platform Team http://twitter.com/raffi
[twitter-dev] Status Update using in reply to
i using the PHP library i trying to update my status replyng a tweet $twittuser = ($connection-post('statuses/update', array('status' = $_SESSION['tmptxt'], 'in_reply_to_status_id' = $_SESSION['Reply']))); this example doesnt work... anyone can correct me?
[twitter-dev] User Streams and Desktop Apps
Working on an app that could definitely benefit from User Streams and wanted to know what qualifies as a Desktop App? Is it specifically an Air or Silverlight app installed on the desktop or is it more indicative of a certain set of behaviors / access needs? If the latter, can a web app with the same usage characteristics be qualify as a desktop app? Cheers! Eric
[twitter-dev] What uses up my rate limit
Just started to integrate twitter into my own CMS written in Perl. I use a very old Perl version, because only this old version is compatible to use MSIE as GUI. To use the API, Perl engages a download program by a batch file. Just right now, I only test with the http://api.twitter.com/1/account/rate_limit_status.xml No other call is used. But from start to start, there are less hits remaining in the rate limit, Up to 10 less when I wait some minutes. I have no idea what consumes my rate limit I already closed Twitter in all browsers, but still the same effect. Any idea what could use up my rate limit?
[twitter-dev] San Francisco Social App Workshop July 24- with @themattharris
Hi all- Just wanted to drop a quick note on an event coming up in SF this month that might interest some of you- Social App Workshop will be an all-day code fest for people working on social apps- new and experienced- with a focus on Twitter apps- Matt Harris has graciously agreed to talk for a bit on the Twitter APIs that morning. Also a few other startups from the area (Heroku, Apigee, Twilio) will be helping organize and around to help and chat. Happening Saturday, July 24 in SOMA- you can check out more deets at http://www.socialappworkshop.com/. Thanks and apologies to the non-SF people on this list :) Cheers, Shanley (Apigee chief cat-herder)
[twitter-dev] Re: request token
Hullo Matt, Thanks for the reply... I'm too far down this road to take detours...I've got everything working except the final step...everything else checks in well.. I'm just hung up on the objhttp load using vba, somehow the stream loaded seems to fail the generated signature (signature has been checked)...so just need to figure this...hopefully something good will happen before Aug 16. Thanks, Regards, Shob On Jul 7, 8:07 am, Matt Harris thematthar...@twitter.com wrote: Hi Shob, We strongly recommend you use a library for handling OAuth with Twitter until you are comfortable with how OAuth works. For VB I know of at least one library called TwitterVB:http://twittervb.codeplex.com/ This will do the OAuth heavy lifting for you so you can develop an application for use with Twitter quickly. If you then want to roll your own solution you could use the TwitterVB library to compare to the results you are getting from your function. Hope that helps, Matt On Tue, Jul 6, 2010 at 7:10 AM, Jacky jaga...@gmail.com wrote: Hullo, POSThttps%3A%2F%2Fapi.twitter.com%2Foauth %2Frequest_tokenoauth_callback%3Doob%26oauth_consumer_key %3DhUMUUZO3Zx9zNzJ9DghcA%26oauth_nonce %3DDA39A3EE5E6B4B0D3255BFEF95601890AFD80709%26oauth_signature_method %3DHMAC-SHA1%26oauth_timestamp%3D1277424969%26oauth_version%3D1.0 and Oauth oauth_callback=oob, oauth_consumer_key=hUMUUZO3Zx9zNzJ9DghcA, oauth_nonce=DA39A3EE5E6B4B0D3255BFEF95601890AFD80709, oauth_signature_method=HMAC-SHA1, oauth_timestamp=1277424969, oauth_version=1.0, oauth_signature=%2Ff8P1dS6QVQnYCIc10kD1%2Bm2DkI %3D using objhttp.Open POST, https://api.twitter.com/oauth/request_token;, False objhttp.setRequestHeader Content-type, application/x-www-form- urlencoded objhttp.setRequestHeader Authorization, strsend objhttp.send() Not working, how can I see the stream that is being loaded...or debug this... and strsend is Oauth and appended by the very first string up on top in this email Cant see the problem... Please help, if you can see anything outright off or wrong... Regards, Shob -- Matt Harris Developer Advocate, Twitterhttp://twitter.com/themattharris
[twitter-dev] Permission denied error in Firefox when trying to add a tweet-box with @anywher
I'm just trying add a twitter's tweet box with @anywhere but I'm getting the following error in Firefox: Permission denied to get property Window.jQuery from https://api.twitter.com; It works fine for me in Chrome. All I have on the page is the code snippet from Twitter's api tutorial which is: div id=tbox/div script type=text/javascript twttr.anywhere(function (T) { T(#tbox).tweetBox(); }); /script and twitter's js in the header
[twitter-dev] (OAuth) Favorite create and destroy malfunctioning, confirmed in Twurl
Favorite Create do a POST with this url /1/favorites/17983195453/create.xml and you get /1/favorites/17983195453/create.xml Not found I checked, the ID is correct. Moreover this can be easily repro in Twurl to the same result Destroy performing a POST with id as parameter returns /1/favorites/destroy.xml This method requires a GET. Which is garbage since GET is obviously neither the right mode nor in the documentation. Even if one was to use GET and pretend is the right mode, it still does now work (it does not remove the relationship) and it returns a null array. Please fix :-) Thanks!
[twitter-dev] anchor to twitter.com/home?status authentication conerns
If I provide an anchor that that takes the user to http://twitter.com/home?status=TheirStatusMsg, I don't have to worry about oAuth or any authentication issues, right?
[twitter-dev] Participation of the translation team of Twitter!
Hello, My Name is David Christian I am Brazilian and I wanted to be part of the team to Portuguese translation twitter / PT-BR I do not speak English and do not even know the twitters of the USA need to send me instructions on how to complete the translation! my contact --- davidchris...@gmail.com please i want the twitter is on my tongue and I even want to translate it without asking anything in return! thanks!
[twitter-dev] Re: Current TwitterOAuth API won't display authorization page
Hi, I'm new in twitter development. I have a problem when I'm using twitter connect (Sign in with twitter) with OAuth. I can Sign In successfully, but I can't fetch the data of the user. I've tried it in ordinary php script, and it was success. It's appear like this : --- stdClass Object ( [contributors_enabled] = [friends_count] = 29 [description] = [location] = ÜT: -7.759407,110.388536 [geo_enabled] = [profile_background_color] = 9ae4e8 [profile_image_url] = http://a3.twimg.com/profile_images/774134793/IMG_4749_-_Copy_normal.JPG [status] = stdClass Object ( [favorited] = [in_reply_to_user_id] = [source] = UberTwitter [created_at] = Mon Jun 28 08:08:57 + 2010 [coordinates] = [contributors] = [in_reply_to_screen_name] = [truncated] = [in_reply_to_status_id] = [place] = [geo] = [id] = 17236419253 [text] = Mau ntn apa Chiil? RT @chiilmill: Mampus XXI penuh bener :(( ) [favourites_count] = 0 [verified] = [profile_text_color] = 00 [screen_name] = endryningtyas [lang] = en [time_zone] = [created_at] = Thu Mar 18 02:50:42 + 2010 [profile_link_color] = ff [profile_background_image_url] = http://s.twimg.com/a/121427/images/themes/theme1/bg.png [following] = [profile_sidebar_fill_color] = e0ff92 [protected] = [profile_background_tile] = [name] = itnayaz [statuses_count] = 147 [profile_sidebar_border_color] = 87bc44 [url] = http://itnayaz.com [id] = 124050687 [notifications] = [profile_use_background_image] = 1 [utc_offset] = [followers_count] = 18 ) - but now I'm using it at php framework, cakePHP...and the result is - stdClass Object ( [request] = /1/account/verify_credentials.json? oauth_consumer_key=UnSVVvFuXqOX5AbUlyDAsQoauth_nonce=65a61e5b9cc47fa86c0f4ba1bc6783c2oauth_signature=mAb %2FkorJIukQf8pzCjP5ygBBGEM%3Doauth_signature_method=HMAC- SHA1oauth_timestamp=1278575649oauth_version=1.0 [error] = Could not authenticate you. ) - what's wrong with my code? Please, help me ^_^.. thanks before
[twitter-dev] Pagination on followers/ids not working
Hello Devs, I am trying to make pagination working on follower id, but it isn't working. it just return the whole list of followers. is it normal? For example the following API call displays all of my followers, instead of being paginated: http://api.twitter.com/1/followers/ids.xml?id=hameedullahcursor=-1 Wondering if I am doing any wrong? or the pagination not working for the API call? You help in this regard will be really appreciated. Thanks, Hameedullah Khan. @hameedullah
[twitter-dev] Need help in optimizing the WebApp
Hi everyone, I am developing a webApp. I am using Python + Django. The app basically need to fetch tweets and if there are any twitpic, yfrog or tweetphoto specific urls then it also needs to fetch the images from the corresponding site. Now, my problem is that I need to make a large no. of calls to the server to fetch the images (and they are made serially ). That thing is slowing down the app by a significant amount. Is there any alternative to reduce that time. Any help is appreciated. Regards, Jack Sparrow :)
[twitter-dev] Location information only delivered on geocoded searches?
Hi there, I'm getting started with using the search API; I'm a GIS guy looking at how to ingest tweets with geo or location info. I'm seeing an odd behavior with the location element- it seems the location info is only displayed when I submit a geocoded search. As an example: In the results for http://search.twitter.com//search.json?q=%23geoglobaldomination is the following tweet: {Thu, 08 Jul 2010 01:43:02 +, from_user:geo_rube, metadata:{result_type:recent}, to_user_id:1203277,text:@wonderchook You need to write a book quot;Adventures in #Geoglobaldominationquot; or quot;Bangin BPquot;, id:17997780478,from_user_id:100089794, to_user:wonderchook,geo:null,iso_language_code:en,source:lt;a href=quot;http://www.tweetdeck.comquot; rel=quot;nofollowquot;gt;TweetDecklt;/agt;} Note no location info. However, if I do http://search.twitter.com/search.json?q=%23geoglobaldominationgeocode=38.895111,-77.036667,100mi The result is: {location:Springfield, VA,profile_image_url:http://a1.twimg.com/ profile_images/907787936/shitstorm_normal.jpg,created_at:Thu, 08 Jul 2010 01:43:02 +,from_user:geo_rube,metadata: {result_type:recent},to_user_id:1203277,text:@wonderchook You need to write a book quot;Adventures in #Geoglobaldominationquot; or quot;Bangin BPquot;,id: 17997780478,from_user_id: 100089794,to_user:wonderchook,geo:null,iso_language_code:en,source:lt;a href=quot;http://www.tweetdeck.comquot; rel=quot;nofollowquot;gt;TweetDecklt;/agt;}
[twitter-dev] Streaming API time drifting problem and possible solutions
Hi everyone, I have a program calling the statuses/sample method of a garden hose of the Streaming API, and I am experiencing the following problem: the timestamps of the tweets that I downloaded constantly drift behind real-time, the time drift keeps increasing until it reaches around 25 minutes, and then I get a timeout from the request, sleep for 5 seconds and reset the connection. The time drift is also reset to 0 when the connection is reset. One solution for this I have now is to proactively reset the connection more frequently, e.g., if I reconnect every 1 minute, the time drift I get will be at most 1 minute. But I am not sure whether this is allow by the API. So could anyone tell me if you have the same problem as mine or I am using the API in the wrong way. And is it OK to reset connection every minute? I am using Tweepy (http://github.com/joshthecoder/tweepy) as the library for accessing the Streaming API. Thanks a lot! -Larry
[twitter-dev] What's the approx. timescale for xAuth approval ?
Hi folks, just wondering if there's a big backlog of xAuth approvals right now or how long the approval process is taking ? I submitted an app for approval early last week and haven't heard anything back other than the initial automated message. Noticing today that there appears to be two different support forums (help.twitter.com and support.twitter.com), I resubmitted the request to support. thinking that maybe help. was obsolete, but the new ticket is linking to a page with a Request not found error. Bottom line is I'm well behind now on testing my app and the client is wondering what the story is, but I can't even give them a date since I've heard nothing from Twitter. Any help or pointers would be great ! -DW. P.S. This forum seems to require a Gmail address, but our Twitter account is @Axonista
[twitter-dev] ReTweets, and their use of WordPress Free Accounts
Hi, As you all must be aware by now, there are a few limitations to using the free wordpress account status and attempting to source.. well source to integrate with various pages. To this end, has anyone managed to devise a better way of combining the source from Twitters Open development with that of Wordpress and various other blogs. In many if not all circumstances this requires and upgrade of the account.. http://blogspot.wordpress.com/ *plus 6 other blogs still to be content managed.
[twitter-dev] Re: request token
Instead I launched it through a browser and I am all ok. (P.S. Incidental, but, on my previous post I made a typo in the post, i.e.,not the very first string, but the second string and it already has the Oauth in front already and that is the string) Thanks though, Regards, Shob On Jul 7, 8:07 am, Matt Harris thematthar...@twitter.com wrote: Hi Shob, We strongly recommend you use a library for handling OAuth with Twitter until you are comfortable with how OAuth works. For VB I know of at least one library called TwitterVB:http://twittervb.codeplex.com/ This will do the OAuth heavy lifting for you so you can develop an application for use with Twitter quickly. If you then want to roll your own solution you could use the TwitterVB library to compare to the results you are getting from your function. Hope that helps, Matt On Tue, Jul 6, 2010 at 7:10 AM, Jacky jaga...@gmail.com wrote: Hullo, POSThttps%3A%2F%2Fapi.twitter.com%2Foauth %2Frequest_tokenoauth_callback%3Doob%26oauth_consumer_key %3DhUMUUZO3Zx9zNzJ9DghcA%26oauth_nonce %3DDA39A3EE5E6B4B0D3255BFEF95601890AFD80709%26oauth_signature_method %3DHMAC-SHA1%26oauth_timestamp%3D1277424969%26oauth_version%3D1.0 and Oauth oauth_callback=oob, oauth_consumer_key=hUMUUZO3Zx9zNzJ9DghcA, oauth_nonce=DA39A3EE5E6B4B0D3255BFEF95601890AFD80709, oauth_signature_method=HMAC-SHA1, oauth_timestamp=1277424969, oauth_version=1.0, oauth_signature=%2Ff8P1dS6QVQnYCIc10kD1%2Bm2DkI %3D using objhttp.Open POST, https://api.twitter.com/oauth/request_token;, False objhttp.setRequestHeader Content-type, application/x-www-form- urlencoded objhttp.setRequestHeader Authorization, strsend objhttp.send() Not working, how can I see the stream that is being loaded...or debug this... and strsend is Oauth and appended by the very first string up on top in this email Cant see the problem... Please help, if you can see anything outright off or wrong... Regards, Shob -- Matt Harris Developer Advocate, Twitterhttp://twitter.com/themattharris
[twitter-dev] Re: What's the approx. timescale for xAuth approval ?
There *is* currently a backlog with xAuth approvals, but we are working through them as quickly as we can. I know this access is crucial to development, but our response time may be as long as a week for the next couple days. Bear with us. :) If the email address you initially filed your request from is different from the email address associated with your Twitter account, your ticket may not show up in the http://support.twitter.com help center. Reply to me directly and I can look for it. Brian Sutorius On Jul 8, 8:50 am, DW dara...@gmail.com wrote: Hi folks, just wondering if there's a big backlog of xAuth approvals right now or how long the approval process is taking ? I submitted an app for approval early last week and haven't heard anything back other than the initial automated message. Noticing today that there appears to be two different support forums (help.twitter.com and support.twitter.com), I resubmitted the request to support. thinking that maybe help. was obsolete, but the new ticket is linking to a page with a Request not found error. Bottom line is I'm well behind now on testing my app and the client is wondering what the story is, but I can't even give them a date since I've heard nothing from Twitter. Any help or pointers would be great ! -DW. P.S. This forum seems to require a Gmail address, but our Twitter account is @Axonista
Re: [twitter-dev] Streaming API time drifting problem and possible solutions
Absolutely do not reset the connection and reconnect. Connections should be long-lived on the Streaming API. This is almost certainly a problem with the read throughput of your client, or, less likely, with bandwidth from your system. Run curl(1) from the same system and grep for the date field. It will almost certainly not fall behind. -John Kalucki http://twitter.com/jkalucki Infrastructure, Twitter Inc. On Thu, Jul 8, 2010 at 8:31 AM, Larry Zhang yuelizh...@gmail.com wrote: Hi everyone, I have a program calling the statuses/sample method of a garden hose of the Streaming API, and I am experiencing the following problem: the timestamps of the tweets that I downloaded constantly drift behind real-time, the time drift keeps increasing until it reaches around 25 minutes, and then I get a timeout from the request, sleep for 5 seconds and reset the connection. The time drift is also reset to 0 when the connection is reset. One solution for this I have now is to proactively reset the connection more frequently, e.g., if I reconnect every 1 minute, the time drift I get will be at most 1 minute. But I am not sure whether this is allow by the API. So could anyone tell me if you have the same problem as mine or I am using the API in the wrong way. And is it OK to reset connection every minute? I am using Tweepy (http://github.com/joshthecoder/tweepy) as the library for accessing the Streaming API. Thanks a lot! -Larry
[twitter-dev] Re: What uses up my rate limit
Twitter had some issues with incorrect rate limits over the past few days [1]. I believe they've resolved those issues now, so if you're still having the issue you've described, visit the connections page [2] to see if any app using OAuth may be accessing your account. If not, change your password [3], which would prevent any Basic Auth apps (that you've previously given your credentials to) from accessing your account and using up some of your requests. 1. http://status.twitter.com/post/777268689/incorrect-rate-limiting and http://status.twitter.com/post/781763549/investigating-rate-limit-exceeded-issues 2. https://twitter.com/account/connections 3. https://twitter.com/account/password On Jul 7, 11:59 am, founder foun...@pege.org wrote: Just started to integrate twitter into my own CMS written in Perl. I use a very old Perl version, because only this old version is compatible to use MSIE as GUI. To use the API, Perl engages a download program by a batch file. Just right now, I only test with thehttp://api.twitter.com/1/account/rate_limit_status.xml No other call is used. But from start to start, there are less hits remaining in the rate limit, Up to 10 less when I wait some minutes. I have no idea what consumes my rate limit I already closed Twitter in all browsers, but still the same effect. Any idea what could use up my rate limit?
Re: [twitter-dev] Streaming API time drifting problem and possible solutions
Larry, have you decoupled the processing code from tweepy's StreamListener, for example using a Queue.Queue oder some message queue server? Pascal On Jul 8, 2010, at 17:31 , Larry Zhang wrote: Hi everyone, I have a program calling the statuses/sample method of a garden hose of the Streaming API, and I am experiencing the following problem: the timestamps of the tweets that I downloaded constantly drift behind real-time, the time drift keeps increasing until it reaches around 25 minutes, and then I get a timeout from the request, sleep for 5 seconds and reset the connection. The time drift is also reset to 0 when the connection is reset. One solution for this I have now is to proactively reset the connection more frequently, e.g., if I reconnect every 1 minute, the time drift I get will be at most 1 minute. But I am not sure whether this is allow by the API. So could anyone tell me if you have the same problem as mine or I am using the API in the wrong way. And is it OK to reset connection every minute? I am using Tweepy (http://github.com/joshthecoder/tweepy) as the library for accessing the Streaming API. Thanks a lot! -Larry
Re: [twitter-dev] User Streams and Desktop Apps
A web app served through a central service is addressed by a different product than User Streams. If the web browser is making a direct request to the Twitter Streaming API, that's a different issue, and we should coordinate. -John Kalucki http://twitter.com/jkalucki Infrastructure, Twitter Inc. On Wed, Jul 7, 2010 at 7:42 AM, Eric Marcoullier @ Gnip e...@marcoullier.com wrote: Working on an app that could definitely benefit from User Streams and wanted to know what qualifies as a Desktop App? Is it specifically an Air or Silverlight app installed on the desktop or is it more indicative of a certain set of behaviors / access needs? If the latter, can a web app with the same usage characteristics be qualify as a desktop app? Cheers! Eric
Re: [twitter-dev] Streaming API time drifting problem and possible solutions
Larry, moreover, I assume you checked I/O and CPU load. But even if that's not the issue, you should absolutely check if you have simplejson with c extension installed. The python included version is 1.9 which is decidedly slower than the new 2.x branch. You might see json decoding load drop by 50% or more. Pascal On Jul 8, 2010, at 17:31 , Larry Zhang wrote: Hi everyone, I have a program calling the statuses/sample method of a garden hose of the Streaming API, and I am experiencing the following problem: the timestamps of the tweets that I downloaded constantly drift behind real-time, the time drift keeps increasing until it reaches around 25 minutes, and then I get a timeout from the request, sleep for 5 seconds and reset the connection. The time drift is also reset to 0 when the connection is reset. One solution for this I have now is to proactively reset the connection more frequently, e.g., if I reconnect every 1 minute, the time drift I get will be at most 1 minute. But I am not sure whether this is allow by the API. So could anyone tell me if you have the same problem as mine or I am using the API in the wrong way. And is it OK to reset connection every minute? I am using Tweepy (http://github.com/joshthecoder/tweepy) as the library for accessing the Streaming API. Thanks a lot! -Larry
Re: [twitter-dev] San Francisco Social App Workshop July 24- with @themattharris
I'm really looking forward to being at the event and meeting you all. For those of you attending, are there any topics you would like me to talk about? On Wed, Jul 7, 2010 at 9:32 AM, shanley shanley.k...@gmail.com wrote: Hi all- Just wanted to drop a quick note on an event coming up in SF this month that might interest some of you- Social App Workshop will be an all-day code fest for people working on social apps- new and experienced- with a focus on Twitter apps- Matt Harris has graciously agreed to talk for a bit on the Twitter APIs that morning. Also a few other startups from the area (Heroku, Apigee, Twilio) will be helping organize and around to help and chat. Happening Saturday, July 24 in SOMA- you can check out more deets at http://www.socialappworkshop.com/. Thanks and apologies to the non-SF people on this list :) Cheers, Shanley (Apigee chief cat-herder) -- Matt Harris Developer Advocate, Twitter http://twitter.com/themattharris
Re: [twitter-dev] Permission denied error in Firefox when trying to add a tweet-box with @anywher
Hi, That's an interesting error and one I haven't been able to reproduce. Do you have a page URL I can hit to see if I get the same error? Matt On Wed, Jul 7, 2010 at 11:54 AM, Glide Ken glidekensing...@gmail.comwrote: I'm just trying add a twitter's tweet box with @anywhere but I'm getting the following error in Firefox: Permission denied to get property Window.jQuery from https://api.twitter.com; It works fine for me in Chrome. All I have on the page is the code snippet from Twitter's api tutorial which is: div id=tbox/div script type=text/javascript twttr.anywhere(function (T) { T(#tbox).tweetBox(); }); /script and twitter's js in the header -- Matt Harris Developer Advocate, Twitter http://twitter.com/themattharris
Re: [twitter-dev] (OAuth) Favorite create and destroy malfunctioning, confirmed in Twurl
Yeah, this is a known error in the documentation on dev.twitter.com. The correct format for the command is: /1/favorites/create/:id.format and /1/favorites/destroy/:id.format Give those a try and you should find they work correctly. We have updates to the docs queued up for release this week. Thanks, Matt On Wed, Jul 7, 2010 at 3:07 PM, Skipper andrea.mario...@gmail.com wrote: Favorite Create do a POST with this url /1/favorites/17983195453/create.xml and you get /1/favorites/17983195453/create.xml Not found I checked, the ID is correct. Moreover this can be easily repro in Twurl to the same result Destroy performing a POST with id as parameter returns /1/favorites/destroy.xml This method requires a GET. Which is garbage since GET is obviously neither the right mode nor in the documentation. Even if one was to use GET and pretend is the right mode, it still does now work (it does not remove the relationship) and it returns a null array. Please fix :-) Thanks! -- Matt Harris Developer Advocate, Twitter http://twitter.com/themattharris
Re: [twitter-dev] anchor to twitter.com/home?status authentication conerns
Hi, The URL you provide here would redirect the user to their homepage on Twitter with the status set to TheirStatusMsg. If they are logged out they will be prompted to login first. There is no interaction by an application here so there is no need for you to handle any authentication. Matt On Wed, Jul 7, 2010 at 5:05 PM, Glide Ken glidekensing...@gmail.com wrote: If I provide an anchor that that takes the user to http://twitter.com/home?status=TheirStatusMsg, I don't have to worry about oAuth or any authentication issues, right? -- Matt Harris Developer Advocate, Twitter http://twitter.com/themattharris
Re: [twitter-dev] Participation of the translation team of Twitter!
Hi David, Thanks for wanting to improve Twitter and offering to be part of the translation program. We're in invite-only mode at the moment and are working only on French, German, Indonesian, Italian, Japanese and Spanish. Some time in the future we will open the system open and cover more languages. If you visit our Twitter Translate [1] page you'll see a link allowing you to sign up with your username and language. We'll then contact you when we start to translate your language. Matt On Wed, Jul 7, 2010 at 6:11 PM, Designer Vibe02 davidchris...@gmail.comwrote: Hello, My Name is David Christian I am Brazilian and I wanted to be part of the team to Portuguese translation twitter / PT-BR I do not speak English and do not even know the twitters of the USA need to send me instructions on how to complete the translation! my contact --- davidchris...@gmail.com please i want the twitter is on my tongue and I even want to translate it without asking anything in return! thanks! -- Matt Harris Developer Advocate, Twitter http://twitter.com/themattharris
Re: [twitter-dev] Location information only delivered on geocoded searches?
Hi James, I'm not sure why the location field is missing from those search results so I'll need to follow that up. Can you file it as a defect in the API Issues List: http://code.google.com/p/twitter-api/issues/list and i'll look into it. Just to clarify though, the location field is the location you see under a users name on their Twitter profile page. It is a free-text field in which the user can put anything they want. If Twitter Search can reverse geocode the text in that field it will use it as the geo for the Tweet only when the Tweet itself doesn't have any geo co-ordinates. This means when you perform a Geocoded Twitter Search you may see results you wouldn't expect. For example somebody who says their location is San Francisco but is on holiday in New York may not geocode their Tweets and so their Tweets will be indexed as being in San Francisco. Hope that explains how this works. Thanks, Matt On Thu, Jul 8, 2010 at 6:16 AM, James tedr...@gmail.com wrote: Hi there, I'm getting started with using the search API; I'm a GIS guy looking at how to ingest tweets with geo or location info. I'm seeing an odd behavior with the location element- it seems the location info is only displayed when I submit a geocoded search. As an example: In the results for http://search.twitter.com//search.json?q=%23geoglobaldomination is the following tweet: {Thu, 08 Jul 2010 01:43:02 +, from_user:geo_rube, metadata:{result_type:recent}, to_user_id:1203277,text:@wonderchook You need to write a book quot;Adventures in #Geoglobaldominationquot; or quot;Bangin BPquot;, id:17997780478,from_user_id:100089794, to_user:wonderchook,geo:null,iso_language_code:en,source:lt;a href=quot;http://www.tweetdeck.comquot; rel=quot;nofollowquot;gt;TweetDecklt;/agt;} Note no location info. However, if I do http://search.twitter.com/search.json?q=%23geoglobaldominationgeocode=38.895111,-77.036667,100mi The result is: {location:Springfield, VA,profile_image_url:http://a1.twimg.com/ profile_images/907787936/shitstorm_normal.jpg,created_at:Thu, 08 Jul 2010 01:43:02 +,from_user:geo_rube,metadata: {result_type:recent},to_user_id:1203277,text:@wonderchook You need to write a book quot;Adventures in #Geoglobaldominationquot; or quot;Bangin BPquot;,id: 17997780478,from_user_id: 100089794,to_user:wonderchook,geo:null,iso_language_code:en,source:lt;a href=quot;http://www.tweetdeck.comquot; rel=quot;nofollowquot;gt;TweetDecklt;/agt;} -- Matt Harris Developer Advocate, Twitter http://twitter.com/themattharris
Re: [twitter-dev] Location information only delivered on geocoded searches?
Quoting Matt Harris thematthar...@twitter.com: Hi James, I'm not sure why the location field is missing from those search results so I'll need to follow that up. Can you file it as a defect in the API Issues List: http://code.google.com/p/twitter-api/issues/list and i'll look into it. Just to clarify though, the location field is the location you see under a users name on their Twitter profile page. It is a free-text field in which the user can put anything they want. If Twitter Search can reverse geocode the text in that field it will use it as the geo for the Tweet only when the Tweet itself doesn't have any geo co-ordinates. This means when you perform a Geocoded Twitter Search you may see results you wouldn't expect. For example somebody who says their location is San Francisco but is on holiday in New York may not geocode their Tweets and so their Tweets will be indexed as being in San Francisco. Hope that explains how this works. Thanks, Matt If your search query does *not* include a 'geocode=' parameter, the tweets returned will *not* have *any* location information! I don't recall if this is a bug or a feature, or whether I filed an issue report. ;-) On Thu, Jul 8, 2010 at 6:16 AM, James tedr...@gmail.com wrote: Hi there, I'm getting started with using the search API; I'm a GIS guy looking at how to ingest tweets with geo or location info. I'm seeing an odd behavior with the location element- it seems the location info is only displayed when I submit a geocoded search. As an example: In the results for http://search.twitter.com//search.json?q=%23geoglobaldomination is the following tweet: {Thu, 08 Jul 2010 01:43:02 +, from_user:geo_rube, metadata:{result_type:recent}, to_user_id:1203277,text:@wonderchook You need to write a book quot;Adventures in #Geoglobaldominationquot; or quot;Bangin BPquot;, id:17997780478,from_user_id:100089794, to_user:wonderchook,geo:null,iso_language_code:en,source:lt;a href=quot;http://www.tweetdeck.comquot; rel=quot;nofollowquot;gt;TweetDecklt;/agt;} Note no location info. However, if I do http://search.twitter.com/search.json?q=%23geoglobaldominationgeocode=38.895111,-77.036667,100mi The result is: {location:Springfield, VA,profile_image_url:http://a1.twimg.com/ profile_images/907787936/shitstorm_normal.jpg,created_at:Thu, 08 Jul 2010 01:43:02 +,from_user:geo_rube,metadata: {result_type:recent},to_user_id:1203277,text:@wonderchook You need to write a book quot;Adventures in #Geoglobaldominationquot; or quot;Bangin BPquot;,id: 17997780478,from_user_id: 100089794,to_user:wonderchook,geo:null,iso_language_code:en,source:lt;a href=quot;http://www.tweetdeck.comquot; rel=quot;nofollowquot;gt;TweetDecklt;/agt;} -- Matt Harris Developer Advocate, Twitter http://twitter.com/themattharris
[twitter-dev] Search within followers / following
It would be great if there was a way to search just within users you are following, or those who are following you. Currently the only way to do this is to get the latest 3200 tweets from your friends and then search that result for your keyword. There are 2 main drawbacks for this method: i) You have to make 16 paged api requests to get the 3200 tweets, and then process that data into arrays, etc. This is very slow, and not a conservative way of using the api ii) For less common search terms often no results will be returned as there are no matches in the last 3200 tweets. It seems that this should be possible as you can currently use search srtings like: from:user1+OR+from:user2+OR+from:user3 however, this method is restricted to a few users, as there is a limit of the number of characters you can have in the URL string. How about having extra search paramaters like: ?q=keyword+following:user1 (returns all tweets mentioning 'keyword' from users that 'user1' is following) or ?q=keyword+followers:user1 (returns all tweets mentioning 'keyword' from users that are following 'user1') I had thought of another way around this for my app, which is: Make an api call for all tweets from my timeline every 3 minutes (using cron job) Cache all new tweets in mysql database Power my own searches against the twitter data in my own database Drawbacks of this method would be: i) have to store a lot of data in the db (and find a way of automatically deleting tweets over a certain age) ii) have to completely re-design my app from scratch Has anyone else come up against this problem? I haven't been able to find much mention about it on the development talk? Is this a planned feature for the future?
[twitter-dev] Rate limit on Oauth resources and Request token Expiration
Is Twitter going to start rate limiting the oauth resources or is dev.twitter.com is still being worked on? http://dev.twitter.com/doc/post/oauth/request_token Also what is the request token expiration time limit before they expire or does it vary for some reason? thanks, -Worth
[twitter-dev] Count ignored for retweeted_by_me
Hey all, Anyone have success retrieving up to the documented 200 retweets on / statuses/retweeted_by_me? In my app and in testing with curl, the count parameter appears to work for small values, like 5 or 10, but if I try to get 200 in a single call the API caps it at 20. I couldn't find mention of this in the archives, so if it's a known bug it would be nice to get an official word from Twitter. Thanks! - Manton
Re: [twitter-dev] Rate limit on Oauth resources and Request token Expiration
Hi Worth, The OAuth endpoints are not rate limited despite the documentation saying it is. We are aware of the documentation being wrong in this regard and have an updated version in the queue to go out. The request tokens are short lived. I don't have the exact lifetime to hand but I would recommend they are used in the /authorize call within a couple of minutes of being received. The tokens you get back from /access_token are permanent and will only stop working if the user removes your application from their account or you regenerate your keys and don't update the client. Hope that helps, Matt On Thu, Jul 8, 2010 at 2:03 PM, Worth worth.free...@gmail.com wrote: Is Twitter going to start rate limiting the oauth resources or is dev.twitter.com is still being worked on? http://dev.twitter.com/doc/post/oauth/request_token Also what is the request token expiration time limit before they expire or does it vary for some reason? thanks, -Worth -- Matt Harris Developer Advocate, Twitter http://twitter.com/themattharris
[twitter-dev] Destroy Tweet Problem
Hi, I am having the following problem when trying to delete a tweet from my app: After selecting the tweet to delete or (destroy), I send the xmlhttp with the destroy sentence specifying the ID to delete, the ajax return a 200 code with the info of the tweet being deleted (i thought the commit was done) ... and ... sometimes it works and sometimes it reappears !, I checked the twitter site when i try to delete the tweet from my app and sometimes after deleting ... it is still available in the twitter site, after two or three times it is deleted ... but it looks like you have more than one copy of the tweet and depending the syncronization there is a process that recreate the tweet ... I reviewed my code to check no cached data was in my app but i access using a random number in the URL to avoid cache Any help appreciated. Thnks quenotacom
[twitter-dev] getting full list of followers from a private list: members.json?cursor=-1
Hi, Please pardon my ignorance on how to get all the results here. I am trying to make a simple call like this to get the full list of followers from my private list of about 150 folks.I get only the 1st page results in the API call instead of all the 150 folks.This is the API call i am trying to use. http://api.twitter.com/1/bvijaykr/flexfollow/members.json?cursor=-1 I have also tried http://api.twitter.com/1/bvijaykr/flexfollow/members.json?cursor=-1300794057949944903 which returned a diff set of results.I also tried http://api.twitter.com/1/bvijaykr/flexfollow/members.json which returned the same 1st age of results as ?cursor=-1 The real account names have been changed here. I have been trying to use this doc: http://apiwiki.twitter.com/Twitter-REST-API-Method:-GET-list-members TIA, Vijay
Re: [twitter-dev] Count ignored for retweeted_by_me
Hi Manton, The docs are incorrect here. They should say the maximum value for count is 100. We're correcting the documentation to reflect this. Let me know if the 100 count isn't working for you though. Matt On Thu, Jul 8, 2010 at 3:51 PM, Manton Reece man...@riverfold.com wrote: Hey all, Anyone have success retrieving up to the documented 200 retweets on / statuses/retweeted_by_me? In my app and in testing with curl, the count parameter appears to work for small values, like 5 or 10, but if I try to get 200 in a single call the API caps it at 20. I couldn't find mention of this in the archives, so if it's a known bug it would be nice to get an official word from Twitter. Thanks! - Manton -- Matt Harris Developer Advocate, Twitter http://twitter.com/themattharris
Re: [twitter-dev] Destroy Tweet Problem
Thanks for letting us know about this. Can you file this as a defect on our issue tracker: http://code.google.com/p/twitter-api/issues/list I know there have been other reports of this but I haven't seen a ticket issue for it yet. Thanks, Matt On Thu, Jul 8, 2010 at 4:20 PM, quenotacom webmas...@quenota.com wrote: Hi, I am having the following problem when trying to delete a tweet from my app: After selecting the tweet to delete or (destroy), I send the xmlhttp with the destroy sentence specifying the ID to delete, the ajax return a 200 code with the info of the tweet being deleted (i thought the commit was done) ... and ... sometimes it works and sometimes it reappears !, I checked the twitter site when i try to delete the tweet from my app and sometimes after deleting ... it is still available in the twitter site, after two or three times it is deleted ... but it looks like you have more than one copy of the tweet and depending the syncronization there is a process that recreate the tweet ... I reviewed my code to check no cached data was in my app but i access using a random number in the URL to avoid cache Any help appreciated. Thnks quenotacom -- Matt Harris Developer Advocate, Twitter http://twitter.com/themattharris
[twitter-dev] Re: getting full list of followers from a private list: members.json?cursor=-1
Hello, http://api.twitter.com/1/bvijaykr/flexfollow/members.json?cursor=-1 I have also triedhttp://api.twitter.com/1/bvijaykr/flexfollow/members.json?cursor=-130... which returned a diff set of results.I also triedhttp://api.twitter.com/1/bvijaykr/flexfollow/members.jsonwhich returned the same 1st age of results as ?cursor=-1 This is correct. To get the next set of results, you need to use the next_cursor ( or previous_cursor if you care to navigate that way ) value in the call returned from the cursor=-1 url. - Konpaku
[twitter-dev] Re: Count ignored for retweeted_by_me
Hi Matt, Great, looks like 100 at a time is working fine. Thanks for the quick reply. - Manton On Jul 8, 6:52 pm, Matt Harris thematthar...@twitter.com wrote: Hi Manton, The docs are incorrect here. They should say the maximum value for count is 100. We're correcting the documentation to reflect this. Let me know if the 100 count isn't working for you though. Matt
[twitter-dev] Re: Search API -Timezones problem
Can anyone answer my questions??
[twitter-dev] If you had rate limits reset issues today you should be ok now
Those of you who were having rate limit reset issues today (Thursday 8th July) should be ok now. If not let us know by replying to this message letting us know: * The IP of the computer which is making the requests * A username you are making requests for * The time you tried to make the request * The request you were trying to make * Any response headers you received Thanks Matt Harris Developer Advocate, Twitter http://twitter.com/themattharris
Re: [twitter-dev] Re: oauth status update returning error 401 invalid / used nonce
On Wed, Jun 16, 2010 at 9:39 PM, Craig chanson9...@gmail.com wrote: By the way, even when I try to tweet with just one word like: tweet, it doesn't work. Just simple ascii characters. Is there any way you can just intercept one of my test tweets and look at what, if anything might be going wrong on the server side? I have the exact same issue than Craig. My iPhone application uses 3 accounts, 2 are working (@fabienpenso and @fabientest) and the third one (@appnotification) returns 401 no matter what I'm doing. Some of my users are also telling me getting 401s. Is there anything I can do to trace this?
Re: [twitter-dev] Re: oauth status update returning error 401 invalid / used nonce
On Fri, Jul 9, 2010 at 3:24 AM, Fabien Penso fabienpe...@gmail.com wrote: On Wed, Jun 16, 2010 at 9:39 PM, Craig chanson9...@gmail.com wrote: By the way, even when I try to tweet with just one word like: tweet, it doesn't work. Just simple ascii characters. Is there any way you can just intercept one of my test tweets and look at what, if anything might be going wrong on the server side? I have the exact same issue than Craig. My iPhone application uses 3 accounts, 2 are working (@fabienpenso and @fabientest) and the third one (@appnotification) returns 401 no matter what I'm doing. Some of my users are also telling me getting 401s. Is there anything I can do to trace this? If it helps the answer I have right now is : = {request=/statuses/update.json, error=Read-only application cannot POST} Where my application http://twitter.com/apps/edit/14088 has readwrite access permission.
[twitter-dev] Re: Need example about get info twittercounter api
Thanks for your Respone, luisg. -I checked api of twitter but not enough info. you can go to twittercounter.com and will see many info ( average , follower, following ,... ) for each day. i asked Boris ( he created api twiitercounter.com) , he said het get info in long time and save it to DB . -And anyone can help me ! On Jul 6, 5:10 am, luisg luisfmgoncal...@gmail.com wrote: Not sure if you can get all that info with the Twitter API. But for followers and tweets, you can get them using user/show: ... followers_count1031/followers_count ... statuses_count3390/statuses_count ... check here:http://apiwiki.twitter.com/Twitter-REST-API-Method%3A-statuses%C2%A0f... The number of friends, maybe with this one:http://apiwiki.twitter.com/Twitter-REST-API-Method%3A-statuses%C2%A0f... Luis On Jul 5, 8:55 am, doremon dungdet...@gmail.com wrote: - Now i want to make site get some info like twittercounter.com, But i can not get full information like twittercounter . So i have some questions. 1.The information at twittercounter.com only twittercounter can get from twitter ? ex : 866 Followers 616 Following 111 Tweets #107,543 Twitter rank -1 yesterday -48 yesterday +0 yesterday 107,482 +101 on average -6 on average +2 on average yesterday - And information follow weekly, monthly, 3 monthly,... for draw amcharts. 2. If twitter has support please help me how can register for get this information ( or i must payment for get this information).