Re: [twitter-dev] Re: What You Put In Not The Same As What You Get Back Out
Uploading the same file to Twitter twice in a row results in 2 unique URLs. For example: http://a3.twimg.com/profile_background_images/63273103/avatar-200.png http://a3.twimg.com/profile_background_images/63273237/avatar-200.png So after you upload the background image save the URL and either do HEAD request to see if it is still active or compare it to the URL in users/show. Abraham On 2009-12-31, Kyle Mulka repalvigla...@yahoo.com wrote: I've noticed that you keep the filename. That was kind of annoying for other reasons: http://groups.google.com/group/twitter-development-talk/browse_thread/thread/1f63694495c02ff/a713748c19c35895 If I just check the filename, I can't be sure that the file wasn't changed by the user. It would be nice if the account/ update_profile_background_image function could guarantee that the image URL returned was the actual image I uploaded. (with whatever filtering you want to apply) -- Kyle Mulka Founder, Congo Labs http://twilk.com On Dec 30, 8:03 pm, John Adams j...@twitter.com wrote: On Dec 30, 2009, at 4:21 PM, Kyle Mulka wrote: My application uploads a background image on a user's behalf. I want to be able to figure out if they are still using the background image at some future point in time. The filename might work as a test for this, instead of the computationally expensive MD5 on an image hack. We still retain the original file (basename) on images. -j --- John Adams (@netik) Twitter Operations j...@twitter.comhttp://twitter.com/netik -- Abraham Williams | #doit | http://hashtagdoit.com Project | Intersect | http://intersect.labs.poseurtech.com Hacker | http://abrah.am | http://twitter.com/abraham This email is: [ ] shareable [x] ask first [ ] private.
Re: [twitter-dev] Re: issues with retweets and API
It seems like twitter.com handles favoriting and retweeting well so there seems to be some discrepancy between what twitter.com uses and the API. +1 Retweets_by_others (statuses/retweeted_to_me) includes the retweets by you and your friends. If you retweet a original status from Retweets_by_others (statuses/retweeted_to_me) shouldn't it be removed from statuses/retweeted_to_me ?. If it is added to statuses/retweeted_by_me then whats the point of retaining this in Retweets_by_others (statuses/retweeted_to_me). From api you cant actually undo the retweets in statuses/retweeted_to_me. I am stuck here :( On Fri, Jan 1, 2010 at 4:39 AM, John munz...@gmail.com wrote: The retweeted status is only available if the tweet is a retweet. Thats why I was suggesting there be a variable like retweeted_by_me in the original tweet to let you know you've retweeted it so you can Undo. If this were to be implemented there needs to be a new method to Undo the retweet which takes in the original tweet id. Since you don't have the id of the retweet you cannot call statuses/destroy. If you call it using the original id it results in an error since you don't own the tweet. Right now retweets are a one-way action with the API. If you need to unfavorite a retweet you must go to your favorites and unfavorite the tweet and if you want to Undo a retweet you need to use statuses/ retweeted_by_me and destroy the retweet. It seems like twitter.com handles favoriting and retweeting well so there seems to be some discrepancy between what twitter.com uses and the API.
[twitter-dev] background url showing via api, but not on profile
The profile background image URL of this user shows up in the API, but it doesn't show up on their profile page. What’s happening? profile page: http://twitter.com/dirk100 API: http://www.twitter.com/users/show.xml?screen_name=dirk100 background image URL in API: http://a1.twimg.com/profile_background_images/63365544/twilk_background.jpg -- Kyle Mulka Founder, Congo Labs http://twilk.com
[twitter-dev] Re: Oauth authentication jquery
All that aside, the other problem would be exposing your secret key. I am sure you can imagine how terribly bad that can end up... On Dec 30, 10:57 pm, Hari hariharanwebm...@gmail.com wrote: Is it a case of same origin policyhttp://en.wikipedia.org/wiki/Same_origin_policy On Dec 10, 8:27 am, Daniel Silva danielmartinssi...@gmail.com wrote: When I trying to do Oauth authentication with jquery it always receives a empty response. I'm doing this: $.ajax({ beforeSend: function(xhr) { xhr.setRequestHeader(Authentication, authorizationHeader) }, url:'https://twitter.com/oauth/request_token', type: 'get', contentType: 'application/x-www-form-urlencoded', async: false, success: function(msg){ alert( Data: + msg ); } }); //output -- Data: Can someone help me? -- best regards, Daniel Silva
[twitter-dev] http://twitter.com/statuses/friends.xml Improper order
Hi, I am using statuses/friends call to get the list of user's friend's screen names. These screen names are stored by the system. I am maintaining the last stored screen name, so that it can be used as offset from which new screen names can be listed.For ex: today I stored 250 screen names, after 10 days 50 more friends are added, by using the offset I end up storing the newly added 50 screen names only. The problem is that statuses/friends is returning the array in the order in which they joined twitter , but not the order in which the user is following them. As per the documentation it says ... Returns a user's friends, each with current status inline. They are ordered by the order in which the user followed them, most recently followed first, 100 at a time But the results are different. Where as friends/ids call is returning the list as mentioned in documentation. Well i can use this list and get screen names for each id, but it is expensive as the system is a mobile app and performance is critical. Please let me know if this is a know issue or is there any thing more i need to do to get the statuses/friends as mentioned in documentation. Thanks, Srikanth
[twitter-dev] Twitter Preproduction Server?
I'm just starting out on writing a simple C++ library that integrates with the Twitter API. As this is in the early stages I don't really want to be integrating with the live twitter environment - 1) I may be sending over a load of broken requests while I work out that I'm doing 2) The status updates / etc will just be for testing and I don't really want them through on my live account 3) I don't want to get blacklisted or keep hitting rate limits Is there a preproduction / dev version of the twitter api that's just for developers to integrate with? I couldn't find anything in the FAQ, it seems very much like it's live or nothing. Cheers, Oli
[twitter-dev] [ANN] OAuthery - Mac developer tool for logging into Twitter OAuth manually
Hey everyone, I just released a tool for Mac OS X called OAuthery. It allows you to manually obtain an access token using the PIN-based workflow. This is especially useful if you're using OAuth in a script or a bot. You enter your consumer key and consumer secret, and the system will obtain a request token. You authorize the application in the browser, then enter the PIN number into the application. Then it will fetch the access token and display it to you, which you can then copy into your script. It includes full source code, so developers targeting the Mac or iPhone platforms can see a reference implementation of the login workflow using the OAuthConsumer framework. You can download a precompiled application or the source over at GitHub: http://github.com/amazingsyco/oauthery Feedback always welcome! Thanks, Steve
Re: [twitter-dev] Twitter Preproduction Server?
No test version of twitter. The best way is to create a test account and protect it's updates to keep it off search. Request account/ip white-listing where necessary. You may get rate limited but it's good to understand your limits you can work inside during testing (rate limits reset every hour). It's unlikely to get blacklisted as long as your not DOSing twitter or spamming people. Zac Bowling On Fri, Jan 1, 2010 at 5:51 AM, evolutional evolutio...@gmail.com wrote: I'm just starting out on writing a simple C++ library that integrates with the Twitter API. As this is in the early stages I don't really want to be integrating with the live twitter environment - 1) I may be sending over a load of broken requests while I work out that I'm doing 2) The status updates / etc will just be for testing and I don't really want them through on my live account 3) I don't want to get blacklisted or keep hitting rate limits Is there a preproduction / dev version of the twitter api that's just for developers to integrate with? I couldn't find anything in the FAQ, it seems very much like it's live or nothing. Cheers, Oli
[twitter-dev] Re: Question about Twitter use in library names
It's been four weeks since I originally asked this question. Is there any chance at all it will be answered in the near future? The time it takes to get a simple straight answer is mind-boggling. On Dec 22 2009, 11:14 am, Duane Roelands duane.roela...@gmail.com wrote: Hopefully, I haven't asked a question with an unfortunate answer. When I look at the number of great libraries with Twitter in the name, it would be a real kick in the teeth to the developer community. On Dec 22, 12:09 am, Ryan Sarver rsar...@twitter.com wrote: Just wanted to follow up with everyone and let you know we are still on this and haven't forgotten about the thread. Hopefully will have an answer for you soon. Best, Ryan 2009/12/5 Ryan Sarver rsar...@twitter.com Duane, We definitely don't want to be sending any nastygrams, especially for something that helps the community. I put a note into our legal / marks department so that I can get an answer back to you and everyone else. Please bear with us as it could take a bit, but I'll get you an answer. Best, Ryan On Fri, Dec 4, 2009 at 1:39 PM, Duane Roelands duane.roela...@gmail.comwrote: A question for the Twitter team: I'm the developer and maintainer of an open source library called TwitterVB. Can I expect a nastygram from your lawyers at some point? Or is there some way I can have the project vetted to avoid such a thing in the future?
Re: [twitter-dev] http://twitter.com/statuses/friends.xml Improper order
I believe that this is a known issue which the Twitter team are working on. There are messages in this group about the issue - a search should give you some more info. All the best, Tom On Thu, Dec 31, 2009 at 12:03 PM, srikanthsombha...@gmail.com srikanthsombha...@gmail.com wrote: Hi, I am using statuses/friends call to get the list of user's friend's screen names. These screen names are stored by the system. I am maintaining the last stored screen name, so that it can be used as offset from which new screen names can be listed.For ex: today I stored 250 screen names, after 10 days 50 more friends are added, by using the offset I end up storing the newly added 50 screen names only. The problem is that statuses/friends is returning the array in the order in which they joined twitter , but not the order in which the user is following them. As per the documentation it says ... Returns a user's friends, each with current status inline. They are ordered by the order in which the user followed them, most recently followed first, 100 at a time But the results are different. Where as friends/ids call is returning the list as mentioned in documentation. Well i can use this list and get screen names for each id, but it is expensive as the system is a mobile app and performance is critical. Please let me know if this is a know issue or is there any thing more i need to do to get the statuses/friends as mentioned in documentation. Thanks, Srikanth
[twitter-dev] Rate Limiting question
Hi all, I was feeling a little clever after working on some Twitter API stuff but then thought oh! I'd better think about Twitters rate limiting...and then that's where my brain started to melt! A few bits of info: my web app needs people to authenticate (OAUTH) and, from then on, the app analyses their tweets and occasionally updates registered user's statuses. I've applied for the webserver IP to be white listed which I believe gives the app 20,000 requests per hour. I've not found the search API to be great when looking for a hashtag (sometimes tweets just don't seem to get indexed) so I've gone a stage further and am analysing the individual timelines of all my registered users via a cron job (the cron job sucks in all of a persons tweets greater than the last analysed tweet of the user). This call is made via OAUTH/authenticated so I believe such a call depletes the user's rate limit quota rather than the IP/authenticated account of the webserver quota? Is that correct? Thanks for any thoughts here Joel
Re: [twitter-dev] Re: Question about Twitter use in library names
We're talking about lawyers here Duane. Straight forward is not a term that they understand. On 1/1/2010 2:31 PM, Duane Roelands wrote: It's been four weeks since I originally asked this question. Is there any chance at all it will be answered in the near future? The time it takes to get a simple straight answer is mind-boggling. On Dec 22 2009, 11:14 am, Duane Roelandsduane.roela...@gmail.com wrote: Hopefully, I haven't asked a question with an unfortunate answer. When I look at the number of great libraries with Twitter in the name, it would be a real kick in the teeth to the developer community. On Dec 22, 12:09 am, Ryan Sarverrsar...@twitter.com wrote: Just wanted to follow up with everyone and let you know we are still on this and haven't forgotten about the thread. Hopefully will have an answer for you soon. Best, Ryan 2009/12/5 Ryan Sarverrsar...@twitter.com Duane, We definitely don't want to be sending any nastygrams, especially for something that helps the community. I put a note into our legal / marks department so that I can get an answer back to you and everyone else. Please bear with us as it could take a bit, but I'll get you an answer. Best, Ryan On Fri, Dec 4, 2009 at 1:39 PM, Duane Roelandsduane.roela...@gmail.comwrote: A question for the Twitter team: I'm the developer and maintainer of an open source library called TwitterVB. Can I expect a nastygram from your lawyers at some point? Or is there some way I can have the project vetted to avoid such a thing in the future?
[twitter-dev] Re: Rate Limiting question
My experience with rate limiting shows that each authenticated request is counted against that user's limit on your IP. So, you get 20,000 requests per IP, per user, per hour assuming all your requests are authenticated. Any unauthenticated requests go towards the 20,000 request limit per IP, per hour. In my case, all Twitter API calls are authenticated and cached for an hour. The way my app is set up, under normal usage, no user will use more than 20,000 Twitter API requests. -- Kyle Mulka Founder, Congo Labs http://twilk.com On Jan 1, 5:43 pm, jojet j...@jojet.com wrote: Hi all, I was feeling a little clever after working on some Twitter API stuff but then thought oh! I'd better think about Twitters rate limiting...and then that's where my brain started to melt! A few bits of info: my web app needs people to authenticate (OAUTH) and, from then on, the app analyses their tweets and occasionally updates registered user's statuses. I've applied for the webserver IP to be white listed which I believe gives the app 20,000 requests per hour. I've not found the search API to be great when looking for a hashtag (sometimes tweets just don't seem to get indexed) so I've gone a stage further and am analysing the individual timelines of all my registered users via a cron job (the cron job sucks in all of a persons tweets greater than the last analysed tweet of the user). This call is made via OAUTH/authenticated so I believe such a call depletes the user's rate limit quota rather than the IP/authenticated account of the webserver quota? Is that correct? Thanks for any thoughts here Joel
Re: [twitter-dev] Rate Limiting question
For the first use case, following many users' timelines, you should be using the follow method on the Streaming API. Currently you cannot get protected and low quality user statuses this way, but you can get the vast majority of tweets this way. Until we support these corner cases, you can fall back to the REST API for protected users. For automated hashtag searching, you should also be using the Streaming API. The track feature will give you all hashtags search for up to a fairly generous proportion of the total stream of tweets. -John Kalucki http://twitter.com/jkalucki Services, Twitter Inc. On Fri, Jan 1, 2010 at 2:43 PM, jojet j...@jojet.com wrote: Hi all, I was feeling a little clever after working on some Twitter API stuff but then thought oh! I'd better think about Twitters rate limiting...and then that's where my brain started to melt! A few bits of info: my web app needs people to authenticate (OAUTH) and, from then on, the app analyses their tweets and occasionally updates registered user's statuses. I've applied for the webserver IP to be white listed which I believe gives the app 20,000 requests per hour. I've not found the search API to be great when looking for a hashtag (sometimes tweets just don't seem to get indexed) so I've gone a stage further and am analysing the individual timelines of all my registered users via a cron job (the cron job sucks in all of a persons tweets greater than the last analysed tweet of the user). This call is made via OAUTH/authenticated so I believe such a call depletes the user's rate limit quota rather than the IP/authenticated account of the webserver quota? Is that correct? Thanks for any thoughts here Joel
Re: [twitter-dev] Twitter Preproduction Server?
Hello, I tend to use many test accounts while developing. When I hit a rate limit I just switch. There is a sandbox in the works from what twitter has been telling us. So hopefully that will make life a little easier for testing with the API. Josh
Re: [twitter-dev] http://twitter.com/statuses/friends.xml Improper order
http://code.google.com/p/twitter-api/issues/detail?id=1277 On Fri, Jan 1, 2010 at 16:02, Thomas Woolway tswool...@gmail.com wrote: I believe that this is a known issue which the Twitter team are working on. There are messages in this group about the issue - a search should give you some more info. All the best, Tom On Thu, Dec 31, 2009 at 12:03 PM, srikanthsombha...@gmail.com srikanthsombha...@gmail.com wrote: Hi, I am using statuses/friends call to get the list of user's friend's screen names. These screen names are stored by the system. I am maintaining the last stored screen name, so that it can be used as offset from which new screen names can be listed.For ex: today I stored 250 screen names, after 10 days 50 more friends are added, by using the offset I end up storing the newly added 50 screen names only. The problem is that statuses/friends is returning the array in the order in which they joined twitter , but not the order in which the user is following them. As per the documentation it says ... Returns a user's friends, each with current status inline. They are ordered by the order in which the user followed them, most recently followed first, 100 at a time But the results are different. Where as friends/ids call is returning the list as mentioned in documentation. Well i can use this list and get screen names for each id, but it is expensive as the system is a mobile app and performance is critical. Please let me know if this is a know issue or is there any thing more i need to do to get the statuses/friends as mentioned in documentation. Thanks, Srikanth -- Abraham Williams | #doit | http://hashtagdoit.com Project | Intersect | http://intersect.labs.poseurtech.com Hacker | http://abrah.am | http://twitter.com/abraham This email is: [ ] shareable [x] ask first [ ] private. Sent from Madison, WI, United States
Re: [twitter-dev] Re: issues with retweets and API
'Retweet by others' includes both (this is seen in web not in api) i.e if you retweet a friend's original retweet from 'Retweet by others' tab (in web) it appears in both 'Retweets by Me' (statuses/retweeted_by_me) and 'Retweet by others' (in web). You can undo this retweet in both tabs.(you cannot undo this using api from statuses/retweeted_to_me) My question is shouldn't this be removed from 'Retweet by others' as it is already in 'Retweet by Me' If this is removed then you don't have to bother about Undoing in statuses/retweeted_to_me On Sat, Jan 2, 2010 at 3:17 AM, John munz...@gmail.com wrote: statuses/retweeted_to_me are retweets by your followers. You cannot undo/destroy these tweets since you do not own them. statuses/retweeted_by_me are your retweets. You can undo/destroy these tweets. Sounds like you are trying to relate these two together when there is no relation between the two.