[twitter-dev] how to create list of lists
The new api talks about list of lists. I do not see how to add a list to another list. Whenever I follow a list, my main account follows it, not my list. On a side note, I was playing with the API yesterday and somehow a list I created shows up twice under Lists you follow. I guess a bug somewhere.
[twitter-dev] flagged as dupe post when string is unique (ideas?)
Hello Folks, (fishing for input) thx Not really sure what’s going on here. Below you will find what I am sending and what is coming back from the Twitter API. You can see that what is being sent doesn’t even come close to what is up there now. Am I missing something here? What am I doing wrong? Why is this completely different sting not posting? Sending method=post url=http://twitter.com/statuses/update.xml?status=Great%20Job%20for %20OAS%20TEST%20ONLY%20in%20California%2DAnaheim%2FHuntington%20Beach %2E%20http%3A%2F%2Flocalhost%2FAssignmentReady%2Findex%2Ecfm%3ForderID %3D2315510%26category%3DAllied%5FTravel%26ts%3D102809140819%20or %20800%2E469%2E5314 Result (from Twitter API) ?xml version=1.0 encoding=UTF-8? status created_atWed Oct 28 19:51:30 + 2009/created_at id5238791820/id textwhat/text sourceweb/source truncatedfalse/truncated in_reply_to_status_id/in_reply_to_status_id in_reply_to_user_id/ in_reply_to_user_id favoritedfalse/favorited in_reply_to_screen_name/in_reply_to_screen_name user id57127952/id nameLarp Master Flash/name screen_nameLarpMasterFlash/screen_name location/location description/description profile_image_urlhttp://s.twimg.com/a/ 1256674706/images/default_profile_0_normal.png/profile_image_url url/url protectedfalse/protected followers_count4/ followers_count profile_background_color9ae4e8/ profile_background_color profile_text_color00/ profile_text_color profile_link_colorff/profile_link_color profile_sidebar_fill_colore0ff92/profile_sidebar_fill_color profile_sidebar_border_color87bc44/profile_sidebar_border_color friends_count0/friends_count created_atWed Jul 15 20:31:16 + 2009/created_at favourites_count0/favourites_count utc_offset/ utc_offset time_zone/time_zone profile_background_image_urlhttp://s.twimg.com/a/1256674706/images/ themes/theme1/bg.png/profile_background_image_url profile_background_tilefalse/profile_background_tile statuses_count34/statuses_count notificationsfalse/ notifications geo_enabledfalse/geo_enabled verifiedfalse/ verified followingfalse/following /user geo/ /status Thanks for the input.
[twitter-dev] Re: Post being flagged as a duplicate (when it is not)
Anyone have a chance to ponder this situatoin?
[twitter-dev] Re: 52: Empty reply from server
Did you ever get an aswer regarding the empty response from twitter? I am having the same troubles. On Oct 31, 7:13 am, shiplu shiplu@gmail.com wrote: On Fri, Oct 30, 2009 at 6:01 PM, Alexander Sergeyev a.serge...@gmail.com wrote: Hello! I got the same problem. During half-hour after reboot, server works good, all the requests send to Twitter API using cURL returned. But after, server received an empty reply. This problem is repeating in a half of tryes. If i reboot web-server, the problem disappears for a short time. My problem is not solved yet. Still looking for ways to resolve it. I told a...@twitter.com and waiting for reply. If reboot is the solution, it can not be accepted. A production server should not be rebooted that frequently. -- A K M Mokaddimhttp://talk.cmyweb.nethttp://twitter.com/shiplu Stop Top Posting !! বাংলিশ লেখার চাইতে বাংলা লেখা অনেক ভাল
[twitter-dev] Re: Lists API for Subscriptions
To get the lists a user is subscribed to: :user/lists/memberships.:format Andrew Stone Twitter / @twittelator http://www.stone.com got iPhone? http://tinyurl.com/twitpro http://tinyurl.com/intentionizer http://tinyurl.com/gesture-buy http://tinyurl.com/igraffiti http://tinyurl.com/talkingpics http://tinyurl.com/mobilemix http://tinyurl.com/soundbite http://tinyurl.com/icreated http://tinyurl.com/pulsar-app On Oct 30, 5:52 pm, Eric Woodward e...@nambu.com wrote: Anyone seeing an issue with a method to get a list of a user's list subscriptions? The following: curl -u ejwc:[password] http://twitter.com/ejwc/lists.xml; only returns the three test lists that I have created, while the same URL on Twitter's website: https://twitter.com/ejwc/lists returns my three test lists, and the 5+ lists I am following. Any suggestions? I have only just started getting a response for the API methods in the last day or so and only getting familiar with them. Any help would be appreciated. --ejw Eric Woodward Email: e...@nambu.com
[twitter-dev] Twitter API Returning Nothing
Hello, here is my cURL output from the response. Its empty! I am attaching both the code used and the response. I have been at this for hours and cannot find out why this is happening. Thanks for your help. TWITTER API CURL RESPONSE url :: http://twitter.com/statuses/update.xml?status=test+agasdf content_type :: http_code :: 0 header_size :: 0 request_size :: 0 filetime :: -1 ssl_verify_result :: 0 redirect_count :: 0 total_time :: 0 namelookup_time :: 0.060027 connect_time :: 0 pretransfer_time :: 0 size_upload :: 0 size_download :: 0 speed_download :: 0 speed_upload :: 0 download_content_length :: -1 upload_content_length :: -1 starttransfer_time :: 0 redirect_time :: 0 CODE USED TO SEND REQUEST TO TWITTER ?php // A simple function using Curl to post (GET) to Twitter // Kosso : March 14 2007 function postToTwitter($username,$password,$message){ $host = http://twitter.com/statuses/update.xml?status=.urlencode (stripslashes(urldecode($message))); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $host); curl_setopt($ch, CURLOPT_VERBOSE, 1); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_USERPWD, $username:$password); curl_setopt($ch, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); curl_setopt($ch, CURLOPT_POST, 1); $result = curl_exec($ch); // Look at the returned header $resultArray = curl_getinfo($ch); curl_close($ch); if($resultArray['http_code'] == 200){ $twitter_status='Your message has been sent! a href=http:// twitter.com/'.$username.'See your profile/a'; } else { $twitter_status=Error posting to Twitter. Retrybrbr; foreach ($resultArray as $key = $value) { $twitter_status .= $key . :: . $value . br; } } return $twitter_status; } ?
[twitter-dev] Re: Lists API for Subscriptions
Whoops - what I meant to say was: :user//lists/subscriptions.:format will get the lists a user has subscribed to Andrew Stone Twitter / @twittelator http://www.stone.com got iPhone? http://tinyurl.com/twitpro http://tinyurl.com/intentionizer http://tinyurl.com/gesture-buy http://tinyurl.com/igraffiti http://tinyurl.com/talkingpics http://tinyurl.com/mobilemix http://tinyurl.com/soundbite http://tinyurl.com/icreated http://tinyurl.com/pulsar-app On Oct 30, 5:52 pm, Eric Woodward e...@nambu.com wrote: Anyone seeing an issue with a method to get a list of a user's list subscriptions? The following: curl -u ejwc:[password] http://twitter.com/ejwc/lists.xml; only returns the three test lists that I have created, while the same URL on Twitter's website: https://twitter.com/ejwc/lists returns my three test lists, and the 5+ lists I am following. Any suggestions? I have only just started getting a response for the API methods in the last day or so and only getting familiar with them. Any help would be appreciated. --ejw Eric Woodward Email: e...@nambu.com
[twitter-dev] Re: Subscribed Lists
:user/lists/subscriptions.:format gets the lists that the user has subscribed to. Andrew Stone Twitter / @twittelator http://www.stone.com got iPhone? http://tinyurl.com/twitpro http://tinyurl.com/intentionizer http://tinyurl.com/gesture-buy http://tinyurl.com/igraffiti http://tinyurl.com/talkingpics http://tinyurl.com/mobilemix http://tinyurl.com/soundbite http://tinyurl.com/icreated http://tinyurl.com/pulsar-app On Oct 30, 5:00 am, David Neubauer davidneubauer.gro...@gmail.com wrote: Has any figured out how to get a the lists I'm subscribed to. I didn't realize how much I'd want this part of it. Please say it's coming... -Original Message- From: twitter-development-talk@googlegroups.com [mailto:twitter-development-t...@googlegroups.com] On Behalf Of Jeremy Felt Sent: Thursday, October 29, 2009 8:16 PM To: Twitter Development Talk Subject: [twitter-dev] Re: Updates to the List API (list descriptions, cursoring lists of lists, finding by list id rather than slug more consistent names) It appears that user/lists.xml only shows lists that are created by the user and not those that they follow. Any change coming to that or am I missing a way to see all lists that a user follows? Thanks, Jeremy On Oct 28, 3:00 pm, Marcel Molina mar...@twitter.com wrote: Two additions and two changes to the List API will be deployed in the next few days: * List descriptions We're adding a description to every list. You'll be able to specify a description when you create or update a list and the description will be included in the payload. * Cursoring through lists of lists All resources that return a list of lists will include next and previous cursors and will accept a :cursor parameter. * Finding by list id rather than slug When you change the name of a list, the slug will be updated to reflect that change. That means using the slug in the url for resources to operate on lists requires the onerous task of validating that the slug for the list you are about to do something with hasn't been updated since the last time you stored its slug. What a nightmare :-) Every list also has an id. This value won't change. We'll be changing the API to replace all instances of a list slug in urls to be list ids instead. * Consistent names The terminology we've used thus far for people you follow with a list is members. The terminology for people who are following a list is subscribers. We're going to mirror the terminology used for users and change it to followers and following respectively. So: /:user/lists/:list_id/memberships becomes /:user/lists/:list_id/followers /:user/lists/:list_id/subscribers becomes /:user/lists/:list_id/following As we deploy these changes we'll send out a heads up on the dev list and @twitterapi. -- Marcel Molina Twitter Platform Teamhttp://twitter.com/noradio
[twitter-dev] Suggestion for User record
It would be useful if a user had a lists_count element, in addition to the other counts (followers, statuses, favourites).
[twitter-dev] is there a way to filter out only a particular language
Hi. We are using the streaming api to access tweets. Is there any way to only receive english tweets? I know that in the user profile there is a language field. Thank you
[twitter-dev] Re: Suggestion for User record
+1 On Sat, Oct 31, 2009 at 11:10 PM, Dave Winer dave.wi...@gmail.com wrote: It would be useful if a user had a lists_count element, in addition to the other counts (followers, statuses, favourites).
[twitter-dev] Re: Subscribed Lists
Can we get some form of confirmation on the list slug/id issue. At the moment calling by ID doesn't work anyway so it's only using the slug. My preference would be to allow either (in a similar way to the other REST api's where you can use user id or screenName) On Oct 31, 10:04 pm, twittelator and...@stone.com wrote: :user/lists/subscriptions.:format gets the lists that the user has subscribed to. Andrew Stone Twitter / @twittelatorhttp://www.stone.com got iPhone? http://tinyurl.com/twitpro http://tinyurl.com/intentionizer http://tinyurl.com/gesture-buy http://tinyurl.com/igraffiti http://tinyurl.com/talkingpics http://tinyurl.com/mobilemix http://tinyurl.com/soundbite http://tinyurl.com/icreated http://tinyurl.com/pulsar-app On Oct 30, 5:00 am, David Neubauer davidneubauer.gro...@gmail.com wrote: Has any figured out how to get a the lists I'm subscribed to. I didn't realize how much I'd want this part of it. Please say it's coming... -Original Message- From: twitter-development-talk@googlegroups.com [mailto:twitter-development-t...@googlegroups.com] On Behalf Of Jeremy Felt Sent: Thursday, October 29, 2009 8:16 PM To: Twitter Development Talk Subject: [twitter-dev] Re: Updates to the List API (list descriptions, cursoring lists of lists, finding by list id rather than slug more consistent names) It appears that user/lists.xml only shows lists that are created by the user and not those that they follow. Any change coming to that or am I missing a way to see all lists that a user follows? Thanks, Jeremy On Oct 28, 3:00 pm, Marcel Molina mar...@twitter.com wrote: Two additions and two changes to the List API will be deployed in the next few days: * List descriptions We're adding a description to every list. You'll be able to specify a description when you create or update a list and the description will be included in the payload. * Cursoring through lists of lists All resources that return a list of lists will include next and previous cursors and will accept a :cursor parameter. * Finding by list id rather than slug When you change the name of a list, the slug will be updated to reflect that change. That means using the slug in the url for resources to operate on lists requires the onerous task of validating that the slug for the list you are about to do something with hasn't been updated since the last time you stored its slug. What a nightmare :-) Every list also has an id. This value won't change. We'll be changing the API to replace all instances of a list slug in urls to be list ids instead. * Consistent names The terminology we've used thus far for people you follow with a list is members. The terminology for people who are following a list is subscribers. We're going to mirror the terminology used for users and change it to followers and following respectively. So: /:user/lists/:list_id/memberships becomes /:user/lists/:list_id/followers /:user/lists/:list_id/subscribers becomes /:user/lists/:list_id/following As we deploy these changes we'll send out a heads up on the dev list and @twitterapi. -- Marcel Molina Twitter Platform Teamhttp://twitter.com/noradio
[twitter-dev] Re: Lists API for Subscriptions
take a look at the script entitled lists or memberof (not sure which info you mean) at http://www.ist.rit.edu/~jxs/tools/scripting/twitterLists.html and see if they help jeffs
[twitter-dev] Re: Twitter API Returning Nothing
Hi Jesse, Not sure if this is it, but looking at your code you're making a POST request to Twitter but sending the status parameter as a GET request parameter as part of the URL instead of a POST parameter. Send the data via POST too, see if that helps. On Oct 31, 2009, at 11:23 AM, Jesse Bunch bunch.je...@gmail.com wrote: Hello, here is my cURL output from the response. Its empty! I am attaching both the code used and the response. I have been at this for hours and cannot find out why this is happening. Thanks for your help. TWITTER API CURL RESPONSE url :: http://twitter.com/statuses/update.xml?status=test+agasdf content_type :: http_code :: 0 header_size :: 0 request_size :: 0 filetime :: -1 ssl_verify_result :: 0 redirect_count :: 0 total_time :: 0 namelookup_time :: 0.060027 connect_time :: 0 pretransfer_time :: 0 size_upload :: 0 size_download :: 0 speed_download :: 0 speed_upload :: 0 download_content_length :: -1 upload_content_length :: -1 starttransfer_time :: 0 redirect_time :: 0 CODE USED TO SEND REQUEST TO TWITTER ?php // A simple function using Curl to post (GET) to Twitter // Kosso : March 14 2007 function postToTwitter($username,$password,$message){ $host = http://twitter.com/statuses/update.xml?status=.urlencode (stripslashes(urldecode($message))); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $host); curl_setopt($ch, CURLOPT_VERBOSE, 1); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_USERPWD, $username:$password); curl_setopt($ch, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); curl_setopt($ch, CURLOPT_POST, 1); $result = curl_exec($ch); // Look at the returned header $resultArray = curl_getinfo($ch); curl_close($ch); if($resultArray['http_code'] == 200){ $twitter_status='Your message has been sent! a href=http:// twitter.com/'.$username.'See your profile/a'; } else { $twitter_status=Error posting to Twitter. Retrybrbr; foreach ($resultArray as $key = $value) { $twitter_status .= $key . :: . $value . br; } } return $twitter_status; } ?
[twitter-dev] Re: is there a way to filter out only a particular language
All Streaming API features are documented on the Wiki. Currently there are no filter-by-language features. -John Kalucki http://twitter.com/jkalucki Services, Twitter Inc. On Oct 31, 7:25 pm, bill lovami...@yahoo.com wrote: Hi. We are using the streaming api to access tweets. Is there any way to only receive english tweets? I know that in the user profile there is a language field. Thank you
[twitter-dev] Re: flagged as dupe post when string is unique (ideas?)
Is the posted status similar to any other status created by that user? -John Kalucki http://twitter.com/jkalucki Services, Twitter Inc. On Oct 31, 8:12 am, gembry gem...@gmail.com wrote: Hello Folks, (fishing for input) thx Not really sure what’s going on here. Below you will find what I am sending and what is coming back from the Twitter API. You can see that what is being sent doesn’t even come close to what is up there now. Am I missing something here? What am I doing wrong? Why is this completely different sting not posting? Sending method=post url=http://twitter.com/statuses/update.xml?status=Great%20Job%20for %20OAS%20TEST%20ONLY%20in%20California%2DAnaheim%2FHuntington%20Beach %2E%20http%3A%2F%2Flocalhost%2FAssignmentReady%2Findex%2Ecfm%3ForderID %3D2315510%26category%3DAllied%5FTravel%26ts%3D102809140819%20or %20800%2E469%2E5314 Result (from Twitter API) ?xml version=1.0 encoding=UTF-8? status created_atWed Oct 28 19:51:30 + 2009/created_at id5238791820/id textwhat/text sourceweb/source truncatedfalse/truncated in_reply_to_status_id/in_reply_to_status_id in_reply_to_user_id/ in_reply_to_user_id favoritedfalse/favorited in_reply_to_screen_name/in_reply_to_screen_name user id57127952/id nameLarp Master Flash/name screen_nameLarpMasterFlash/screen_name location/location description/description profile_image_urlhttp://s.twimg.com/a/ 1256674706/images/default_profile_0_normal.png/profile_image_url url/url protectedfalse/protected followers_count4/ followers_count profile_background_color9ae4e8/ profile_background_color profile_text_color00/ profile_text_color profile_link_colorff/profile_link_color profile_sidebar_fill_colore0ff92/profile_sidebar_fill_color profile_sidebar_border_color87bc44/profile_sidebar_border_color friends_count0/friends_count created_atWed Jul 15 20:31:16 + 2009/created_at favourites_count0/favourites_count utc_offset/ utc_offset time_zone/time_zone profile_background_image_urlhttp://s.twimg.com/a/1256674706/images/ themes/theme1/bg.png/profile_background_image_url profile_background_tilefalse/profile_background_tile statuses_count34/statuses_count notificationsfalse/ notifications geo_enabledfalse/geo_enabled verifiedfalse/ verified followingfalse/following /user geo/ /status Thanks for the input.
[twitter-dev] Re: Lists API for Subscriptions
Thanks for that. It would be great to combine them and reflect ownership in the response data set. This requires two API calls for what will be requested each time to show both sets together, which you on twitter.com. I assume others will tend to show both sets at the same time as well. --ejw Eric Woodward Email: e...@nambu.com On Oct 31, 3:01 pm, twittelator and...@stone.com wrote: Whoops - what I meant to say was: :user//lists/subscriptions.:format will get the lists a user has subscribed to Andrew Stone Twitter / @twittelatorhttp://www.stone.com got iPhone? http://tinyurl.com/twitpro http://tinyurl.com/intentionizer http://tinyurl.com/gesture-buy http://tinyurl.com/igraffiti http://tinyurl.com/talkingpics http://tinyurl.com/mobilemix http://tinyurl.com/soundbite http://tinyurl.com/icreated http://tinyurl.com/pulsar-app On Oct 30, 5:52 pm, Eric Woodward e...@nambu.com wrote: Anyone seeing an issue with a method to get a list of a user's list subscriptions? The following: curl -u ejwc:[password] http://twitter.com/ejwc/lists.xml; only returns the three test lists that I have created, while the same URL on Twitter's website: https://twitter.com/ejwc/lists returns my three test lists, and the 5+ lists I am following. Any suggestions? I have only just started getting a response for the API methods in the last day or so and only getting familiar with them. Any help would be appreciated. --ejw Eric Woodward Email: e...@nambu.com
[twitter-dev] Re: Subscribed Lists
Currently it's still slug. It hasn't been updated yet. When it is updated it will for some period of transition accept a slug or an id but eventually support for the slug in the url will be removed entirely. On Sun, Nov 1, 2009 at 2:14 AM, Rich rhyl...@gmail.com wrote: Can we get some form of confirmation on the list slug/id issue. At the moment calling by ID doesn't work anyway so it's only using the slug. My preference would be to allow either (in a similar way to the other REST api's where you can use user id or screenName) On Oct 31, 10:04 pm, twittelator and...@stone.com wrote: :user/lists/subscriptions.:format gets the lists that the user has subscribed to. Andrew Stone Twitter / @twittelatorhttp://www.stone.com got iPhone? http://tinyurl.com/twitpro http://tinyurl.com/intentionizer http://tinyurl.com/gesture-buy http://tinyurl.com/igraffiti http://tinyurl.com/talkingpics http://tinyurl.com/mobilemix http://tinyurl.com/soundbite http://tinyurl.com/icreated http://tinyurl.com/pulsar-app On Oct 30, 5:00 am, David Neubauer davidneubauer.gro...@gmail.com wrote: Has any figured out how to get a the lists I'm subscribed to. I didn't realize how much I'd want this part of it. Please say it's coming... -Original Message- From: twitter-development-talk@googlegroups.com [mailto:twitter-development-t...@googlegroups.com] On Behalf Of Jeremy Felt Sent: Thursday, October 29, 2009 8:16 PM To: Twitter Development Talk Subject: [twitter-dev] Re: Updates to the List API (list descriptions, cursoring lists of lists, finding by list id rather than slug more consistent names) It appears that user/lists.xml only shows lists that are created by the user and not those that they follow. Any change coming to that or am I missing a way to see all lists that a user follows? Thanks, Jeremy On Oct 28, 3:00 pm, Marcel Molina mar...@twitter.com wrote: Two additions and two changes to the List API will be deployed in the next few days: * List descriptions We're adding a description to every list. You'll be able to specify a description when you create or update a list and the description will be included in the payload. * Cursoring through lists of lists All resources that return a list of lists will include next and previous cursors and will accept a :cursor parameter. * Finding by list id rather than slug When you change the name of a list, the slug will be updated to reflect that change. That means using the slug in the url for resources to operate on lists requires the onerous task of validating that the slug for the list you are about to do something with hasn't been updated since the last time you stored its slug. What a nightmare :-) Every list also has an id. This value won't change. We'll be changing the API to replace all instances of a list slug in urls to be list ids instead. * Consistent names The terminology we've used thus far for people you follow with a list is members. The terminology for people who are following a list is subscribers. We're going to mirror the terminology used for users and change it to followers and following respectively. So: /:user/lists/:list_id/memberships becomes /:user/lists/:list_id/followers /:user/lists/:list_id/subscribers becomes /:user/lists/:list_id/following As we deploy these changes we'll send out a heads up on the dev list and @twitterapi. -- Marcel Molina Twitter Platform Teamhttp://twitter.com/noradio -- Marcel Molina Twitter Platform Team http://twitter.com/noradio
[twitter-dev] Re: how to create list of lists
This is probably confusion arising from something I wrote in a previous email. When I said list of list I meant the payload of the response body had zero or more list elements in it, therefore a list of lists. There is no way to create lists of lists in the sense that you are talking about. On Sat, Oct 31, 2009 at 7:13 AM, Ravi ravikapoor...@gmail.com wrote: The new api talks about list of lists. I do not see how to add a list to another list. Whenever I follow a list, my main account follows it, not my list. On a side note, I was playing with the API yesterday and somehow a list I created shows up twice under Lists you follow. I guess a bug somewhere. -- Marcel Molina Twitter Platform Team http://twitter.com/noradio
[twitter-dev] Re: Subscribed Lists
I have to second Rich on this - ID-only is flawed, as twitter supports hotlinking lists by name (@username/slug) in tweets, and links that to the list page. If clients want to offer the same behavior, this is not possible if the API only supports IDs (or would require a potentially large number of additional requests to get the user's lists and page through them to find the one mentioned). Marco -Original Message- From: Marcel Molina mar...@twitter.com Date: Sun, 1 Nov 2009 10:02:31 To: twitter-development-talk@googlegroups.com Subject: [twitter-dev] Re: Subscribed Lists Currently it's still slug. It hasn't been updated yet. When it is updated it will for some period of transition accept a slug or an id but eventually support for the slug in the url will be removed entirely. On Sun, Nov 1, 2009 at 2:14 AM, Rich rhyl...@gmail.com wrote: Can we get some form of confirmation on the list slug/id issue. At the moment calling by ID doesn't work anyway so it's only using the slug. My preference would be to allow either (in a similar way to the other REST api's where you can use user id or screenName) On Oct 31, 10:04 pm, twittelator and...@stone.com wrote: :user/lists/subscriptions.:format gets the lists that the user has subscribed to. Andrew Stone Twitter / @twittelatorhttp://www.stone.com got iPhone? http://tinyurl.com/twitpro http://tinyurl.com/intentionizer http://tinyurl.com/gesture-buy http://tinyurl.com/igraffiti http://tinyurl.com/talkingpics http://tinyurl.com/mobilemix http://tinyurl.com/soundbite http://tinyurl.com/icreated http://tinyurl.com/pulsar-app On Oct 30, 5:00 am, David Neubauer davidneubauer.gro...@gmail.com wrote: Has any figured out how to get a the lists I'm subscribed to. I didn't realize how much I'd want this part of it. Please say it's coming... -Original Message- From: twitter-development-talk@googlegroups.com [mailto:twitter-development-t...@googlegroups.com] On Behalf Of Jeremy Felt Sent: Thursday, October 29, 2009 8:16 PM To: Twitter Development Talk Subject: [twitter-dev] Re: Updates to the List API (list descriptions, cursoring lists of lists, finding by list id rather than slug more consistent names) It appears that user/lists.xml only shows lists that are created by the user and not those that they follow. Any change coming to that or am I missing a way to see all lists that a user follows? Thanks, Jeremy On Oct 28, 3:00 pm, Marcel Molina mar...@twitter.com wrote: Two additions and two changes to the List API will be deployed in the next few days: * List descriptions We're adding a description to every list. You'll be able to specify a description when you create or update a list and the description will be included in the payload. * Cursoring through lists of lists All resources that return a list of lists will include next and previous cursors and will accept a :cursor parameter. * Finding by list id rather than slug When you change the name of a list, the slug will be updated to reflect that change. That means using the slug in the url for resources to operate on lists requires the onerous task of validating that the slug for the list you are about to do something with hasn't been updated since the last time you stored its slug. What a nightmare :-) Every list also has an id. This value won't change. We'll be changing the API to replace all instances of a list slug in urls to be list ids instead. * Consistent names The terminology we've used thus far for people you follow with a list is members. The terminology for people who are following a list is subscribers. We're going to mirror the terminology used for users and change it to followers and following respectively. So: /:user/lists/:list_id/memberships becomes /:user/lists/:list_id/followers /:user/lists/:list_id/subscribers becomes /:user/lists/:list_id/following As we deploy these changes we'll send out a heads up on the dev list and @twitterapi. -- Marcel Molina Twitter Platform Teamhttp://twitter.com/noradio -- Marcel Molina Twitter Platform Team http://twitter.com/noradio
[twitter-dev] Re: Subscribed Lists
Resolving a @screen_name/list_name reference in a tweet is a compelling argument for making the url parameter polymorphic and not deprecating the use of slugs. I will cogitate. On Sun, Nov 1, 2009 at 10:09 AM, kaiser.ma...@gmail.com wrote: I have to second Rich on this - ID-only is flawed, as twitter supports hotlinking lists by name (@username/slug) in tweets, and links that to the list page. If clients want to offer the same behavior, this is not possible if the API only supports IDs (or would require a potentially large number of additional requests to get the user's lists and page through them to find the one mentioned). Marco -Original Message- From: Marcel Molina mar...@twitter.com Date: Sun, 1 Nov 2009 10:02:31 To: twitter-development-talk@googlegroups.com Subject: [twitter-dev] Re: Subscribed Lists Currently it's still slug. It hasn't been updated yet. When it is updated it will for some period of transition accept a slug or an id but eventually support for the slug in the url will be removed entirely. On Sun, Nov 1, 2009 at 2:14 AM, Rich rhyl...@gmail.com wrote: Can we get some form of confirmation on the list slug/id issue. At the moment calling by ID doesn't work anyway so it's only using the slug. My preference would be to allow either (in a similar way to the other REST api's where you can use user id or screenName) On Oct 31, 10:04 pm, twittelator and...@stone.com wrote: :user/lists/subscriptions.:format gets the lists that the user has subscribed to. Andrew Stone Twitter / @twittelatorhttp://www.stone.com got iPhone? http://tinyurl.com/twitpro http://tinyurl.com/intentionizer http://tinyurl.com/gesture-buy http://tinyurl.com/igraffiti http://tinyurl.com/talkingpics http://tinyurl.com/mobilemix http://tinyurl.com/soundbite http://tinyurl.com/icreated http://tinyurl.com/pulsar-app On Oct 30, 5:00 am, David Neubauer davidneubauer.gro...@gmail.com wrote: Has any figured out how to get a the lists I'm subscribed to. I didn't realize how much I'd want this part of it. Please say it's coming... -Original Message- From: twitter-development-talk@googlegroups.com [mailto:twitter-development-t...@googlegroups.com] On Behalf Of Jeremy Felt Sent: Thursday, October 29, 2009 8:16 PM To: Twitter Development Talk Subject: [twitter-dev] Re: Updates to the List API (list descriptions, cursoring lists of lists, finding by list id rather than slug more consistent names) It appears that user/lists.xml only shows lists that are created by the user and not those that they follow. Any change coming to that or am I missing a way to see all lists that a user follows? Thanks, Jeremy On Oct 28, 3:00 pm, Marcel Molina mar...@twitter.com wrote: Two additions and two changes to the List API will be deployed in the next few days: * List descriptions We're adding a description to every list. You'll be able to specify a description when you create or update a list and the description will be included in the payload. * Cursoring through lists of lists All resources that return a list of lists will include next and previous cursors and will accept a :cursor parameter. * Finding by list id rather than slug When you change the name of a list, the slug will be updated to reflect that change. That means using the slug in the url for resources to operate on lists requires the onerous task of validating that the slug for the list you are about to do something with hasn't been updated since the last time you stored its slug. What a nightmare :-) Every list also has an id. This value won't change. We'll be changing the API to replace all instances of a list slug in urls to be list ids instead. * Consistent names The terminology we've used thus far for people you follow with a list is members. The terminology for people who are following a list is subscribers. We're going to mirror the terminology used for users and change it to followers and following respectively. So: /:user/lists/:list_id/memberships becomes /:user/lists/:list_id/followers /:user/lists/:list_id/subscribers becomes /:user/lists/:list_id/following As we deploy these changes we'll send out a heads up on the dev list and @twitterapi. -- Marcel Molina Twitter Platform Teamhttp://twitter.com/noradio -- Marcel Molina Twitter Platform Team http://twitter.com/noradio -- Marcel Molina Twitter Platform Team http://twitter.com/noradio
[twitter-dev] Re: Lists API for Subscriptions
I like your scripts. Thanks. I like to see other people’s Twitter code.
[twitter-dev] Something is technically wrong error when using account/update_profile_background_image.xml
Hi, I get Something is technically wrong.Thanks for noticing—we're going to fix it up and have things back to normal soon. error whe I'm trying to set the background image in Twitter. Here's my code: $curl_handle = curl_init(); $img = sunset.jpg; $args = array(@$img); curl_setopt($curl_handle, CURLOPT_POSTFIELDS, $args); // Set up the twitter API address $url = 'http://twitter.com/account/ update_profile_background_image.xml'; curl_setopt($curl_handle, CURLOPT_URL, $url); curl_setopt($curl_handle, CURLOPT_CONNECTTIMEOUT, 2); curl_setopt($curl_handle, CURLOPT_RETURNTRANSFER, 1); curl_setopt($curl_handle, CURLOPT_POST, 1); $header = array(Expect:); curl_setopt($curl_handle, CURLOPT_HTTPHEADER, $header); curl_setopt($curl_handle, CURLOPT_USERPWD, $username:$password); $buffer = curl_exec($curl_handle); curl_close($curl_handle); What's going wrong? I tried using a command suggested in Command Line and it works. But this doesn't. What's the problem? Any help is appreciated. Thanks
[twitter-dev] PHP Libraries for OAuth
Hi, I've been messing around with the API for a while now and I've been wondering whether there's any particular consensus over the best library to use with PHP? Up to now I've been using Abraham Williams' TwitterOAuth library, however since on github it seems there's been no updates for many months I thought I'd better check whether that's because there's no major bugs or because there's better libraries available? Best wishes, Michael Mokrysz
[twitter-dev] Re: PHP Libraries for OAuth
I much prefer using http://wiki.github.com/jmathai/twitter-async Scott. On 1 Nov 2009, at 19:57, Michael Mokrysz wrote: Hi, I've been messing around with the API for a while now and I've been wondering whether there's any particular consensus over the best library to use with PHP? Up to now I've been using Abraham Williams' TwitterOAuth library, however since on github it seems there's been no updates for many months I thought I'd better check whether that's because there's no major bugs or because there's better libraries available? Best wishes, Michael Mokrysz
[twitter-dev] Re: PHP Libraries for OAuth
+1 I too started with Abraham's, but as you pointed out, that project is more or less stagnant and Abraham is working on other things. Totally understandable. Jmathai's library is technically very sound, extremely well thought out and continuously being improved. Moreover, jmathai is very helpful and responds to questions/requests etc within hours. Big fan. Plus, you get the advantage of asynchronous calls... On Nov 1, 2009, at 12:37 PM, Scott Wilcox sc...@tig.gr wrote: I much prefer using http://wiki.github.com/jmathai/twitter-async Scott. On 1 Nov 2009, at 19:57, Michael Mokrysz wrote: Hi, I've been messing around with the API for a while now and I've been wondering whether there's any particular consensus over the best library to use with PHP? Up to now I've been using Abraham Williams' TwitterOAuth library, however since on github it seems there's been no updates for many months I thought I'd better check whether that's because there's no major bugs or because there's better libraries available? Best wishes, Michael Mokrysz
[twitter-dev] Re: PHP Libraries for OAuth
Thanks to both of you, having taken a better look at epitwitter's code I'd have to agree that's it's best to switch. I still like to be able to pretty much copy and paste urls from the documentation rather than having think how to convert it into the (albeit ingenious) conversion method EpiTwitter uses so I think I'll probably rewrite the __call function a little but keep the rest of the code.
[twitter-dev] Re: PHP Libraries for OAuth
Completely agreed with Michael there. I'm not for a minute suggesting Abraham's library is any less in value, I just come to appreciate the nature in which jmathai went about creating the library and it just seemed to be more 'natural' to work with. Not to mention as Michael said - you have a question and you get a response quickly. Scott. On 1 Nov 2009, at 23:12, Michael Steuer wrote: +1 I too started with Abraham's, but as you pointed out, that project is more or less stagnant and Abraham is working on other things. Totally understandable. Jmathai's library is technically very sound, extremely well thought out and continuously being improved. Moreover, jmathai is very helpful and responds to questions/requests etc within hours. Big fan. Plus, you get the advantage of asynchronous calls... On Nov 1, 2009, at 12:37 PM, Scott Wilcox sc...@tig.gr wrote: I much prefer using http://wiki.github.com/jmathai/twitter-async Scott. On 1 Nov 2009, at 19:57, Michael Mokrysz wrote: Hi, I've been messing around with the API for a while now and I've been wondering whether there's any particular consensus over the best library to use with PHP? Up to now I've been using Abraham Williams' TwitterOAuth library, however since on github it seems there's been no updates for many months I thought I'd better check whether that's because there's no major bugs or because there's better libraries available?
[twitter-dev] Turning a list's status timeline into an JS/Ajax widget
Does calling the status timeline ( '/:users/lists/:list_slug/ statuses.:format') for a list count against rate limit? What I'm thinking of is doing an Ajax widget that auto updates with new tweets from a list every few seconds, such as the Search widget Twitter provides: http://twitter.com/goodies/widget_search If the status API request is rate limited this would obviously not work as you'd run out of requests within a few moments. Is there any other better way to turn a list's statuses into a widget? Lee
[twitter-dev] Mutual Follwers
Someone should suggest Mutual Followers to twitter. It would be quite nice.
[twitter-dev] Re: Mutual Follwers
http://code.google.com/p/twitter-api/issues/list On Sun, Nov 1, 2009 at 20:31, gi gloriasimu...@gmail.com wrote: Someone should suggest Mutual Followers to twitter. It would be quite nice. -- Internets. Serious business.
[twitter-dev] Re: Mutual Follwers
lol JDG. Okay. Does that mean it has been suggested? Or use that link to suggest it? Thanks. From: JDG ghil...@gmail.com To: twitter-development-talk@googlegroups.com Sent: Sun, November 1, 2009 7:47:07 PM Subject: [twitter-dev] Re: Mutual Follwers http://code.google.com/p/twitter-api/issues/list On Sun, Nov 1, 2009 at 20:31, gi gloriasimu...@gmail.com wrote: Someone should suggest Mutual Followers to twitter. It would be quite nice. -- Internets. Serious business.
[twitter-dev] Re: Mutual Follwers
I dunno, That's way too much to read ;) On Sun, Nov 1, 2009 at 20:55, Leon Spencer spencer_l...@yahoo.com wrote: lol JDG. Okay. Does that mean it has been suggested? Or use that link to suggest it? Thanks. -- *From:* JDG ghil...@gmail.com *To:* twitter-development-talk@googlegroups.com *Sent:* Sun, November 1, 2009 7:47:07 PM *Subject:* [twitter-dev] Re: Mutual Follwers http://code.google.com/p/twitter-api/issues/list On Sun, Nov 1, 2009 at 20:31, gi gloriasimu...@gmail.com wrote: Someone should suggest Mutual Followers to twitter. It would be quite nice. -- Internets. Serious business. -- Internets. Serious business.
[twitter-dev] Re: Mutual Follwers
The point I was trying to make that if someone should suggest it, that someone should be the someone who suggested someone suggest it. the math on that sentence was difficult. On Sun, Nov 1, 2009 at 21:14, JDG ghil...@gmail.com wrote: I dunno, That's way too much to read ;) On Sun, Nov 1, 2009 at 20:55, Leon Spencer spencer_l...@yahoo.com wrote: lol JDG. Okay. Does that mean it has been suggested? Or use that link to suggest it? Thanks. -- *From:* JDG ghil...@gmail.com *To:* twitter-development-talk@googlegroups.com *Sent:* Sun, November 1, 2009 7:47:07 PM *Subject:* [twitter-dev] Re: Mutual Follwers http://code.google.com/p/twitter-api/issues/list On Sun, Nov 1, 2009 at 20:31, gi gloriasimu...@gmail.com wrote: Someone should suggest Mutual Followers to twitter. It would be quite nice. -- Internets. Serious business. -- Internets. Serious business. -- Internets. Serious business.
[twitter-dev] Re: Mutual Follwers
All good. Was just seeking clarification ;-) So that somebody that originally suggested it now knows to use that link to formally suggest it. Cool. From: JDG ghil...@gmail.com To: twitter-development-talk@googlegroups.com Sent: Sun, November 1, 2009 8:15:16 PM Subject: [twitter-dev] Re: Mutual Follwers The point I was trying to make that if someone should suggest it, that someone should be the someone who suggested someone suggest it. the math on that sentence was difficult. On Sun, Nov 1, 2009 at 21:14, JDG ghil...@gmail.com wrote: I dunno, That's way too much to read ;) On Sun, Nov 1, 2009 at 20:55, Leon Spencer spencer_l...@yahoo.com wrote: lol JDG. Okay. Does that mean it has been suggested? Or use that link to suggest it? Thanks. From: JDG ghil...@gmail.com To: twitter-development-talk@googlegroups.com Sent: Sun, November 1, 2009 7:47:07 PM Subject: [twitter-dev] Re: Mutual Follwers http://code.google.com/p/twitter-api/issues/list On Sun, Nov 1, 2009 at 20:31, gi gloriasimu...@gmail.com wrote: Someone should suggest Mutual Followers to twitter. It would be quite nice. -- Internets. Serious business. -- Internets. Serious business. -- Internets. Serious business.
[twitter-dev] Re: Subscribed Lists
Using ID only for me is fine, except in the case we mention. If there was a REST api to find a list ID based on a slug then it would mean we could still resolve @screen_name/list_name links otherwise we wouldn't be able to replicate it, except by brute force which would use yet more API calls. On Nov 1, 6:14 pm, Marcel Molina mar...@twitter.com wrote: Resolving a @screen_name/list_name reference in a tweet is a compelling argument for making the url parameter polymorphic and not deprecating the use of slugs. I will cogitate. On Sun, Nov 1, 2009 at 10:09 AM, kaiser.ma...@gmail.com wrote: I have to second Rich on this - ID-only is flawed, as twitter supports hotlinking lists by name (@username/slug) in tweets, and links that to the list page. If clients want to offer the same behavior, this is not possible if the API only supports IDs (or would require a potentially large number of additional requests to get the user's lists and page through them to find the one mentioned). Marco -Original Message- From: Marcel Molina mar...@twitter.com Date: Sun, 1 Nov 2009 10:02:31 To: twitter-development-talk@googlegroups.com Subject: [twitter-dev] Re: Subscribed Lists Currently it's still slug. It hasn't been updated yet. When it is updated it will for some period of transition accept a slug or an id but eventually support for the slug in the url will be removed entirely. On Sun, Nov 1, 2009 at 2:14 AM, Rich rhyl...@gmail.com wrote: Can we get some form of confirmation on the list slug/id issue. At the moment calling by ID doesn't work anyway so it's only using the slug. My preference would be to allow either (in a similar way to the other REST api's where you can use user id or screenName) On Oct 31, 10:04 pm, twittelator and...@stone.com wrote: :user/lists/subscriptions.:format gets the lists that the user has subscribed to. Andrew Stone Twitter / @twittelatorhttp://www.stone.com got iPhone? http://tinyurl.com/twitpro http://tinyurl.com/intentionizer http://tinyurl.com/gesture-buy http://tinyurl.com/igraffiti http://tinyurl.com/talkingpics http://tinyurl.com/mobilemix http://tinyurl.com/soundbite http://tinyurl.com/icreated http://tinyurl.com/pulsar-app On Oct 30, 5:00 am, David Neubauer davidneubauer.gro...@gmail.com wrote: Has any figured out how to get a the lists I'm subscribed to. I didn't realize how much I'd want this part of it. Please say it's coming... -Original Message- From: twitter-development-talk@googlegroups.com [mailto:twitter-development-t...@googlegroups.com] On Behalf Of Jeremy Felt Sent: Thursday, October 29, 2009 8:16 PM To: Twitter Development Talk Subject: [twitter-dev] Re: Updates to the List API (list descriptions, cursoring lists of lists, finding by list id rather than slug more consistent names) It appears that user/lists.xml only shows lists that are created by the user and not those that they follow. Any change coming to that or am I missing a way to see all lists that a user follows? Thanks, Jeremy On Oct 28, 3:00 pm, Marcel Molina mar...@twitter.com wrote: Two additions and two changes to the List API will be deployed in the next few days: * List descriptions We're adding a description to every list. You'll be able to specify a description when you create or update a list and the description will be included in the payload. * Cursoring through lists of lists All resources that return a list of lists will include next and previous cursors and will accept a :cursor parameter. * Finding by list id rather than slug When you change the name of a list, the slug will be updated to reflect that change. That means using the slug in the url for resources to operate on lists requires the onerous task of validating that the slug for the list you are about to do something with hasn't been updated since the last time you stored its slug. What a nightmare :-) Every list also has an id. This value won't change. We'll be changing the API to replace all instances of a list slug in urls to be list ids instead. * Consistent names The terminology we've used thus far for people you follow with a list is members. The terminology for people who are following a list is subscribers. We're going to mirror the terminology used for users and change it to followers and following respectively. So: /:user/lists/:list_id/memberships becomes /:user/lists/:list_id/followers /:user/lists/:list_id/subscribers becomes /:user/lists/:list_id/following As we deploy these changes we'll send out a heads up on the dev list and @twitterapi. -- Marcel Molina Twitter Platform Teamhttp://twitter.com/noradio --