[twitter-dev] This method requires a POST.
Hello I am using Curl method and getting below error Error : /direct_messages/new.xml This method requires a POST. ON URL : http://www.homefindingcommunity.com/ Below is my script. This script works fine on my local server as well as other few websites e.g. redcounty.com, greenfaucet.com but it won't work on homefindingcommunity.com ?php /// $t= new twitter(); $t-username='username'; $t-password='password'; //$res = $t-update('i am testing twitter.php'); $message = urlencode(test direct Message #GOP HFC); $res = $t-sendDirectMessage('thewebdevcenter',$message); if($res[http_code]=='403') { 'You cannot send messages to users who are not following you'; } if($res===false){ echo ERRORhr/; echo pre; print_r($t-resultthis); echo /pre; }else{ echo SUCCESShr/Status Posted; } // class twitter{ var $username=''; var $password=''; var $user_agent=''; /// // // I don't know if these headers have become standards yet // but I would suggest using them. // more discussion here. // http://tinyurl.com/3xtx66 // /// var $headers=array('X-Twitter-Client: ', 'X-Twitter-Client-Version: ', 'X-Twitter-Client-URL: '); var $responseInfo=array(); function twitter(){} / // // Twitter API calls // // $this-update($status) // $this-publicTimeline($sinceid=false) // $this-friendsTimeline($id=false,$since=false) // $this-userTimeline($id=false,$count=20,$since=false) // $this-showStatus($id) // $this-friends($id=false) // $this-followers() // $this-featured() // $this-showUser($id) // $this-directMessages($since=false) // $this-sendDirectMessage($user,$text) // // If SimpleXMLElement exists the results will be returned as a SimpleXMLElement // otherwise the raw XML will be returned for a successful request. If the request // fails a FALSE will be returned. // // / // Updates the authenticating user's status. // Requires the status parameter specified below. // // status. (string) Required. The text of your status update. Must not be // more than 160 characters and should not be // more than 140 characters to ensure optimal display. // function update($status){ $request = 'http://twitter.com/statuses/update.xml'; $postargs = 'status='.urlencode($status); return $this-process($request,$postargs); } function twitter_authenticate($username,$password) { $this-username=$username; $this-password=$password; $request = 'http://twitter.com/account/ verify_credentials.xml'; $auth_data = $this-process($request); if($auth_data===false) { return 'Error'; } else { $get_username = $auth_data-screen_name; $retrun_array = array('1',$get_username); return $retrun_array; } } // Returns the 20 most recent statuses from non-protected users who have // set a custom user icon. Does not require authentication. // // sinceid. (int) Optional. Returns only public statuses with an ID greater // than (that is, more recent than) the specified ID. // function publicTimeline($sinceid=false){ $qs=''; if($sinceid!==false) $qs='?since_id='.intval($sinceid); $request = 'http://twitter.com/statuses/public_timeline.xml'. $qs; return $this-process($request); } // Returns the 20 most recent statuses posted in the last 24 hours from the // authenticating user and that user's friends. It's also possible to request // another user's friends_timeline via the id parameter below. // // id. (string OR int) Optional. Specifies the ID or screen name of the user for whom //to return the friends_timeline. (set to false if you //want to use authenticated user). // since. (HTTP-formatted date) Optional. Narrows the returned results to just those // statuses created after the specified date. // function friendsTimeline($id=false,$since=false){ $qs=''; if($since!==false) $qs='?since='.urlencode($since); if($id===false) $request = 'http://twitter.com/statuses/ friends_timeline.xml'.$qs; else $request = 'http://twitter.com/statuses/ friends_timeline/'.urlencode($id).'.xml'.$qs; return
[twitter-dev] Just launched TwitStat.us...
Hey, A friend and I recently launched TwitStat.us (http://twitstat.us), a site where you can basically create a badge that display results about any given search terms from Twitter's Search API. The badge that we give to users is pure javascript that just queries Twitter's API. That said, I'm not too sure as to whether there's any issue with consistently hitting Twitter's API with Javascript - I mean, it'd be pretty difficult to rate limit that, no? Anybody got experience with this and care to share? If you have any critiques about TwitStat.us, feel free to toss those out too. Always open to suggestions! - Ryan McGrath
[twitter-dev] Re: Just launched TwitStat.us...
Hi I tested its not worked for me On Mon, Jul 13, 2009 at 2:25 PM, Ryan McGrath ryan.mcgra...@gmail.comwrote: Hey, A friend and I recently launched TwitStat.us (http://twitstat.us), a site where you can basically create a badge that display results about any given search terms from Twitter's Search API. The badge that we give to users is pure javascript that just queries Twitter's API. That said, I'm not too sure as to whether there's any issue with consistently hitting Twitter's API with Javascript - I mean, it'd be pretty difficult to rate limit that, no? Anybody got experience with this and care to share? If you have any critiques about TwitStat.us, feel free to toss those out too. Always open to suggestions! - Ryan McGrath -- Regards Mandakini
[twitter-dev] Re: This method requires a POST.
Mandakini, I ran into a similar problem a while back and tracked it down to the latest version of CURL. When I pulled an earlier version of CURL for PHP from one of my servers that didn't have this problem and installed it on the server in question it worked fine. I never did track it any further to figure out why the latest version of CURL had this issue. Perhaps someone out there can tell us a configuration trick. But it was clear that somewhere in the depths of CURL (for PHP anyway) POST calls were being turned into GET with the latest version of CURL. Hope that helps. Randy C
[twitter-dev] Re: Just launched TwitStat.us...
Works fine when I just checked it. div class=twitstatus_badge_container id=twitstat_badge_282/div script type=text/javascript src=http://twitstat.us/js/twitstat.min.js;/script script type=text/javascript twitstat.badge.init({ badge_container: twitstat_badge_282, title: Twitter Search, keywords: mytwitterbutler, max: 15, border_color: #434343, header_background: #434343, header_font_color: #ff, content_background_color: #e1e1e1, content_font_color: #33, link_color: #307ace }); /script Regards, Dean Collins Cognation Inc d...@cognation.net mailto:d...@cognation.net +1-212-203-4357 New York +61-2-9016-5642 (Sydney in-dial). +44-20-3129-6001 (London in-dial). From: twitter-development-talk@googlegroups.com [mailto:twitter-development-t...@googlegroups.com] On Behalf Of Mandakini kumari Sent: Monday, July 13, 2009 6:56 AM To: twitter-development-talk@googlegroups.com Subject: [twitter-dev] Re: Just launched TwitStat.us... Hi I tested its not worked for me On Mon, Jul 13, 2009 at 2:25 PM, Ryan McGrath ryan.mcgra...@gmail.com wrote: Hey, A friend and I recently launched TwitStat.us (http://twitstat.us), a site where you can basically create a badge that display results about any given search terms from Twitter's Search API. The badge that we give to users is pure javascript that just queries Twitter's API. That said, I'm not too sure as to whether there's any issue with consistently hitting Twitter's API with Javascript - I mean, it'd be pretty difficult to rate limit that, no? Anybody got experience with this and care to share? If you have any critiques about TwitStat.us, feel free to toss those out too. Always open to suggestions! - Ryan McGrath -- Regards Mandakini
[twitter-dev] to send messages or tweets to twitter is that possible
hi all i want to send data from flash to twitter is that possible thanks
[twitter-dev] Where did I go wrong?
I've been trying to get Twitter authentication to work on my website and I've run into a wall. Basically, I have a file called Twitter.php. The idea is that this file will be called on every page that needs to make an API request. I have another file called AuthLanding.php. AuthLanding.php is the callback URL for Twitter. If a user browses to a page that requires authentication, I want to redirect them to Twitter to authenticate. I've got a lot of code written, but for the life of me, I can't get it to work. I would REALLY appreciate it if you could take a quick glance. Here is Twitter.php: http://pastebin.com/m891ee71 Here is AuthLanding.php: http://pastebin.com/mc026480 Thanks so much!
[twitter-dev] make links from description clickable
I'm kinda new to php and have no clue how to do this, but how would I make links from the description field clickable? I know I need to add a href=link here text /a but how do i go about doing it, below is the coding I'm using currently. =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=- ?php $username = RuneTweeter; $rssUrl = http://twitter.com/statuses/user_timeline/$username.rss? count=5; $rss = @file_get_contents($rssUrl); if($rss){ $xml = @simplexml_load_string($rss); if($xml !== false){ foreach($xml-channel-item as $tweet){ echo substr($tweet-pubDate,0, -6).br /; echo substr($tweet-description,13).br /; echo a href=\{$tweet-link}\{$tweet-link}/abr /br /; } }else{ echo Error: RSS file not valid!; } }else{ echo Error: RSS file not found. Username invalid or requires authentication; } ?
[twitter-dev] Interested in hiring a twitter developer
Hi, If there is an excellent Twitter app developer out there (very familiar with APIs), I want to develop an application for my company. Must be willing to sign an NDA and be able to verify your work. Thanks!
[twitter-dev] Re: Just launched TwitStat.us...
Ryan, I've tested it on My Linking Power Forum in a new group I'm putting up called I LOVE RSS!: http://mylinkingpowerforum.ning.com/group/ILoveRSS http://mylinkingpowerforum.ning.com/group/ILoveRSSWorks very well for me... Thanks, and Keep STRONG!! Vincent Wright Director Of Community MyLinkingPowerForum.ning.com | MyVirtualPowerForum.com | MyLinkedinPowerForum.net | VincentWright.com (Linkedin) | VincentWright.net (Facebook) | VincentWright.org (Google) | VincentWright.us (Twitter) | Skype/Gtalk = MyLinkedinPowerForum | +1-860-967-0563 On Mon, Jul 13, 2009 at 4:55 AM, Ryan McGrath ryan.mcgra...@gmail.comwrote: Hey, A friend and I recently launched TwitStat.us (http://twitstat.us), a site where you can basically create a badge that display results about any given search terms from Twitter's Search API. The badge that we give to users is pure javascript that just queries Twitter's API. That said, I'm not too sure as to whether there's any issue with consistently hitting Twitter's API with Javascript - I mean, it'd be pretty difficult to rate limit that, no? Anybody got experience with this and care to share? If you have any critiques about TwitStat.us, feel free to toss those out too. Always open to suggestions! - Ryan McGrath
[twitter-dev] Research about open APIs
Dear all, I am currently undertaking a full time masters in Electronic Publishing at City University London. As part of my studies I am required to undertake some research for my dissertation thesis titled ‘Newspapers as Platforms: How Open APIs Will Impact Journalism, a study investigating the possible changes in the way journalism is produced and perceived brought by the recent release of open APIs by large news corporations such as The Guardian and The New York Times. I would like to invite you to participate in this research and would be grateful if you could take some time to complete a questionnaire. Any information supplied will remain confidential. The survey should take no longer than 10-15 minutes to complete. The closing date for submitting the questionnaire is Friday 24th July 2009 at 23h. Please find the link to the questionnaire below: http://www.esurveyspro.com/Survey.aspx?id=28090fcf-2f71-4c23-a3e5-7dbb23e5da04 Thank you for taking the time to participate in this study. If you need any further information on the research, please don't hesitate to contact me. Carolina Ribeiro Pietoso journalismapi.wordpress.com
[twitter-dev] Re: OAuth and native clients
agreed, regards, Otávio Ribeiro On Wed, Jul 8, 2009 at 11:52 PM, Zach zcox...@gmail.com wrote: I'm going to 3rd Sebastian's POV. This is a serious problem that needs to be addressed now. Mobile app developers want to integrate their native apps with sites like Twitter and Facebook, but the current user experience is so unacceptable that no one is going to use it in its current form. For more on the topic: http://www.hueniverse.com/hueniverse/2009/02/beyond-the-oauth-web-redirection-flow.html Kudos to the Twitter team for actually starting to think about a reasonable solution to this problem. Facebook has the Connect for iPhone library, but even that is just their terrible JavaScript-based Connect login shown in an embedded browser. And forget about trying to authenticate with Facebook from something like a BlackBerry app. We are anxiously awaiting a OAuth for Mobile option for the Twitter API (as are a lot of other developers). Our app missed the from [MyApplication] using Basic Auth cutoff so now every status update we push says from Twitter4J... not the best for marketing purposes. We would also love not having to store passwords on the device and send them over the wire every time a user clicks the Share button. On Jun 30, 4:42 pm, morefromalan sbal...@gmail.com wrote: Just wanted to second Sebastian's POV here. UserExperience is a key revenue driver for us, andOAuthfor nativemobileapps is really painful for the user. On Jun 19, 5:41 am, Sebastian sdelm...@gmail.com wrote: Thanks for the pointer... I did some searches, but they were all focused onmobileclients. In my case, I'm not worried about the complexity of implementing OAuth. I can deal with that, and once it's done, it's gone from the picture. It's the user experience that worries me, as exposed on that thread by the TTYtter example. Well, since people are asking, the workflow doesn't significantly differ from otherOAuthapplications and depends on the fact that access tokens don't expire. When people start TTYtter up for the first time without an access token (or TTYtter tries the access token and it fails), it asks for the usual request token, prints the access URL with the request token it wants the user to authorize, and waits for the user to authorize. Twitter, presumably, will say, ok, tell your program to continue. Back on TTYtter's side, the user hits ENTER, and TTYtter exchanges its request token for an access token *and caches it* once it has verified it can successfully hit the user timeline for data. So far, this is not significantly different than any otherOAuthapp. Is there any other way to doOAuthand at the same time, behave like a sensible application? Could Twitter implement a basic auth api call to perform theoauth authorization in the first place? Such a call would only be allowed from clients that prove they need it, and could be revoked for rogue clients. I know this lowers the security ofOAuth, but it only officializes a hack many apps will try to implement. On Jun 19, 12:39 am, Cameron Kaiser spec...@floodgap.com wrote: Or is the door for basic auth really closing forever? This has been discussed in a number of threads and an exact determination has not yet been made. However, this might give you some context: http://groups.google.com/group/twitter-development-talk/browse_thread... -- personal: http://www.cameronkaiser.com/-- Cameron Kaiser * Floodgap Systems *www.floodgap.com* ckai...@floodgap.com -- The cost of living has not adversely affected its popularity. --- Hide quoted text - - Show quoted text -
[twitter-dev] Re: make links from description clickable
2009/7/13 Tom tombomb...@gmail.com: I'm kinda new to php and have no clue how to do this, but how would I make links from the description field clickable? I know I need to add a href=link here text /a but how do i go about doing it, below is the coding I'm using currently. =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=- ?php $username = RuneTweeter; $rssUrl = http://twitter.com/statuses/user_timeline/$username.rss? count=5; $rss = @file_get_contents($rssUrl); if($rss){ $xml = @simplexml_load_string($rss); if($xml !== false){ foreach($xml-channel-item as $tweet){ echo substr($tweet-pubDate,0, -6).br /; echo substr($tweet-description,13).br /; echo a href=\{$tweet-link}\{$tweet-link}/abr /br /; } }else{ echo Error: RSS file not valid!; } }else{ echo Error: RSS file not found. Username invalid or requires authentication; } ? http://stut.net/projects/twitter/htmlify_tweet.html -Stuart -- http://stut.net/projects/twitter/
[twitter-dev] Re: Interested in hiring a twitter developer
Hi Dale, Check out the directory on our wiki at: http://apiwiki.twitter.com/Developers Thanks; – Matt Sanford / @mzsanford Twitter Dev On Jul 13, 2009, at 5:29 AM, Dale wrote: Hi, If there is an excellent Twitter app developer out there (very familiar with APIs), I want to develop an application for my company. Must be willing to sign an NDA and be able to verify your work. Thanks!
[twitter-dev] Re: This method requires a POST.
Hi Randy Thanks for your response. As you said POST calls were being turned into GET I think that might be a reason I will talk to server provider. Once again thanks for pointing the cause. On Mon, Jul 13, 2009 at 5:53 PM, RandyC bioscienceupda...@gmail.com wrote: Mandakini, I ran into a similar problem a while back and tracked it down to the latest version of CURL. When I pulled an earlier version of CURL for PHP from one of my servers that didn't have this problem and installed it on the server in question it worked fine. I never did track it any further to figure out why the latest version of CURL had this issue. Perhaps someone out there can tell us a configuration trick. But it was clear that somewhere in the depths of CURL (for PHP anyway) POST calls were being turned into GET with the latest version of CURL. Hope that helps. Randy C -- Regards Mandakini
[twitter-dev] Re: Interested in hiring a twitter developer
Hello Dale, Here are just a few of the Twitter APPS we have developed Best regards, -E Gpro.ws http://Twitter.com/edpimentl http://twitter.com/edpimentl http://AskTwitR.com http://asktwitr.com/ (Real Time Twitter Search Reputation Management) http://TwiTR.Me http://twitr.me/ (Cross Social Network Messaging Bus) http://WatchNtweet.Me http://watchntweet.me/ (Watch and Chat/Tweet) SocialTV http://TwebEX.com http://twebex.com/ (Twitter Based Online Web Conference Platform) http://TwitrShare.com http://twitrshare.com/ (Send Picture and Message to Tweet Contacts) http://TweetUp.ws http://tweetup.ws/ (Twitter based MeetUp service) http://PiCurio.us http://picurio.us/ (Spell with FlickR, Let others SEE what you are saying) http://Tweet4Coupons.com http://tweet4coupons.com/ (Tweet to Save) http://TweetOrder.in/ http://tweetorder.in/ (Tweet Food Order)
[twitter-dev] Re: Just launched TwitStat.us...
It's a cool little program. With the rate limiting - the requests should come from the viewer's IP address, so rate limiting shouldn't be a problem. At worst, individual users viewing it 20,000 or whatever time an hour would see an error, everyone else would be fine.
[twitter-dev] Trying to post but my account is not posting duplicate posts
Hi all, I have a system set up that uses its own twitter to send information to my main twitter name. However i have noticed if one message is. You have a new update then the message straight after cannot be You have a new update. is there a way to get around this as i need to get these notifications working any help is really apprechiated. Regards Mark
[twitter-dev] Re: Trying to post but my account is not posting duplicate posts
On Mon, Jul 13, 2009 at 11:24 AM, Mark Davies markdavies12...@gmail.comwrote: Hi all, I have a system set up that uses its own twitter to send information to my main twitter name. However i have noticed if one message is. You have a new update then the message straight after cannot be You have a new update. is there a way to get around this as i need to get these notifications working any help is really apprechiated. Regards Mark Try appending a unique sequence ID. Thanks- - Andy Badera - and...@badera.us - Google me: http://www.google.com/search?q=andrew+badera - This email is: [ ] bloggable [x] ask first [ ] private
[twitter-dev] Re: Just launched TwitStat.us...
Hey everyone, Thanks for the positive feedback! Hope everyone enjoys using it as much as we enjoyed making it. Thanks for the heads up on the rate limiting, Grant. That's what we thought initially, but I figured it'd be polite to ask around and make sure were weren't abusing any API calls. Appreciate the help! - Ryan On Jul 13, 11:05 am, Grant Emsley grant.ems...@gmail.com wrote: It's a cool little program. With the rate limiting - the requests should come from the viewer's IP address, so rate limiting shouldn't be a problem. At worst, individual users viewing it 20,000 or whatever time an hour would see an error, everyone else would be fine.
[twitter-dev] Re: Trying to post but my account is not posting duplicate posts
Hi Andrew, Sorry i am fairly new to twitter development and i have looked on the api doc's but cannot find out how to add a unique sequence ID would you be able to point me to the place i need to look? Regards Mark On Jul 13, 4:33 pm, Andrew Badera and...@badera.us wrote: On Mon, Jul 13, 2009 at 11:24 AM, Mark Davies markdavies12...@gmail.comwrote: Hi all, I have a system set up that uses its own twitter to send information to my main twitter name. However i have noticed if one message is. You have a new update then the message straight after cannot be You have a new update. is there a way to get around this as i need to get these notifications working any help is really apprechiated. Regards Mark Try appending a unique sequence ID. Thanks- - Andy Badera - and...@badera.us - Google me:http://www.google.com/search?q=andrew+badera - This email is: [ ] bloggable [x] ask first [ ] private
[twitter-dev] Re: Trying to post but my account is not posting duplicate posts
On Mon, Jul 13, 2009 at 10:24 AM, Mark Daviesmarkdavies12...@gmail.com wrote: Hi all, I have a system set up that uses its own twitter to send information to my main twitter name. However i have noticed if one message is. You have a new update then the message straight after cannot be You have a new update. Duplicates are dropped by Twitter upon receipt. is there a way to get around this as i need to get these notifications working any help is really apprechiated. Change the post slightly. -damon
[twitter-dev] Re: to send messages or tweets to twitter is that possible
http://apiwiki.twitter.com/Libraries The very first category is for flash... On Jul 13, 2:56 am, nite21 shanebond1...@gmail.com wrote: hi all i want to send data from flash to twitter is that possible thanks
[twitter-dev] Re: How to insure that all tweets are retrieved in a search?
First, I wouldn't expect that thousands are going to post your promo code per minute. That doesn't seem realistic. Hi John, It's more than just a promo code. There are other aspects of this promotion that might create an issue with thousands of tweets per minute. If it happens and I haven't planned ahead to deal with it, then I'm screwed because some data will be missing that I really should be retrieving, and apparently I won't have any way to retrieve it later. Second, you can use the /track method on the Streaming API, which will return all keyword matches up to a certain limit with no other rate limiting. I guess this is what I need ... unless you or someone can reduce or eliminate the Search API limits. It really seems inappropriate to tie up a connection for streaming data 24 hours a day when I do not need streaming data. All I really need is a search that doesn't restrict me so much. If I had this capability I could easily minimize my promotion's impact on Twitter by 2-3 orders of magnitude. From my perspective this seems like something Twitter might want to support, but then again I do not work at Twitter so I'm not as familiar with their priorities as you are. Contact us if the default limits are an issue. I'm only guessing that they will become a problem, but it is very clear to me how easily they might become a problem. The unfortunate situation here is that *IF* these limits become a problem it's already too late to do anything about it -- because by then I've permanently lost access to some of the data I need -- and even though the data is still in your database there's no way for me to get it out because the search restrictions get in the way again. It's just that the API is so limited that the techniques I might use with any other service are simply not available at Twitter. For example, imagine this which is a far better scenario for my needs: I run ONE search every day for my search terms, and Twitter responds with ALL the matching records no matter how many there are -- not just 100 per page or 1500 results per search but ALL matches, even if there are hundreds of thousands of them. If this were possible I could easily do only one search per day and store the results in a local database. Then the next day I could run the same search again -- and limit this new search to the last 24 hours so I don't have to retrieve any of the same records I retrieved the previous day. Can you imagine how must LESS this would impact Twitter's servers when I do not have to keep a connection open 24 hours a day as with Streaming API ... and I do not have to run repetitive searches every few seconds all day long as with Search API? The load savings on your servers would be huge, not to mention the bandwidth savings!!! - The bottom line here is that I hope you have people who understand this situation and are working to improve it, but in the meantime my only options appear to be: 1- Use the Streaming API which is clearly an inferior method for me because a broken connection will cause me to lose important data without warning. 2- Hope that someone at Twitter can raise the limits for me on their Search API so I can achieve my goals without running thousands of searches every day. - As you can see I'm trying to find the best way to get the data I need while minimizing the impact on Twitter, that's why I'm making comments / suggestions like the ones in this email. So who should I contact at Twitter to see if they can raise the search limits for me? Are you the man? If not, please let me know who I should contact and how. Thanks! Owkaye
[twitter-dev] Re: Trying to post but my account is not posting duplicate posts
Hi Damon, It is strage as if i post a message from twitter.com itself i can for example post test, then test again straight after. is it a constraint the API enforces? Regards Mark On Jul 13, 4:46 pm, Damon Clinkscales sca...@pobox.com wrote: On Mon, Jul 13, 2009 at 10:24 AM, Mark Daviesmarkdavies12...@gmail.com wrote: Hi all, I have a system set up that uses its own twitter to send information to my main twitter name. However i have noticed if one message is. You have a new update then the message straight after cannot be You have a new update. Duplicates are dropped by Twitter upon receipt. is there a way to get around this as i need to get these notifications working any help is really apprechiated. Change the post slightly. -damon
[twitter-dev] Re: Trying to post but my account is not posting duplicate posts
I think the limit is only on the API. I suppose there are/were conditions where duplicates would get posted, and this prevents that from happening. Easiest thing to do: Have your program put a timestamp in the message, so instead of You have a new update, put 11:57:01 You have a new update
[twitter-dev] Re: Trying to post but my account is not posting duplicate posts
Hi Grant, Yeah a simple yet informative way around the issue, thanks. Regards Mark On Jul 13, 4:57 pm, Grant Emsley grant.ems...@gmail.com wrote: I think the limit is only on the API. I suppose there are/were conditions where duplicates would get posted, and this prevents that from happening. Easiest thing to do: Have your program put a timestamp in the message, so instead of You have a new update, put 11:57:01 You have a new update
[twitter-dev] Re: How to insure that all tweets are retrieved in a search?
Hi there, Some comments in-line: On Jul 13, 2009, at 8:51 AM, owkaye wrote: First, I wouldn't expect that thousands are going to post your promo code per minute. That doesn't seem realistic. Hi John, It's more than just a promo code. There are other aspects of this promotion that might create an issue with thousands of tweets per minute. If it happens and I haven't planned ahead to deal with it, then I'm screwed because some data will be missing that I really should be retrieving, and apparently I won't have any way to retrieve it later. Second, you can use the /track method on the Streaming API, which will return all keyword matches up to a certain limit with no other rate limiting. I guess this is what I need ... unless you or someone can reduce or eliminate the Search API limits. It really seems inappropriate to tie up a connection for streaming data 24 hours a day when I do not need streaming data. Streaming server connections are quite cheap for Twitter so tying one up is much less work on the server side than repeated queries. All I really need is a search that doesn't restrict me so much. If I had this capability I could easily minimize my promotion's impact on Twitter by 2-3 orders of magnitude. From my perspective this seems like something Twitter might want to support, but then again I do not work at Twitter so I'm not as familiar with their priorities as you are. Contact us if the default limits are an issue. I'm only guessing that they will become a problem, but it is very clear to me how easily they might become a problem. The unfortunate situation here is that *IF* these limits become a problem it's already too late to do anything about it -- because by then I've permanently lost access to some of the data I need -- and even though the data is still in your database there's no way for me to get it out because the search restrictions get in the way again. It's just that the API is so limited that the techniques I might use with any other service are simply not available at Twitter. For example, imagine this which is a far better scenario for my needs: I run ONE search every day for my search terms, and Twitter responds with ALL the matching records no matter how many there are -- not just 100 per page or 1500 results per search but ALL matches, even if there are hundreds of thousands of them. We tried allowing access to follower information in a one-query method like this and it failed. The main reason is that when there are tens of thousands of matches things start timing out. While all matches sounds like a perfect solution, in practice staying connected for minutes at a time and pulling down an unbounded size result set has not proved to be a scalable solution. If this were possible I could easily do only one search per day and store the results in a local database. Then the next day I could run the same search again -- and limit this new search to the last 24 hours so I don't have to retrieve any of the same records I retrieved the previous day. Can you imagine how must LESS this would impact Twitter's servers when I do not have to keep a connection open 24 hours a day as with Streaming API ... and I do not have to run repetitive searches every few seconds all day long as with Search API? The load savings on your servers would be huge, not to mention the bandwidth savings!!! - The bottom line here is that I hope you have people who understand this situation and are working to improve it, but in the meantime my only options appear to be: 1- Use the Streaming API which is clearly an inferior method for me because a broken connection will cause me to lose important data without warning. 2- Hope that someone at Twitter can raise the limits for me on their Search API so I can achieve my goals without running thousands of searches every day. There is no way for anyone at Twitter to change the pagination limits without changing them across the board. As a side note: The pagination limits exist as a technical limit and not something meant to stifle creativity/usefulness. When you go back in time we have to read data from disk and replace recent data in memory with that older data. The pagination limit is there to prevent too much of our memory space being taken up by old data that a very small percentage of requests need. - As you can see I'm trying to find the best way to get the data I need while minimizing the impact on Twitter, that's why I'm making comments / suggestions like the ones in this email. So who should I contact at Twitter to see if they can raise the search limits for me? Are you the man? If not, please let me know who I should contact and how. You can email api AT twitter.com for things like this, but as stated above the pagination limit is not something that has a white list.
[twitter-dev] OQ Codes as tweets
Hello, I remember reading the discussion of sending images through tweets, e.g. quasimondo's post on flickr at http://www.flickr.com/photos/quasimondo/3518306770/ I am wondering if people think you could do this successful with a QR code? http://code.google.com/apis/chart/types.html#qrcodes -Peter
[twitter-dev] Rate Limit reporting
I feel a bit silly asking this in the time of OAuth - but I'm not quite there yet... So how to return the rate limit for a given user? Looking at the api documentation I presume you need to authenticate (log in) The obvious way to do this is via GET with: http://username:passw...@twitter.com/account/rate_limit_status.xml I've also tried base64'ing the username:password as suggested here: http://en.wikipedia.org/wiki/Basic_access_authentication http://base64(User:Pass)@twitter.com/account/rate_limit_status.xml However, every time I try I'm returned with the rate limit for the IP address and not the user. I know I'm missing something (a few sandwiches from the picnic probably) - could someone enlighten me? Many thanks
[twitter-dev] Re: Rate Limit reporting
Hi Justin, The user:pass is a shortcut used by some browsers and libraries but is not supported in all libraries. What language/library are you using? Most of them have some option for setting the user and password directly. Also, the most common issue when seeing the IP limit is an incorrect password. You should also try calling verify_credentials to make sure the password is correct and everything is being received correctly by Twitter. Thanks; – Matt Sanford / @mzsanford Twitter Dev On Jul 13, 2009, at 9:22 AM, Justin wrote: I feel a bit silly asking this in the time of OAuth - but I'm not quite there yet... So how to return the rate limit for a given user? Looking at the api documentation I presume you need to authenticate (log in) The obvious way to do this is via GET with: http://username:passw...@twitter.com/account/rate_limit_status.xml I've also tried base64'ing the username:password as suggested here: http://en.wikipedia.org/wiki/Basic_access_authentication http://base64(User:Pass)@twitter.com/account/rate_limit_status.xml However, every time I try I'm returned with the rate limit for the IP address and not the user. I know I'm missing something (a few sandwiches from the picnic probably) - could someone enlighten me? Many thanks
[twitter-dev] Re: OQ Codes as tweets
You can also check out these QR code resources. http://code.google.com/p/zxing/ http://zxing.appspot.com/generator/ The source code is under Apache License 2.0 Cheers! http://chart.apis.google.com/chart?cht=qrchs=350x350chl=MECARD%3AN%3AVision+Jinx%3B%3B On Jul 13, 10:14 am, Peter Denton petermden...@gmail.com wrote: Hello, I remember reading the discussion of sending images through tweets, e.g. quasimondo's post on flickr athttp://www.flickr.com/photos/quasimondo/3518306770/ I am wondering if people think you could do this successful with a QR code?http://code.google.com/apis/chart/types.html#qrcodes -Peter
[twitter-dev] Re: OQ Codes as tweets
So you want to encode text as an image...then translate the image to text, send through twitter, translate the text to an image...and then decode the QR code back to text? I have no idea why you would want to do that. There must be an easier way. Convert the QR code back to text and send via twitter, or something. It probably wouldn't work anyways - the image would be too degraded (judging by the picture in your first link) for the QR code to be recognized properly. On Jul 13, 12:14 pm, Peter Denton petermden...@gmail.com wrote: Hello, I remember reading the discussion of sending images through tweets, e.g. quasimondo's post on flickr athttp://www.flickr.com/photos/quasimondo/3518306770/ I am wondering if people think you could do this successful with a QR code?http://code.google.com/apis/chart/types.html#qrcodes -Peter
[twitter-dev] Re: OQ Codes as tweets
Grant, QR codes can contain more information than 140 characters. and yes it would work. Regards, Dean Collins Cognation Inc d...@cognation.net +1-212-203-4357 New York +61-2-9016-5642 (Sydney in-dial). +44-20-3129-6001 (London in-dial). -Original Message- From: twitter-development-talk@googlegroups.com [mailto:twitter-development-t...@googlegroups.com] On Behalf Of Grant Emsley Sent: Monday, July 13, 2009 12:40 PM To: Twitter Development Talk Subject: [twitter-dev] Re: OQ Codes as tweets So you want to encode text as an image...then translate the image to text, send through twitter, translate the text to an image...and then decode the QR code back to text? I have no idea why you would want to do that. There must be an easier way. Convert the QR code back to text and send via twitter, or something. It probably wouldn't work anyways - the image would be too degraded (judging by the picture in your first link) for the QR code to be recognized properly. On Jul 13, 12:14 pm, Peter Denton petermden...@gmail.com wrote: Hello, I remember reading the discussion of sending images through tweets, e.g. quasimondo's post on flickr athttp://www.flickr.com/photos/quasimondo/3518306770/ I am wondering if people think you could do this successful with a QR code?http://code.google.com/apis/chart/types.html#qrcodes -Peter
[twitter-dev] Re: OQ Codes as tweets
Btw - 60 second QR codes overview located here www.Cognation.net/QR Regards, Dean Collins Cognation Inc d...@cognation.net +1-212-203-4357 New York +61-2-9016-5642 (Sydney in-dial). +44-20-3129-6001 (London in-dial). -Original Message- From: twitter-development-talk@googlegroups.com [mailto:twitter-development-t...@googlegroups.com] On Behalf Of Dean Collins Sent: Monday, July 13, 2009 12:47 PM To: twitter-development-talk@googlegroups.com Subject: [twitter-dev] Re: OQ Codes as tweets Grant, QR codes can contain more information than 140 characters. and yes it would work. Regards, Dean Collins Cognation Inc d...@cognation.net +1-212-203-4357 New York +61-2-9016-5642 (Sydney in-dial). +44-20-3129-6001 (London in-dial). -Original Message- From: twitter-development-talk@googlegroups.com [mailto:twitter-development-t...@googlegroups.com] On Behalf Of Grant Emsley Sent: Monday, July 13, 2009 12:40 PM To: Twitter Development Talk Subject: [twitter-dev] Re: OQ Codes as tweets So you want to encode text as an image...then translate the image to text, send through twitter, translate the text to an image...and then decode the QR code back to text? I have no idea why you would want to do that. There must be an easier way. Convert the QR code back to text and send via twitter, or something. It probably wouldn't work anyways - the image would be too degraded (judging by the picture in your first link) for the QR code to be recognized properly. On Jul 13, 12:14 pm, Peter Denton petermden...@gmail.com wrote: Hello, I remember reading the discussion of sending images through tweets, e.g. quasimondo's post on flickr athttp://www.flickr.com/photos/quasimondo/3518306770/ I am wondering if people think you could do this successful with a QR code?http://code.google.com/apis/chart/types.html#qrcodes -Peter
[twitter-dev] Re: Rate Limit reporting
Sorry about emailing you my last response. I understand what you're saying about firefox - though I'm having the same issue with requests via Microsoft.XMLHTTP requests - it's gone the end of the day now (I do have a habit of starting these things when there's no time). Will carry on the fight tomorrow - at least I have a direction now - will try some other request methods. Many thanks once again for your quick responses. @JustinReid On Jul 13, 5:26 pm, Matt Sanford m...@twitter.com wrote: Hi Justin, The user:pass is a shortcut used by some browsers and libraries but is not supported in all libraries. What language/library are you using? Most of them have some option for setting the user and password directly. Also, the most common issue when seeing the IP limit is an incorrect password. You should also try calling verify_credentials to make sure the password is correct and everything is being received correctly by Twitter. Thanks; – Matt Sanford / @mzsanford Twitter Dev On Jul 13, 2009, at 9:22 AM, Justin wrote: I feel a bit silly asking this in the time of OAuth - but I'm not quite there yet... So how to return the rate limit for a given user? Looking at the api documentation I presume you need to authenticate (log in) The obvious way to do this is via GET with: http://username:passw...@twitter.com/account/rate_limit_status.xml I've also tried base64'ing the username:password as suggested here: http://en.wikipedia.org/wiki/Basic_access_authentication http://base64(User:Pass)@twitter.com/account/rate_limit_status.xml However, every time I try I'm returned with the rate limit for the IP address and not the user. I know I'm missing something (a few sandwiches from the picnic probably) - could someone enlighten me? Many thanks
[twitter-dev] Re: OQ Codes as tweets
Thanks for everyone's replies, this is great. On Mon, Jul 13, 2009 at 9:51 AM, Dean Collins d...@cognation.net wrote: Btw - 60 second QR codes overview located here www.Cognation.net/QR Regards, Dean Collins Cognation Inc d...@cognation.net +1-212-203-4357 New York +61-2-9016-5642 (Sydney in-dial). +44-20-3129-6001 (London in-dial). -Original Message- From: twitter-development-talk@googlegroups.com [mailto: twitter-development-t...@googlegroups.com] On Behalf Of Dean Collins Sent: Monday, July 13, 2009 12:47 PM To: twitter-development-talk@googlegroups.com Subject: [twitter-dev] Re: OQ Codes as tweets Grant, QR codes can contain more information than 140 characters. and yes it would work. Regards, Dean Collins Cognation Inc d...@cognation.net +1-212-203-4357 New York +61-2-9016-5642 (Sydney in-dial). +44-20-3129-6001 (London in-dial). -Original Message- From: twitter-development-talk@googlegroups.com [mailto: twitter-development-t...@googlegroups.com] On Behalf Of Grant Emsley Sent: Monday, July 13, 2009 12:40 PM To: Twitter Development Talk Subject: [twitter-dev] Re: OQ Codes as tweets So you want to encode text as an image...then translate the image to text, send through twitter, translate the text to an image...and then decode the QR code back to text? I have no idea why you would want to do that. There must be an easier way. Convert the QR code back to text and send via twitter, or something. It probably wouldn't work anyways - the image would be too degraded (judging by the picture in your first link) for the QR code to be recognized properly. On Jul 13, 12:14 pm, Peter Denton petermden...@gmail.com wrote: Hello, I remember reading the discussion of sending images through tweets, e.g. quasimondo's post on flickr athttp:// www.flickr.com/photos/quasimondo/3518306770/ I am wondering if people think you could do this successful with a QR code?http://code.google.com/apis/chart/types.html#qrcodes -Peter -- Peter M. Denton www.twibs.com i...@twibs.com Twibs makes Top 20 apps on Twitter - http://tinyurl.com/bopu6c
[twitter-dev] Re: How to insure that all tweets are retrieved in a search?
I concur with Matt. Track in the Streaming API is, in part, intended for applications just like yours. Hit the Search API and use track together to get the highest proportion of statuses possible. The default track limit is intended for human readable scale applications. Email me about elevated track access for services. It's possible that you are worrying about an unlikely event. Sustained single topic statuses in the thousands per minute are usually limited to things like massive social upheaval, big political events, celebrity death, etc. -John Kalucki twitter.com/jkalucki Services, Twitter Inc. On Jul 13, 9:12 am, Matt Sanford m...@twitter.com wrote: Hi there, Some comments in-line: On Jul 13, 2009, at 8:51 AM, owkaye wrote: First, I wouldn't expect that thousands are going to post your promo code per minute. That doesn't seem realistic. Hi John, It's more than just a promo code. There are other aspects of this promotion that might create an issue with thousands of tweets per minute. If it happens and I haven't planned ahead to deal with it, then I'm screwed because some data will be missing that I really should be retrieving, and apparently I won't have any way to retrieve it later. Second, you can use the /track method on the Streaming API, which will return all keyword matches up to a certain limit with no other rate limiting. I guess this is what I need ... unless you or someone can reduce or eliminate the Search API limits. It really seems inappropriate to tie up a connection for streaming data 24 hours a day when I do not need streaming data. Streaming server connections are quite cheap for Twitter so tying one up is much less work on the server side than repeated queries. All I really need is a search that doesn't restrict me so much. If I had this capability I could easily minimize my promotion's impact on Twitter by 2-3 orders of magnitude. From my perspective this seems like something Twitter might want to support, but then again I do not work at Twitter so I'm not as familiar with their priorities as you are. Contact us if the default limits are an issue. I'm only guessing that they will become a problem, but it is very clear to me how easily they might become a problem. The unfortunate situation here is that *IF* these limits become a problem it's already too late to do anything about it -- because by then I've permanently lost access to some of the data I need -- and even though the data is still in your database there's no way for me to get it out because the search restrictions get in the way again. It's just that the API is so limited that the techniques I might use with any other service are simply not available at Twitter. For example, imagine this which is a far better scenario for my needs: I run ONE search every day for my search terms, and Twitter responds with ALL the matching records no matter how many there are -- not just 100 per page or 1500 results per search but ALL matches, even if there are hundreds of thousands of them. We tried allowing access to follower information in a one-query method like this and it failed. The main reason is that when there are tens of thousands of matches things start timing out. While all matches sounds like a perfect solution, in practice staying connected for minutes at a time and pulling down an unbounded size result set has not proved to be a scalable solution. If this were possible I could easily do only one search per day and store the results in a local database. Then the next day I could run the same search again -- and limit this new search to the last 24 hours so I don't have to retrieve any of the same records I retrieved the previous day. Can you imagine how must LESS this would impact Twitter's servers when I do not have to keep a connection open 24 hours a day as with Streaming API ... and I do not have to run repetitive searches every few seconds all day long as with Search API? The load savings on your servers would be huge, not to mention the bandwidth savings!!! - The bottom line here is that I hope you have people who understand this situation and are working to improve it, but in the meantime my only options appear to be: 1- Use the Streaming API which is clearly an inferior method for me because a broken connection will cause me to lose important data without warning. 2- Hope that someone at Twitter can raise the limits for me on their Search API so I can achieve my goals without running thousands of searches every day. There is no way for anyone at Twitter to change the pagination limits without changing them across the board. As a side note: The pagination limits exist as a technical limit and not something meant to stifle creativity/usefulness. When you go back
[twitter-dev] Re: OQ Codes as tweets
http://AgileCODES.com -E Gpro.ws
[twitter-dev] Re: Interested in hiring a twitter developer
Matt, Thanks so much. On Mon, Jul 13, 2009 at 7:06 AM, Matt Sanford m...@twitter.com wrote: Hi Dale, Check out the directory on our wiki at: http://apiwiki.twitter.com/Developers Thanks; – Matt Sanford / @mzsanford Twitter Dev On Jul 13, 2009, at 5:29 AM, Dale wrote: Hi, If there is an excellent Twitter app developer out there (very familiar with APIs), I want to develop an application for my company. Must be willing to sign an NDA and be able to verify your work. Thanks!
[twitter-dev] Where to start
Hi, Im looking to get into some twitter development. My PHP knowledge is OK - i understand most implementations. I wondered if anyone suggests where i start? Ive read some of the documentation on the twitter API but i am unsure if what i'd like to do is possible. Ive seen plenty of php libraries out there, can anyone recomend one that best for using the search API? What i basically want to do is search for a hashtag, and then display the results: #this Tweeted:1000 times Re-Tweeted:100 times Total tweets : 1100 times. Is this possible to do? thanks
[twitter-dev] Re: Where to start
Hello, I think you should divide up your tasks to get comfy with the API. 1. Write a page to search for a hastag, then just display the results. 2. See what kinds of results you can drive from the data. The reason I say this is because, 1 is easy, and displays how nice the API is to get started. 2 is more difficult because a) you have to do a lot of counting, sorting on your end to come up with those types of conclusions. Search is a moving window, meaning, results in the past beyond a certain point, are gone, so you wont be able to say, give me all for #iranelection, for example. So you then have to get as much data as possible, possibly store it in a DB, and then start crunching it. Also, If you are going to have a consumer facing site, where actions are specific to a user and need to be stored, then probably best to start with oAuth implementation (http://twitter.abrah.am/) and go from there. Peter On Mon, Jul 13, 2009 at 10:31 AM, shaundunne thedarkp...@gmail.com wrote: Hi, Im looking to get into some twitter development. My PHP knowledge is OK - i understand most implementations. I wondered if anyone suggests where i start? Ive read some of the documentation on the twitter API but i am unsure if what i'd like to do is possible. Ive seen plenty of php libraries out there, can anyone recomend one that best for using the search API? What i basically want to do is search for a hashtag, and then display the results: #this Tweeted:1000 times Re-Tweeted:100 times Total tweets : 1100 times. Is this possible to do? thanks -- Peter M. Denton www.twibs.com i...@twibs.com Twibs makes Top 20 apps on Twitter - http://tinyurl.com/bopu6c
[twitter-dev] Re: Interested in hiring a twitter developer
Hi Ed, I would like to send you an NDA before we discuss the project. Can you forward me your name, position, and company w/address? Look forward to discussing the project with you. Dale On Mon, Jul 13, 2009 at 7:16 AM, EdPimentl edpime...@gmail.com wrote: Hello Dale, Here are just a few of the Twitter APPS we have developed Best regards, -E Gpro.ws http://Twitter.com/edpimentl http://twitter.com/edpimentl http://AskTwitR.com http://asktwitr.com/ (Real Time Twitter Search Reputation Management) http://TwiTR.Me http://twitr.me/ (Cross Social Network Messaging Bus) http://WatchNtweet.Me http://watchntweet.me/ (Watch and Chat/Tweet) SocialTV http://TwebEX.com http://twebex.com/ (Twitter Based Online Web Conference Platform) http://TwitrShare.com http://twitrshare.com/ (Send Picture and Message to Tweet Contacts) http://TweetUp.ws http://tweetup.ws/ (Twitter based MeetUp service) http://PiCurio.us http://picurio.us/ (Spell with FlickR, Let others SEE what you are saying) http://Tweet4Coupons.com http://tweet4coupons.com/ (Tweet to Save) http://TweetOrder.in/ http://tweetorder.in/ (Tweet Food Order)
[twitter-dev] Re: Interested in hiring a twitter developer
It would probably be good to take the conversation off list from this point on. Thanks, Abraham On Mon, Jul 13, 2009 at 12:33, Dale Merritt mogul...@gmail.com wrote: Hi Ed, I would like to send you an NDA before we discuss the project. Can you forward me your name, position, and company w/address? Look forward to discussing the project with you. Dale On Mon, Jul 13, 2009 at 7:16 AM, EdPimentl edpime...@gmail.com wrote: Hello Dale, Here are just a few of the Twitter APPS we have developed Best regards, -E Gpro.ws http://Twitter.com/edpimentl http://twitter.com/edpimentl http://AskTwitR.com http://asktwitr.com/ (Real Time Twitter Search Reputation Management) http://TwiTR.Me http://twitr.me/ (Cross Social Network Messaging Bus) http://WatchNtweet.Me http://watchntweet.me/ (Watch and Chat/Tweet) SocialTV http://TwebEX.com http://twebex.com/ (Twitter Based Online Web Conference Platform) http://TwitrShare.com http://twitrshare.com/ (Send Picture and Message to Tweet Contacts) http://TweetUp.ws http://tweetup.ws/ (Twitter based MeetUp service) http://PiCurio.us http://picurio.us/ (Spell with FlickR, Let others SEE what you are saying) http://Tweet4Coupons.com http://tweet4coupons.com/ (Tweet to Save) http://TweetOrder.in/ http://tweetorder.in/ (Tweet Food Order) -- Abraham Williams | Community Evangelist | http://web608.org Hacker | http://abrah.am | http://twitter.com/abraham Project | http://fireeagle.labs.poseurtech.com This email is: [ ] blogable [x] ask first [ ] private.
[twitter-dev] Re: make links from description clickable
Tom, We do not allow HTML in tweets. Only plain text. Any links sent will be automatically linked on Twitter.com but it is up to third-party clients to handle any linking within their application. Thanks, Doug On Mon, Jul 13, 2009 at 6:38 AM, Stuart stut...@gmail.com wrote: 2009/7/13 Tom tombomb...@gmail.com: I'm kinda new to php and have no clue how to do this, but how would I make links from the description field clickable? I know I need to add a href=link here text /a but how do i go about doing it, below is the coding I'm using currently. =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=- ?php $username = RuneTweeter; $rssUrl = http://twitter.com/statuses/user_timeline/$username.rss? count=5; $rss = @file_get_contents($rssUrl); if($rss){ $xml = @simplexml_load_string($rss); if($xml !== false){ foreach($xml-channel-item as $tweet){ echo substr($tweet-pubDate,0, -6).br /; echo substr($tweet-description,13).br /; echo a href=\{$tweet-link}\{$tweet-link}/abr /br /; } }else{ echo Error: RSS file not valid!; } }else{ echo Error: RSS file not found. Username invalid or requires authentication; } ? http://stut.net/projects/twitter/htmlify_tweet.html -Stuart -- http://stut.net/projects/twitter/
[twitter-dev] change my image ; old profile_image_url seen in response to users/show
Hello all Today I changed my profile image (several times) via twitter web page, Settings - Picture The changed picture appeared immediately in the web pages (That's a nice picture ...), and the new url can be seen with the browser's Copy Image Location : http://s3.amazonaws.com/twitter_production/profile_images/311858510/me-bsp-6a_normal.png However, subsequent users/show queries (from curl or from browser address bar) return responses that contain old urls - not the same one either : curl http://twitter.com/users/show/rudifa.json http://s3.amazonaws.com/twitter_production/profile_images/198907870/Snapshot_of_me_1_normal.png curl http://twitter.com/users/show/rudifa.xml http://s3.amazonaws.com/twitter_production/profile_images/311647072/Snapshot_of_me_1_normal.png Is this a known problem ? Does the twitter server perform some kind of caching that would explain this ? Any ideas for getting immediately an up-to-date response from twitter server would be appreciated. Rudi
[twitter-dev] Re: Interested in hiring a twitter developer
Matt, How can I add my name to that page? Thanks -Jason On Jul 13, 10:06 am, Matt Sanford m...@twitter.com wrote: Hi Dale, Check out the directory on our wiki at:http://apiwiki.twitter.com/Developers Thanks; – Matt Sanford / @mzsanford Twitter Dev On Jul 13, 2009, at 5:29 AM, Dale wrote: Hi, If there is an excellent Twitter app developer out there (very familiar with APIs), I want to develop an application for my company. Must be willing to sign an NDA and be able to verify your work. Thanks!
[twitter-dev] Re: Interested in hiring a twitter developer
Hi Jason, Send your information in an email to api AT twitter.com. Thanks; – Matt Sanford / @mzsanford Twitter Dev On Jul 13, 2009, at 1:45 PM, JasonWyatt wrote: Matt, How can I add my name to that page? Thanks -Jason On Jul 13, 10:06 am, Matt Sanford m...@twitter.com wrote: Hi Dale, Check out the directory on our wiki at:http://apiwiki.twitter.com/Developers Thanks; – Matt Sanford / @mzsanford Twitter Dev On Jul 13, 2009, at 5:29 AM, Dale wrote: Hi, If there is an excellent Twitter app developer out there (very familiar with APIs), I want to develop an application for my company. Must be willing to sign an NDA and be able to verify your work. Thanks!
[twitter-dev] Re: change my image ; old profile_image_url seen in response to users/show
Thank you, Clint After I posted my questions I went out for a long walk. Now, almost 90 min later, both queries (curl http://twitter.com/users/show/rudifa.json and curl http://twitter.com/users/show/rudifa.xml) do return the updated image url. Rudi
[twitter-dev] Re: Failed to validate oauth signature and token using python/django libs
Update: It works now. Thanks to everyone who tried to help me diagnose the issue. Today, Hedley posted about the system being off can cause the request token to fail. This was my exact problem it turns out. http://groups.google.com/group/twitter-development-talk/browse_thread/thread/aadee92bc5c34f29?pli=1 Thanks again! ~Blaine On Jul 9, 10:57 pm, JDG ghil...@gmail.com wrote: No. According to the oauth spec, your signature key is always consumer_secrettoken_secret, even if token_secret is empty, so when you first call request_token, your key will be consumer_secret On Thu, Jul 9, 2009 at 21:24, Blaine Garrett bla...@blainegarrett.comwrote: Hi, Thanks for the quick reply Matt. Below is a recap of the setup with a bit more clarity as well as the keys, url, and pre-encoded data. Hopefully this sheds some light on the issue. I also tried the PHP lib someone recommended with the same results - i.e 401 error. So again, I am thinking it is something external to the Django setup - be it on either end of the requests. Thanks again! Blaine 1. Url I am trying to call the twitter API: http://articulture.blainegarrett.com/signin/ 2. View Code being called: [python_code] def signin(request): from acsite.people import oauthtwitter import acsite.settings as settings # Step 1: Create an anonymous twitter oauth consumer oauth_consumer = oauthtwitter.OAuthApi('Vx43QEmSCP1whLq1OSPg', 'MY_SECRET_KEY') # Blaine's Personal Dev Site keys # Step 2: Fetch Request Token From Twitter request_token = oauth_consumer.getRequestToken() # In here I get the 401 error raise Exception(request_token) # Never gets here [/python_code] 3: I installed fresh copies: python-twitter :http://code.google.com/p/python-twitter/ oauth-python-twitterhttp://code.google.com/p/python-twitter/%0Aoauth-python-twitter: http://code.google.com/p/oauth-python-twitter/ oauth :http://oauth.googlecode.com/svn/code/python/oauth/oauth.py In the oauth.py, I changed the line 36: SIGNATURE_METHOD = 'HMAC-SHA1' 4. With no other changes, I get: the urllib2 exception: HTTPError at / signin/ HTTP Error 401: Unauthorized 5. When I wrap the url opener code in oauthtwitter.py on approx line 102 in: try: url_data = opener.open(url).read() except urllib2.HTTPError, e: raise Exception('GET REQUEST VERSION : Unable to connect to the oAuth Service. Code: %s - Url: %s : Content - %s' % (e.code, e.url, e.msg)) I get the exception: GET REQUEST VERSION: Unable to connect to the oAuth Service. Code: 401 - Url: https://twitter.com/oauth/request_token?oauth_nonce=51064775oauth_ti... : Content - Unauthorized 6. Trying again with a new request, adding an exception of the key,raw returned from build_signature_base_string in build_signature in oauth.py line 563, I get: key=MY_SECRET_KEY, raw: GEThttps%3A%2F%2Ftwitter.com%2Foauth %2Frequest_tokenoauth_consumer_key%3DVx43QEmSCP1whLq1OSPg %26oauth_nonce%3D59181510%26oauth_signature_method%3DHMAC- SHA1%26oauth_timestamp%3D1247173659%26oauth_version%3D1.0 Note trailing ampersand on the key returned. Could this be a query string artifact? On Jul 6, 10:59 am, Matt Sanford m...@twitter.com wrote: Hi Blaine, Failing the validate the signature when getting a request token is pretty rare. As you said the fact this all works from other libraries seems to point to a library issue. The most helpful things to see in these cases are: • The actual HTTP request and response that fails. By seeing the URL requested I can try and recreate the signature and find the mismatch. • The signature base string used to create the oauth_signature parameter. This usually requires adding some print statements to the oauth library you're using but can be really helpful. If you can send the HTTP request and response (headers and bodies) that will be a good start. If you're not sure how to get them from your library I recommend using a debugging proxy like Charles [1]. Thanks; – Matt Sanford / @mzsanford Twitter Dev [1] -http://www.charlesproxy.com/ On Jul 3, 2009, at 2:10 PM, Blaine Garrett wrote: Hi, I get the 401:Unauthorized Error every time I attempt to get a request token. When I attempt to go to the URL directly in the browser (not yet accessed to preserve nonce) I get a body of Failed to validate oauth signature and token. I am using the Leah's oauth client listed athttp://oauth.net/code as well as the python-twitter (0.7-devel) and oauth-python-twitter (v0.1) I was able to get these same libraries to work on a different project but not on the current one I am working on. I have refreshed my tokens numerous times and also tried the working ones from the other project. I also tried the tokens from this project on the other project that was working and that WORKED.
[twitter-dev] Re: change my image ; old profile_image_url seen in response to users/show
This seems like a caching invalidation bug. We will be discussing it at tomorrow's team meeting and I am hopeful the fix will be coming shortly. Thanks, Doug On Mon, Jul 13, 2009 at 2:30 PM, Rudifa rudi.far...@gmail.com wrote: Thank you, Clint After I posted my questions I went out for a long walk. Now, almost 90 min later, both queries (curl http://twitter.com/users/show/rudifa.json and curl http://twitter.com/users/show/rudifa.xml) do return the updated image url. Rudi
[twitter-dev] Re: How to insure that all tweets are retrieved in a search?
We tried allowing access to follower information in a one-query method like this and it failed. The main reason is that when there are tens of thousands of matches things start timing out. While all matches sounds like a perfect solution, in practice staying connected for minutes at a time and pulling down an unbounded size result set has not proved to be a scalable solution. Maybe a different data system would allow this capability. But you have the system you have so I understand why you've done what you've done. There is no way for anyone at Twitter to change the pagination limits without changing them across the board. This is too bad. Are you working on changing this in the future or is this going to be a limitation that persists for years to come? As a side note: The pagination limits exist as a technical limit and not something meant to stifle creativity/usefulness. When you go back in time we have to read data from disk and replace recent data in memory with that older data. The pagination limit is there to prevent too much of our memory space being taken up by old data that a very small percentage of requests need. Okay, this makes sense. It sounds like the original system designers never gave much consideration to the value of historical data search and retrieval. Too bad there's nothing that can be done about this right now, but maybe in the future ... ? The streaming API really is the most scalable solution. No doubt. It's disappointing that my software probably cannot handle streaming data too, but that's my problem not yours. Does anyone have sample PHP code that successfully uses the twitter Streaming API to retrieve the stream and write it to a file or database? I hate PHP but if it works then that's what I'll use, especially if some helpful soul can post some code to help me get started. Thanks. Owkaye
[twitter-dev] Re: How to insure that all tweets are retrieved in a search?
I concur with Matt. Track in the Streaming API is, in part, intended for applications just like yours. Hit the Search API and use track together to get the highest proportion of statuses possible. The default track limit is intended for human readable scale applications. Email me about elevated track access for services. I would use the Streaming API if I could, but now the problem is that my server side scripting language probably won't be able to use the Streaming API successfully ... My software hasn't been upgraded in years, and when it was first coded streaming data via http didn't even exist. The software has been upgraded once in a while over the past decade or so, but the last significant upgrade was more than 5 years ago and it didn't have anything added to allow streaming data access at that time, so I doubt it can handle this task now. I have an email request in to the current owners but I doubt they know how it works either. They never coded the original software or any of the upgrades. They just bought the software without possessing the expertise to understand the code, so they really don't know how it works internally either. My best guess is that it cannot write streaming data to a database as that data is transmitted, and that's what it needs it to do if I have any chance of using the Streaming API instead of a search. So I'll probably have to use some other software to accomplish this task. Any suggestions which software I should use to make this as fast and easy to code as possible? It's possible that you are worrying about an unlikely event. Sustained single topic statuses in the thousands per minute are usually limited to things like massive social upheaval, big political events, celebrity death, etc. You may be correct, but to plan for the possibility that this may be bigger than expected is simply the way I do business. It doesn't make sense for me to launch a promo like this until I'm prepared for the possibilities, right? Owkaye
[twitter-dev] Re: favorited always returns false in favorites/create
Confirmed on my end. Can you please create a new issue for this [1]. 1. http://code.google.com/p/twitter-api/issues/entry Thanks, Doug On Sun, Jul 12, 2009 at 9:09 AM, Thorsten Suckow-Homberg t...@siteartwork.dewrote: Hey there, when calling /favorites/create/[id].xml the response body always returns false for the favorited property. Is this related to the (in)famous caching issues? To reproduce this error, go to http://twitapi.com/explore/favorites-create/#result and favorite a tweet that has not yet been favorited, and inspect the xml reesponse. Regards Thorsten
[twitter-dev] Tweets not getting to search.twitter.com
I have a client whose account recently changed names after they fought for successful control of their name from another Twitter user who parked on it. However, Tweets on this account name are not searchable. The account is not protected. Has anyone ever had this happen? How do you get Tweets back into the search stream? It's like they somehow inherited some bad juju from the old account owner. My client put in support tickets that have not been addressed. One was summarily closed with no explanation. Thanks, Randy C
[twitter-dev] Re: Tweets not getting to search.twitter.com
Randy, Please see the help article on this very subject [1]. If this is for a developer or API related project please contact us off list so we can discuss [2]. 1. http://help.twitter.com/forums/10713/entries/42646 2. http://apiwiki.twitter.com/Support Thanks, Doug On Mon, Jul 13, 2009 at 5:10 PM, RandyC bioscienceupda...@gmail.com wrote: I have a client whose account recently changed names after they fought for successful control of their name from another Twitter user who parked on it. However, Tweets on this account name are not searchable. The account is not protected. Has anyone ever had this happen? How do you get Tweets back into the search stream? It's like they somehow inherited some bad juju from the old account owner. My client put in support tickets that have not been addressed. One was summarily closed with no explanation. Thanks, Randy C
[twitter-dev] RSS blank
My ticket was closed, but I have no idea what the final answer is: This feed http://search.twitter.com/search.atom?q=from:TBABlogsrpp=50 is not updating for me. Is there a reason why? The feed is actually completely blank. I was given the reason to check 5 other pages and pretty much have to figure it out for myself. WTF? I am the point person for a group of blogs so we do use twitterfeed to put out our RSS however I also post messages replying to people if you use twitterfeed you're out?
[twitter-dev] Re: Rate Limit reporting
Hi there, I'm getting the same thing, that is the rate limit for my IP address rather than for the account... most of the time. I run this curl command curl -u username:password http://twitter.com/account/rate_limit_status.xml where username and password are the account's real username and password. Most of the time the response contains an hourly-limit of 20,000, for my IP address I assume. But occasionally the exact same curl command returns an hourly-limit of 150. Very odd. I assume curl handles the credentials correctly. Any thoughts? /Martin On Jul 13, 9:54 am, Justin justin.realw...@googlemail.com wrote: Sorry about emailing you my last response. I understand what you're saying about firefox - though I'm having the same issue with requests via Microsoft.XMLHTTP requests - it's gone the end of the day now (I do have a habit of starting these things when there's no time). Will carry on the fight tomorrow - at least I have a direction now - will try some other request methods. Many thanks once again for your quick responses. @JustinReid On Jul 13, 5:26 pm, Matt Sanford m...@twitter.com wrote: Hi Justin, The user:pass is a shortcut used by some browsers and libraries but is not supported in all libraries. What language/library are you using? Most of them have some option for setting the user and password directly. Also, the most common issue when seeing the IP limit is an incorrect password. You should also try calling verify_credentials to make sure the password is correct and everything is being received correctly by Twitter. Thanks; – Matt Sanford / @mzsanford Twitter Dev On Jul 13, 2009, at 9:22 AM, Justin wrote: I feel a bit silly asking this in the time of OAuth - but I'm not quite there yet... So how to return the rate limit for a given user? Looking at the api documentation I presume you need to authenticate (log in) The obvious way to do this is via GET with: http://username:passw...@twitter.com/account/rate_limit_status.xml I've also tried base64'ing the username:password as suggested here: http://en.wikipedia.org/wiki/Basic_access_authentication http://base64(User:Pass)@twitter.com/account/rate_limit_status.xml However, every time I try I'm returned with the rate limit for the IP address and not the user. I know I'm missing something (a few sandwiches from the picnic probably) - could someone enlighten me? Many thanks
[twitter-dev] Failed update doesn't return an error message?
Hi there, Earlier today I ran afoul of the rate limit for updates through the API. But no error was returned to my app. To make sure my app wasn't suppressing the error message, I sent an update using curl: curl -u username:password -d status=testing http://twitter.com/statuses/update.xml -D headerfile The status wasn't updated and no error message was returned. The headerfile contained HTTP return code 200. But when I tried to enter an update for the same account through the web interface at twitter.com, I got an error message saying that I had posted too many updates in the last hour. When I used the curl command above and the update failed, I did notice that the returned text element did not contain the status text I had sent. Instead it contained my last successful update from 30 minutes earlier. When there is a successful update, the text element seems to contain the status update I just sent. Should I examine the text element to verify that the update worked, instead of checking for HTTP error codes? Or was this just a temporary glitch today? All the best, /Martin
[twitter-dev] Re: Rate Limit reporting
Martin, That's interesting. Is there a pattern to this? Can you offer steps for recreation? It would be helpful to have full header information when this does happen so we can look to see if a specific machine that is returning incorrect information. Thanks, Doug On Mon, Jul 13, 2009 at 4:26 PM, Martin Omander moman...@google.com wrote: Hi there, I'm getting the same thing, that is the rate limit for my IP address rather than for the account... most of the time. I run this curl command curl -u username:password http://twitter.com/account/rate_limit_status.xml where username and password are the account's real username and password. Most of the time the response contains an hourly-limit of 20,000, for my IP address I assume. But occasionally the exact same curl command returns an hourly-limit of 150. Very odd. I assume curl handles the credentials correctly. Any thoughts? /Martin On Jul 13, 9:54 am, Justin justin.realw...@googlemail.com wrote: Sorry about emailing you my last response. I understand what you're saying about firefox - though I'm having the same issue with requests via Microsoft.XMLHTTP requests - it's gone the end of the day now (I do have a habit of starting these things when there's no time). Will carry on the fight tomorrow - at least I have a direction now - will try some other request methods. Many thanks once again for your quick responses. @JustinReid On Jul 13, 5:26 pm, Matt Sanford m...@twitter.com wrote: Hi Justin, The user:pass is a shortcut used by some browsers and libraries but is not supported in all libraries. What language/library are you using? Most of them have some option for setting the user and password directly. Also, the most common issue when seeing the IP limit is an incorrect password. You should also try calling verify_credentials to make sure the password is correct and everything is being received correctly by Twitter. Thanks; – Matt Sanford / @mzsanford Twitter Dev On Jul 13, 2009, at 9:22 AM, Justin wrote: I feel a bit silly asking this in the time of OAuth - but I'm not quite there yet... So how to return the rate limit for a given user? Looking at the api documentation I presume you need to authenticate (log in) The obvious way to do this is via GET with: http://username:passw...@twitter.com/account/rate_limit_status.xml I've also tried base64'ing the username:password as suggested here: http://en.wikipedia.org/wiki/Basic_access_authentication http://base64(User:Pass)@twitter.com/account/rate_limit_status.xml However, every time I try I'm returned with the rate limit for the IP address and not the user. I know I'm missing something (a few sandwiches from the picnic probably) - could someone enlighten me? Many thanks
[twitter-dev] Re: Failed update doesn't return an error message?
Martin, This sounds like issue 795 [1]. When you get the 200, are you sending the same (duplicate) text as the last successful update? If so, this is the expected behavior. However, if you are sending new (non duplicate) text and you are hitting the update limit, you should be receiving a HTTP 403 response code. Can you specify exactly what you are doing so we can debug? 1. http://code.google.com/p/twitter-api/issues/detail?id=795 Thanks, Doug On Mon, Jul 13, 2009 at 4:38 PM, Martin Omander moman...@google.com wrote: Hi there, Earlier today I ran afoul of the rate limit for updates through the API. But no error was returned to my app. To make sure my app wasn't suppressing the error message, I sent an update using curl: curl -u username:password -d status=testing http://twitter.com/statuses/update.xml -D headerfile The status wasn't updated and no error message was returned. The headerfile contained HTTP return code 200. But when I tried to enter an update for the same account through the web interface at twitter.com, I got an error message saying that I had posted too many updates in the last hour. When I used the curl command above and the update failed, I did notice that the returned text element did not contain the status text I had sent. Instead it contained my last successful update from 30 minutes earlier. When there is a successful update, the text element seems to contain the status update I just sent. Should I examine the text element to verify that the update worked, instead of checking for HTTP error codes? Or was this just a temporary glitch today? All the best, /Martin
[twitter-dev] Re: RSS blank
There are no results for that search to be returned in the RSS feed. http://search.twitter.com/search?q=from%3ATBABlogs They account could be flagged for spam. There is a help page specific to not showing up in search results but I can't find it at the moment. Abraham On Mon, Jul 13, 2009 at 15:35, Handride patrickjpat...@yahoo.com wrote: My ticket was closed, but I have no idea what the final answer is: This feed http://search.twitter.com/search.atom?q=from:TBABlogsrpp=50 is not updating for me. Is there a reason why? The feed is actually completely blank. I was given the reason to check 5 other pages and pretty much have to figure it out for myself. WTF? I am the point person for a group of blogs so we do use twitterfeed to put out our RSS however I also post messages replying to people if you use twitterfeed you're out? -- Abraham Williams | Community Evangelist | http://web608.org Hacker | http://abrah.am | http://twitter.com/abraham Project | http://fireeagle.labs.poseurtech.com This email is: [ ] blogable [x] ask first [ ] private.
[twitter-dev] Re: Rate Limit reporting
The doc says: IP whitelisting takes precedence to account rate limits. GET requests from a whitelisted IP address made on a user's behalf will be deducted from the whitelisted IP's limit, not the users. http://apiwiki.twitter.com/Rate-limiting If he's seeing a 20k limit, then that implies it's a whitelisted IP. According to the above, that IP would take precedence over the account user's passed in credentials. Yes? Both Matt and Doug answered this question though, so I feel like I must be reading this wrong. :) -damon -- http://twitter.com/damon On Mon, Jul 13, 2009 at 7:48 PM, Doug Williamsd...@twitter.com wrote: Martin, That's interesting. Is there a pattern to this? Can you offer steps for recreation? It would be helpful to have full header information when this does happen so we can look to see if a specific machine that is returning incorrect information. Thanks, Doug On Mon, Jul 13, 2009 at 4:26 PM, Martin Omander moman...@google.com wrote: Hi there, I'm getting the same thing, that is the rate limit for my IP address rather than for the account... most of the time. I run this curl command curl -u username:password http://twitter.com/account/rate_limit_status.xml where username and password are the account's real username and password. Most of the time the response contains an hourly-limit of 20,000, for my IP address I assume. But occasionally the exact same curl command returns an hourly-limit of 150. Very odd. I assume curl handles the credentials correctly. Any thoughts? /Martin On Jul 13, 9:54 am, Justin justin.realw...@googlemail.com wrote: Sorry about emailing you my last response. I understand what you're saying about firefox - though I'm having the same issue with requests via Microsoft.XMLHTTP requests - it's gone the end of the day now (I do have a habit of starting these things when there's no time). Will carry on the fight tomorrow - at least I have a direction now - will try some other request methods. Many thanks once again for your quick responses. @JustinReid On Jul 13, 5:26 pm, Matt Sanford m...@twitter.com wrote: Hi Justin, The user:pass is a shortcut used by some browsers and libraries but is not supported in all libraries. What language/library are you using? Most of them have some option for setting the user and password directly. Also, the most common issue when seeing the IP limit is an incorrect password. You should also try calling verify_credentials to make sure the password is correct and everything is being received correctly by Twitter. Thanks; – Matt Sanford / @mzsanford Twitter Dev On Jul 13, 2009, at 9:22 AM, Justin wrote: I feel a bit silly asking this in the time of OAuth - but I'm not quite there yet... So how to return the rate limit for a given user? Looking at the api documentation I presume you need to authenticate (log in) The obvious way to do this is via GET with: http://username:passw...@twitter.com/account/rate_limit_status.xml I've also tried base64'ing the username:password as suggested here: http://en.wikipedia.org/wiki/Basic_access_authentication http://base64(User:Pass)@twitter.com/account/rate_limit_status.xml However, every time I try I'm returned with the rate limit for the IP address and not the user. I know I'm missing something (a few sandwiches from the picnic probably) - could someone enlighten me? Many thanks
[twitter-dev] Re: RSS blank
On Mon, Jul 13, 2009 at 8:18 PM, Abraham Williams4bra...@gmail.com wrote: There is a help page specific to not showing up in search results but I can't find it at the moment. That would be: http://help.twitter.com/forums/10713/entries/16817 -damon -- http://twitter.com/damon
[twitter-dev] Re: RSS blank
Actually this is the one I was looking for: http://help.twitter.com/forums/10713/entries/42646 @dougw just happened to post it in a different thread. :) Abraham On Mon, Jul 13, 2009 at 20:29, Damon Clinkscales sca...@pobox.com wrote: On Mon, Jul 13, 2009 at 8:18 PM, Abraham Williams4bra...@gmail.com wrote: There is a help page specific to not showing up in search results but I can't find it at the moment. That would be: http://help.twitter.com/forums/10713/entries/16817 -damon -- http://twitter.com/damon -- Abraham Williams | Community Evangelist | http://web608.org Hacker | http://abrah.am | http://twitter.com/abraham Project | http://fireeagle.labs.poseurtech.com This email is: [ ] blogable [x] ask first [ ] private.
[twitter-dev] Deleting post does not remove post from Twitter search
I made a post with a hash (#clownunion), then deleted the post to revise it. When I search for that hash, I still see my old post.
[twitter-dev] Re: Deleting post does not remove post from Twitter search
This is a known issue: http://code.google.com/p/twitter-api/issues/detail?id=164 It looks like the search team is working on it. Abraham On Mon, Jul 13, 2009 at 20:50, MC Andre andrew.penneba...@gmail.com wrote: I made a post with a hash (#clownunion), then deleted the post to revise it. When I search for that hash, I still see my old post. -- Abraham Williams | Community Evangelist | http://web608.org Hacker | http://abrah.am | http://twitter.com/abraham Project | http://fireeagle.labs.poseurtech.com This email is: [ ] blogable [x] ask first [ ] private.
[twitter-dev] Counting the bytes in Persian text (and other non English unicode)
One of my users mentioned that my client application was much more conservative in counting non English unicode bytes (specifically Persian) than Twitter itself. I've looked over the following thread and all the other threads referenced within without discovering a good answer: http://groups.google.com/group/twitter-development-talk/browse_thread/thread/a1a74365aa6827e7/4a45daee5a993e47 I've noticed a couple different behaviors. With simple Unicode (smiley face, arrow, etc), the Twitter Web interface apparently counts each character as 1 byte when displaying the count. Posting a long string of these however can lead to truncation. It seems perhaps that the Twitter Javascript is not making an attempt to accurately count Unicode? With Persian unicode, the Twitter web interface seems to allow a post of an amount of text much greater than I would have expected. My user provided a sample here that I used to experiment with: http://bit.ly/1LDsVJ I'm using Javascript code based on the method described here: http://www.inter-locale.com/demos/countBytes.html Does anyone have a more accurate counting method in Javascript that might be better with all types of Unicode? Thanks, - Scott @scott_carter
[twitter-dev] Re: Rate Limit reporting
but the http://apiwiki.twitter.com/Rate-limiting doc also said: If you have received verification from Twitter that your account and/ or IP address has been whitelisted you can verify your whitelisting with the accounts/rate_limit_status method. Calling this method with credentials will return the rate limit status of the authenticating user and invoking this method without credentials will return the rate limit status of the calling IP address. but my experience is calling http://twitter.com/account/rate_limit_status.xml with a valid credential using OAuth always return rate limit status of the calling IP address, not the given credential. On Jul 14, 9:27 am, Damon Clinkscales sca...@pobox.com wrote: The doc says: IP whitelisting takes precedence to account rate limits. GET requests from a whitelisted IP address made on a user's behalf will be deducted from the whitelisted IP's limit, not the users. http://apiwiki.twitter.com/Rate-limiting If he's seeing a 20k limit, then that implies it's a whitelisted IP. According to the above, that IP would take precedence over the account user's passed in credentials. Yes? Both Matt and Doug answered this question though, so I feel like I must be reading this wrong. :) -damon --http://twitter.com/damon On Mon, Jul 13, 2009 at 7:48 PM, Doug Williamsd...@twitter.com wrote: Martin, That's interesting. Is there a pattern to this? Can you offer steps for recreation? It would be helpful to have full header information when this does happen so we can look to see if a specific machine that is returning incorrect information. Thanks, Doug On Mon, Jul 13, 2009 at 4:26 PM, Martin Omander moman...@google.com wrote: Hi there, I'm getting the same thing, that is the rate limit for my IP address rather than for the account... most of the time. I run this curl command curl -u username:password http://twitter.com/account/rate_limit_status.xml where username and password are the account's real username and password. Most of the time the response contains an hourly-limit of 20,000, for my IP address I assume. But occasionally the exact same curl command returns an hourly-limit of 150. Very odd. I assume curl handles the credentials correctly. Any thoughts? /Martin On Jul 13, 9:54 am, Justin justin.realw...@googlemail.com wrote: Sorry about emailing you my last response. I understand what you're saying about firefox - though I'm having the same issue with requests via Microsoft.XMLHTTP requests - it's gone the end of the day now (I do have a habit of starting these things when there's no time). Will carry on the fight tomorrow - at least I have a direction now - will try some other request methods. Many thanks once again for your quick responses. @JustinReid On Jul 13, 5:26 pm, Matt Sanford m...@twitter.com wrote: Hi Justin, The user:pass is a shortcut used by some browsers and libraries but is not supported in all libraries. What language/library are you using? Most of them have some option for setting the user and password directly. Also, the most common issue when seeing the IP limit is an incorrect password. You should also try calling verify_credentials to make sure the password is correct and everything is being received correctly by Twitter. Thanks; – Matt Sanford / @mzsanford Twitter Dev On Jul 13, 2009, at 9:22 AM, Justin wrote: I feel a bit silly asking this in the time of OAuth - but I'm not quite there yet... So how to return the rate limit for a given user? Looking at the api documentation I presume you need to authenticate (log in) The obvious way to do this is via GET with: http://username:passw...@twitter.com/account/rate_limit_status.xml I've also tried base64'ing the username:password as suggested here: http://en.wikipedia.org/wiki/Basic_access_authentication http://base64(User:Pass)@twitter.com/account/rate_limit_status.xml However, every time I try I'm returned with the rate limit for the IP address and not the user. I know I'm missing something (a few sandwiches from the picnic probably) - could someone enlighten me? Many thanks
[twitter-dev] get status of set group of people
A while back I set up a script to retweet posts based on hash tags. A buddy saw it and asked if I could set up something similar for him. What he has, is a group of people, each with their own twitter account, who want everything they post to be retweeted by a separate account they have set up. After not finding anything in the PHP class I was using that would do this I started digging through the API. The best I've come up with is the 'statuses/user_timeline' but that will only allow me to grab the statuses on one user at a time. Is there a way to submit multiple users in one call? If not, could someone provide a bit of guidance on the best way to cycle through a list of users, grabbing each of their statuses? Thanks, Jeremy
[twitter-dev] Streaming API -- Additional markup added -- Deletion notifications on track streams.
In addition to deletion notices, limitation notices will be added to track streams. These notices will be enabled on or after Tuesday July 14th. Deletions will be enabled on or after Thursday July 16th, as previously scheduled. From the wiki, http://apiwiki.twitter.com/Streaming-API-Documentation: Streams may also contain status deletion notices. Clients are urged to honor deletion requests and discard deleted statuses immediately. * XML: deletestatusid1234/iduser_id3/user_id/ status/delete * JSON: { delete: { status: { id: 1234, user_id: 3 } } } Track streams may also contain limitation notices, where the integer track is an enumeration of statuses that matched the track predicate but were administratively limited. These notices will be sent each time a limited stream becomes unlimited. * XML: limittrack1234/tracklimit * JSON: { limit: { track: 1234 } } -John Kalucki twitter.com/jkalucki Services, Twitter Inc.
[twitter-dev] Re: Streaming API -- Additional markup added -- Deletion notifications on track streams.
Wow John, that was quick. Thank you. -Joel On Jul 13, 2009, at 7:53 PM, John Kalucki jkalu...@gmail.com wrote: In addition to deletion notices, limitation notices will be added to track streams. These notices will be enabled on or after Tuesday July 14th. Deletions will be enabled on or after Thursday July 16th, as previously scheduled. From the wiki, http://apiwiki.twitter.com/Streaming-API-Documentation: Streams may also contain status deletion notices. Clients are urged to honor deletion requests and discard deleted statuses immediately. * XML: deletestatusid1234/iduser_id3/user_id/ status/delete * JSON: { delete: { status: { id: 1234, user_id: 3 } } } Track streams may also contain limitation notices, where the integer track is an enumeration of statuses that matched the track predicate but were administratively limited. These notices will be sent each time a limited stream becomes unlimited. * XML: limittrack1234/tracklimit * JSON: { limit: { track: 1234 } } -John Kalucki twitter.com/jkalucki Services, Twitter Inc.
[twitter-dev] Re: get status of set group of people
This may seem like a bit of a hack, but they could set up that separate twitter account so that it only follows that set of friends whose tweets it should be retweeting. Your script could then pull the statuses/friends_timeline[1] API for that account and use it to retweet based on hashtags. [1] http://apiwiki.twitter.com/Twitter-REST-API-Method%3A-statuses-friends_timeline On Mon, Jul 13, 2009 at 20:50, Jeremy Weiss eccentric@gmail.com wrote: A while back I set up a script to retweet posts based on hash tags. A buddy saw it and asked if I could set up something similar for him. What he has, is a group of people, each with their own twitter account, who want everything they post to be retweeted by a separate account they have set up. After not finding anything in the PHP class I was using that would do this I started digging through the API. The best I've come up with is the 'statuses/user_timeline' but that will only allow me to grab the statuses on one user at a time. Is there a way to submit multiple users in one call? If not, could someone provide a bit of guidance on the best way to cycle through a list of users, grabbing each of their statuses? Thanks, Jeremy -- Internets. Serious business.
[twitter-dev] Re: API Curl: Status update result: http_code =0!
OK , I was testing on a shared host I finally tested locally on a win32 with Curl and it worked fine Twitter sending back a http_code 200 on successfull tweet. Any Idea why the same script used on my host receives a http_code 0 whatever happens? Thanks a lot!
[twitter-dev] Re: Streaming API -- Additional markup added -- Deletion notifications on track streams.
On Mon, Jul 13, 2009 at 9:53 PM, John Kaluckijkalu...@gmail.com wrote: Deletions will be enabled on or after Thursday July 16th, as previously scheduled. From the wiki, http://apiwiki.twitter.com/Streaming-API-Documentation: Streams may also contain status deletion notices. Clients are urged to honor deletion requests and discard deleted statuses immediately. * XML: deletestatusid1234/iduser_id3/user_id/ status/delete * JSON: { delete: { status: { id: 1234, user_id: 3 } } } I don't know if this is related to the Streaming API directly or not, but I am curious when deletions are going to be reflected in the Search Index. At the WWDC meeting, I believe that Matt said that was coming. I just wonder if that time has come after July 16th or if that will be sometime later. Thanks, -damon -- http://twitter.com/damon
[twitter-dev] Re: Interested in hiring a twitter developer
Hello I will sign an NDA. Here are just a few of the Twitter APPS we have developed http://redcounty.com/ http://greenfaucet.com/ http://www.homefindingcommunity.com/ Look forward to discussing the project with you. On Mon, Jul 13, 2009 at 5:59 PM, Dale mogul...@gmail.com wrote: Hi, If there is an excellent Twitter app developer out there (very familiar with APIs), I want to develop an application for my company. Must be willing to sign an NDA and be able to verify your work. Thanks! -- Regards Mandakini