[twitter-dev] Re: Date-based update retrieval
On 3/29/09 1:53 AM, Cameron Kaiser wrote: Is it impossible to write a script that will show me my own tweets for a given day? No, but you *will* have to do client-side filtering. There is no direct 'presto et voila' method. All API methods that support since for a starting date should also accept until for an ending date. The argument is whether until should be inclusive, or exclusive. I'll let that holy war be fought by infidels other than myself ... :-) -- Dossy Shiobara | do...@panoptic.com | http://dossy.org/ Panoptic Computer Network | http://panoptic.com/ He realized the fastest way to change is to laugh at your own folly -- then you can let go and quickly move on. (p. 70)
[twitter-dev] Conversations generate too many requests
I've been working on a simple search concept which basically uses the search api to set a live list of responses to a given search string http://search.twitter.com/search.atom?q=srchterms but to determine if any response is the basis of a conversation, th only way I know to do this given the api is to make another call to get the status for a given response, using http://twitter.com/statuses/show/STATUSID.xml and check out the in_reply_to_status_id node this results in a quick over capacity reply from twitter (i had put in a whitelisting request, which was granted buy still getting kicked out after 100 requests per hour) is there any other way to get this information (i.e., find out the the conversation that a given post is part of? Thanks, Allen
[twitter-dev] Re: Conversations generate too many requests
A known issue: http://code.google.com/p/twitter-api/issues/detail?id=142 On Sun, Mar 29, 2009 at 09:15, Allen marketingpr...@gmail.com wrote: I've been working on a simple search concept which basically uses the search api to set a live list of responses to a given search string http://search.twitter.com/search.atom?q=srchterms but to determine if any response is the basis of a conversation, th only way I know to do this given the api is to make another call to get the status for a given response, using http://twitter.com/statuses/show/STATUSID.xml and check out the in_reply_to_status_id node this results in a quick over capacity reply from twitter (i had put in a whitelisting request, which was granted buy still getting kicked out after 100 requests per hour) is there any other way to get this information (i.e., find out the the conversation that a given post is part of? Thanks, Allen -- Abraham Williams | http://the.hackerconundrum.com Web608 | Community Evangelist | http://web608.org This email is: [ ] blogable [x] ask first [ ] private. Sent from: Madison WI United States.
[twitter-dev] OAuth authorization page formatted for iPhone/Pod?
Hi Guys, I have opened a code issue here: http://code.google.com/p/twitter-api/issues/detail?id=395 It would be very handy if the Twitter OAuth Authorization page was formatted in an iPhone/Pod friendly manner so users don't have to zoom way in to read the text and enter their information. This will enhance the usability and flow of apps authenticating on iPhone/Pod. I tried to search for similar issues, but found none... so please forgive me if this is in the works or I missed something. Thanks, -Chad
[twitter-dev] Re: social graph methods with a bit more info
On Sat, Mar 28, 2009 at 11:47 PM, Damon Clinkscales sca...@pobox.com wrote: see On Sat, Mar 28, 2009 at 9:16 PM, softprops d.tang...@gmail.com wrote: It would be nice if the http://twitter.com/[friends|followers]/ids.format uri's could return a bit more useful info like the screen_name. [ snip ] ... ?xml version=1.0 encoding=UTF-8? ids id screen_name=foo1/id id screen_name=bar2/id /ids They aren't going to do this for performance reasons, even though yes, it would be useful. see http://is.gd/ptJ9 -damon An alternative solution may be possible though. I've recently been reminded that @infochimps has a massive scrape of the Twitter social graph and is willing to make that available, in whole or in part. However, they are currently awaiting Twitter's permission on precisely what can be released. You can read more about this here - http://blog.infochimps.org/2008/12/29/massive-scrape-of-twitters-friend-graph/ Assuming that the data is released, even in a limited form, there is potential there for an id--screen_name mapping table which could serve as a cache primer for apps that need that. This could potentially save a bajillion calls against Twitter's API, which in turn would have other good effects. One of the most notable places where this is obviously needed is tying Twitter Search results to Twitter users. For historical reasons, the user id in the search result is not the Twitter user_id, so you have to use the screen name. -damon -- http://twitter.com/damon
[twitter-dev] Re: 4-legged OAuth discussion
Would any developers out there that proxy credentials like this, please speak up and share your use case? I realize I hadn't shared the use case for Tipjoy. We opened an API for payments that requires a twitter username and password: http://tipjoy.com/api Here is a tutorial http://tipjoy.com/twitterApps In most cases this is to GET or POST information to Tipjoy, like creating a Tipjoy account, getting balance information, getting transaction data, etc. In most cases, we only need to verify the userfor these endpoints, not communicate to Twitter. If we do create a Tipjoy account, we set their password to be their Twitter password, and tell them this via a DM after they auto-follow @tipjoy. We could work around this by requiring they OAuth into Tipjoy once they visit the site, and we could tell them this via @TipjoyHelper, an automated helper account. We do have one endpoint that explicitly requires communication with Twitter to perform a status update: http://tipjoy.com/api/#creating_twitter_payment It initiates a payment, updates the status, and returns transaction information. The benefit of this over posting a tweet that we later detect to perform a transaction, is that the post through Tipjoy allows a real-time response to return transaction information. Any service using Tipjoy for payments that needs to _do_ something after the payment ( read: all e-commerce ), requires a callback or realtime returns. A polling pattern could work, but that makes me cringe. Also, desktop and mobile clients can't use callbacks from tipjoy.com. We will require a Twitter username password until we can work a way around this. We do intend on becoming our own OAuth provider, but I don't think that is a good solution for all other OAuth consumers to become providers, as some on the OAuth list thread have suggested. Finally, Ivan you have had some great input for our development team. And for that, we are appreciative. No problem :) Best, Ivan http://tipjoy.com On Mar 27, 9:37 pm, Doug Williams d...@twitter.com wrote: Ivan, Iain of @tweetdeck brought this use case to my attention during devnest so it is certainty something we want to address with OAuth. We still consider OAuth's current implementation as a beta, and thus incomplete. The pattern for proxied approval hasn't been decided but as I said, is on our minds. Would any developers out there that proxy credentials like this, please speak up and share your use case? I'd like as to have as wide of a survey as possible to offer our developers while we craft our authentication strategy. Finally, Ivan you have had some great input for our development team. And for that, we are appreciative. Doug Williams Twitter API Supporthttp://twitter.com/dougw On Wed, Mar 25, 2009 at 5:21 PM, Ivan ivan.kiri...@gmail.com wrote: I started a discussion on the OAuth mailing list about 4-legged OAuth in the context of Twitter OAuth consumer applications. http://groups.google.com/group/oauth/browse_thread/thread/bdf8b99e84a... I'd love to have the input from the Twitter developer community. The problem is essentially that OAuth access tokens aren't transferable. For example, a Twitter user on TweetDeck can input a username password, which lets TweetDeck post a picture to TwitPic. If TweetDeck were granted OAuth access to the user's Twitter account, TwitPic couldn't verify the access tokens easily, and couldn't communicate to Twitter with them. Applications moving to OAuth could mean fewer mashups, which is bad. OAuth providers should have a way of authenticating to Consumer A that Consumer B has access to a user's account. The access to the Twitter API could still require independent OAuth access grants for each consumer. What do you think? Ivan http://tipjoy.com
[twitter-dev] scripts to show Overlapping Circles of friends/followers
I've made part of TwitReport into 3 different programs (well, scripts really) so that they can be more easily used. Give two Twitter users, show me how many [and who] follows both of them http://twitreport.tntluoma.com/twitter-we-are-both-followed-by.sh Given two Twitter users, show me how many [and who] we both follow http://twitreport.tntluoma.com/twitter-we-both-follow.sh Given two Twitter users, show me how many [and who] A follows who B also follows http://twitreport.tntluoma.com/twitter-who-does-a-follow-who-follows-b.sh I would probably run the last one twice, once like this: twitter-who-does-a-follow-who-follows-b.sh joe ed and once like this twitter-who-does-a-follow-who-follows-b.sh ed joe USAGE: == 1) Each of the scripts takes exactly two arguments, Twitternames (not including the @) 2) Each will show the names of the people in the results (both 'name' and 'screen_name' according the API) 3) If you use the '-c' flag as the *first* argument, each will only report back a 'count' without the names (saves on API hits), for example: twitter-who-does-a-follow-who-follows-b.sh -c joe ed NOTES: == 1) All 3 of those scripts rely on http://twitreport.tntluoma.com/id-to-name.sh to transform the Twitter ID #s into actual names. 2) The scripts use curl and the --netrc flag, which means your Twitter credentials need to be in ~/.netrc like so: machine twitter.com login yourTwitterName password seKret 3) id-to-name.sh will now cache results locally, to reduce API hits, but if you run this on two people with 10s of thousands of overlapping followers, well, as you know, each (uncached) ID-to-Name conversion is an API hit. I've thought about adding a user-configurable threshhold to the scripts to limit the results that it will display, but haven't done so in these versions. Just coming up with the lists themselves is pretty easy, about 2 API hits per script. It's the conversion from IDs to Names that has the cost. Anyway, they are offered here in case anyone can make use of them. Not sure if they would be of interest to anyone else, but since I had already written them up, I figured might as well share them here. TjL
[twitter-dev] Re: scripts to show Overlapping Circles of friends/followers
TjL == TjL luo...@gmail.com writes: TjL I've made part of TwitReport into 3 different programs (well, TjL scripts really) so that they can be more easily used. TjL Give two Twitter users, show me how many [and who] follows both of them TjL Given two Twitter users, show me how many [and who] we both follow TjL Given two Twitter users, show me how many [and who] A follows who TjL B also follows Hi TjL. I wrote some Python to do a similar thing. You, or anyone else, is welcome to the code. See http://www.fluidinfo.com/terry/2008/10/13/digging-into-twitter-following/ Here's an example of the (HTML) output, comparing @aweissman to @johnborthwick: http://www.fluidinfo.com/terry-twitter/aweissman-johnborthwick.html Terry
[twitter-dev] Re: How can I automatically retweet from a list of followed accounts?
On Fri, Mar 27, 2009 at 7:33 PM, Jim mccoy@gmail.com wrote: This presupposes that the followed accounts would be dedicated, i.e. set up solely for the purpose of twittering to the main account about the topic. Is this sort of thing allowed on Twitter? Are there tools to help, or is there a straightforward solution without tools? I'm not understanding what you are trying to accomplish. Can you describe some scenario where this would be triggered? What problem are you trying to solve? Are you talking about RT'ing these *to* some account as an @reply or RT'ing one Twitter user from a series of bots? Because the former seems like you'd be better off saving an RSS feed of a specific search term, and the latter seems like (at the least) a bad idea, and (at the most) a possible TOS violation (I'm speculating, I haven't looked at the TOS that closely). It's hard to know what to suggest (even don't do that) without a more clear understanding of what you are trying to do. THAT SAID: I don't know of any way to do this with the API anyway, even for the various ideas of what I think you might mean. TjL
[twitter-dev] Re: TweetGrid for iPhone - please test
Dude! It's F-ing rad! nice work, looks awesome and working great. Is webkit safari only? On Sun, Mar 29, 2009 at 2:04 PM, Chad Etzel jazzyc...@gmail.com wrote: Hi All, I have created a TweetGrid native webapp for iPhone/Pod. The native is in quotes because it's not truly a native app (as in, you can't get it from the app store), but it was developed with the iWebKit.net framework and is pretty convincing in its look and feel. If you haven't seen iWebKit.net before, go check it out (or goto http://iwebkit.mobi on your iphone). Anyone with an iPhone/Pod can test this out. Just point iPhone Safari to http://tweetgrid.com/iphone/ (sorry, not going to work in other browsers) Here's the native part: If you use the + sign and hit Add to Home Screen it will create a launcher for the site/app that puts Safari in stand-alone fullscreen mode. When launching it from the homescreen, you won't see the safari address bar or the navigation/bookmark buttons at the bottom. Current Features of TweetGrid for iPhone: - Real-time auto-updates of Twitter Search results - Multiple account authorization through OAuth - authorize as many accounts as you want under the main screen Settings arrow - this is the only clunky part b/c Twitter's OAuth page is not optimized for mobile (yet). - Tweet from the results page - Click the Tweet button in the top right title bar - Choose any of your authorized accounts to send the tweet - Save your searches for quick access from the home screen - See and search current Trending Topics - Sticky Settings for: - Auto update - on/off - Refresh Interval - 10 to 60 seconds - Show Avatars - on/off (handy for EDGE/slow connection) - Show TwitPic thumbnails - on/off (just for fun...) - These settings persist for each new search Please try it out and let me know what you think. I haven't announced this publicly to anyone yet, so if you are inclined to tell other people about it, please hold off for now. I would like to get some feedback from other devs first. Thanks! -Chad -- Peter M. Denton www.twibs.com i...@twibs.com Twibs makes Top 20 apps on Twitter - http://tinyurl.com/bopu6c
[twitter-dev] Re: changing source URL
so, i now all i have to is wait, right?
[twitter-dev] public_timeline, invalid profile_image?
since some days I am always getting: http://static.twitter.com/images/default_profile_normal.png as profile-image from the user via public-timeline (Data-mining-feed). I checked the announcement-google-group + twitter.com/twitterapi (subscribed to feed anyway ;) ) but could not see any change. The site affected: www.geoheartbeat.com
[twitter-dev] Coldfusion Twitter status posting help
I've been banging my head on this issue for the past 3-4 days to the point that my skull has attained a soggy, squishy quality...so any help would be most appreciated. I have a Twitter account that I want to post simple periodic updates to from a website I own. I can successfully do this: cfhttp url=http://twitter.com/account/verify_credentials.xml; method=get username=#variables.Tusername# password=#variables.Tpassword# That works everytime. However, this does not work: cfhttp url=http://twitter.com/statuses/update.xml; method=POST username=#variables.Tusername# password=#variables.Tpassword# charset=UTF-8 cfhttpparam type=FORMFIELD name=user value=#variables.Tusername# cfhttpparam type=FORMFIELD name=password value=#variables.Tpassword# cfhttpparam type=FORMFIELD name=status value=#variables.Tstatus# /cfhttp Not just that but any variation of the post to update.xml fails and the fail reason is: Could not authenticate you. I've tried it in just about every combination I can think of. I've scoured Twitter's API docs, Google and everywhere in between and can't get this to go. I'm hoping someone can point me in the right direction. This seems a really simply thing but it's driving me to distraction. I don't believe there's a setting in Twitter itself that is causing the issue...but perhaps I'm wrong. Any help/assistance would be most welcome and appreciated. Thanks in advance.
[twitter-dev] Re: social graph methods with a bit more info
If Twitter's going to allow this, why don't they just do it themselves and provide more accurate and up-to-date info? How often does this cache update? I'm curious how accurate and reliable this would be, since people are constantly modifying their social graph. Alex and crew have already said they might be able to provide more info once they fully convert over to their new architecture. My hope is that once they're able to do that I can just pull subsets of each social graph down, such as number of new followers since x date, or other criteria. A FQL-type language (similar to Facebook's) would be ideal for something like that. Jesse On Sun, Mar 29, 2009 at 1:03 PM, softprops d.tang...@gmail.com wrote: Wow! What a great idea. Offloading the burden on twitter's servers/dbs to a simple id-name cache hosted via another service on someone elses. I will have to check that out. On Mar 29, 2:52 pm, Damon Clinkscales sca...@pobox.com wrote: On Sat, Mar 28, 2009 at 11:47 PM, Damon Clinkscales sca...@pobox.com wrote: see On Sat, Mar 28, 2009 at 9:16 PM, softprops d.tang...@gmail.com wrote: It would be nice if thehttp:// twitter.com/[friends|followers]/ids.format uri's could return a bit more useful info like the screen_name. [ snip ] ... ?xml version=1.0 encoding=UTF-8? ids id screen_name=foo1/id id screen_name=bar2/id /ids They aren't going to do this for performance reasons, even though yes, it would be useful. seehttp://is.gd/ptJ9 -damon An alternative solution may be possible though. I've recently been reminded that @infochimps has a massive scrape of the Twitter social graph and is willing to make that available, in whole or in part. However, they are currently awaiting Twitter's permission on precisely what can be released. You can read more about this here - http://blog.infochimps.org/2008/12/29/massive-scrape-of-twitters-frie... Assuming that the data is released, even in a limited form, there is potential there for an id--screen_name mapping table which could serve as a cache primer for apps that need that. This could potentially save a bajillion calls against Twitter's API, which in turn would have other good effects. One of the most notable places where this is obviously needed is tying Twitter Search results to Twitter users. For historical reasons, the user id in the search result is not the Twitter user_id, so you have to use the screen name. -damon --http://twitter.com/damon
[twitter-dev] Can we make this a private list?
Hi All, Wondering what everyone's feelings would be toward making this a private list. It is becoming more apparent that the feed for this list is being used to blast out posts to the void almost immediately after posting and makes it hard to ask private/closed group questions or get feedback about an unlaunched app before you go public with it. Case in point: I just posted about my iPhone webapp a little while ago asking for dev feedback before announcing it publicly, and already there are 3 tweets linking to the post: http://twitter.com/twittes1/status/1414300783 http://twitter.com/twittea/status/1414269472 http://twitter.com/ianonmac/status/1414254749 There was also at least one blog that would just copy the content of every post from the RSS feed and jam a ton of ads around it hoping to get clicks off of people just searching for twitter related stuff. I've never admin'd a Google Group before, but is there a way to make this list a little more closed? Or at least turn off the RSS feed? Thoughts? -Chad
[twitter-dev] help me out, por favor
Hello, Doing a research report - information wont be sold - no names will be used - just for edification.* I'm being serious*, I just some honest answers to help me with something. If this is a TOS violation, I searched and didnt see anything, so not trying to make lex, doug, and matt upset. Please take one second to just answer inline if you don't mind. I have cc'd myself or so you can replay out of the group, or if it doesnt come through, my email is petermden...@gmail.com *Have you developed a twitter application? *yes [ ] no [ ]* How many apps have you developed? **Have you developed a iPhone application? *yes [ ] no [ ]* * [ ] yes, its the same app* * *What is your development platform? ** Is it your business/hobby? Is your goal to make it a business? **How do you communicate with other twitter developers? *this list [ ] email [ ]* * chat [ ] i dont [ ]* **have you had any frustrations along the way?* * * * * * *
[twitter-dev] Re: public_timeline, invalid profile_image?
I'm seeing it too. 2009/3/29 Günter Grodotzki guen...@grodotzki.ph since some days I am always getting: http://static.twitter.com/images/default_profile_normal.png as profile-image from the user via public-timeline (Data-mining-feed). I checked the announcement-google-group + twitter.com/twitterapi (subscribed to feed anyway ;) ) but could not see any change. The site affected: www.geoheartbeat.com -- Gary http://twitter.com/garyzhao
[twitter-dev] Re: profile_image_url in public timeline is always the static image
Same here. must be bug. On Sun, Mar 29, 2009 at 4:58 AM, CodeWarden paul0...@gmail.com wrote: Hello, Why is the profile_image_url in the public timeline now only ever pointing to the image that is used if you don't set an avatar? I have verified that this is the case with both the JSON and XML formats through the api, they all only point to http://static.twitter.com/images/default_profile_normal.png -Paul -- Gary http://twitter.com/garyzhao
[twitter-dev] Re: first try
Okay, first off, the Fatal error is happening because PHP on your install is set-up to time-out scripts after 60 seconds (this is to avoid runaway processes on the server). I'm not sure exactly why your socket connection is timing out. One possibility is that a local firewall is blocking outgoing connections until you explicitly allow them. I'd recommend installing a Windows binary of curl for testing on the command line, and also grabbing a copy of the Charles debugging proxy to see what's actually being sent and received (if anything!). -- Ed Finkler http://funkatron.com Twitter:@funkatron AIM: funka7ron ICQ: 3922133 XMPP:funkat...@gmail.com On Mar 29, 10:37 pm, Bill william...@gmail.com wrote: Hi, I tried to access the twitter API with the following code but I get the error: Contacting Twitter... n Fatal error: Maximum execution time of 60 seconds exceeded in C:\xampp \htdocs\twitter.php on line 26 I am running this from an apache server on my home computer at:http://127.0.0.1/twitter.php I have not applied for any special account with twitter, just my regular twitter id and password were entered. Can anyone tell me why this is not working? Thanks! ?php $twitter_username = ''; $twitter_password = ''; $errno = 0; $errstr = ''; $response = ''; function httpRequest($host, $path = '/', $method = 'GET') { global $errno, $errstr, $response; global $twitter_username, $twitter_password; $header = $method $path HTTP/1.1rn; $header .= Host: $hostrn; $header .= Accept-Encoding: nonern; $header .= Authorization: Basic . base64_encode ({$twitter_username}:{$twitter_password}) . rn; $header .= Connection: Closernrn; $sock = fsockopen($host, 80, $errno, $errstr, 30); if (!$sock) { die(pstrongfsockopen() error:/strongbr /$errstr ($errno) /p); } else { fwrite($sock, $header); while (!feof($sock)) { $response .= fgets($sock, 128); } fclose($sock); $response = trim(str_replace(array('', ''), array('lt;', 'gt;'), $response)); return true; } } echo pContacting Twitter.../pn; //!-- Replace the following code for later examples from the article -- httpRequest('twitter.com'); echo pResponse:br /hr /pre$response/prehr //pn; ?
[twitter-dev] Re: Details about the Response returned in Search API
can anyone tell me what does max_id returns. also please tell me what total returns. Regards, Mahaboob Basha Shaik www.netelixir.com Making Search Work On Thu, Mar 26, 2009 at 11:14 AM, basha basha.neteli...@gmail.com wrote: Hi I have sent request using json. I am getting response. In response what are the things i get. As far as i know we get id,fromuser from userid,to user,to userid,tweet value,Created time in GMT,Max_id,.total. What does total and Max_id value mean. what do they give. If anything more i can get, please tell me.
[twitter-dev] Re: social graph methods with a bit more info
On Sun, Mar 29, 2009 at 4:38 PM, Jesse Stay jesses...@gmail.com wrote: If Twitter's going to allow this, why don't they just do it themselves and provide more accurate and up-to-date info? Yeah, that'd be nice. But, given everything going on, it's probably not a priority right now. How often does this cache update? I'm curious how accurate and reliable this would be, since people are constantly modifying their social graph. In the case of the id/screen_name thing, the data wouldn't change much. Ideally, there'd be a way of forcing an update from Twitter in the case of known/suspected stale data. As to keeping up with the social graph, I think the current social graph methods are sufficient/wonderful for that. -damon