Re: [twitter-dev] add list members
On Sat, Oct 2, 2010 at 1:43 PM, Thomas Mango tsma...@gmail.com wrote: Are you sure you're requesting the correct format? I was able to POST to /:user/:list_id/members.xml with an id of a user and it correctly added the user to my list and responded with XML: POST: /14338478/23124429/members.xml?id=14477861 Response: http://gist.github.com/607880 Thanks Thomas. Glad to see that it is working. I've tried both XML and JSON. I'm using Grackle for the client. The request is authenticating properly because in all the Twitter web page that is returned there's a lot of JavaScript which indicates I am the signed in user. At the top of the page, there's a NOSCRIPT snippet: noscript meta http-equiv=refresh content=0; URL=/1/damon/tahoetechtalk-2010/create_all.xml?_twitter_noscript=1 / /noscript I believe that's the right structure for the URL so it's almost as if it's the wrong host. However, Grackle uses the API host by default and I've used it many times before just fine. The Grackle call is just: result = client._(#{list_user})._(#{list_slug}).create_all.xml! :screen_name = #{chunk1} where chunk1 is just a comma-separated list of screen names. There must be something wrong with the request I'm sending to Twitter, but I can't see what it is from this end at the moment. Thanks! /damon -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
[twitter-dev] Re: twitter streams API related question
Ok - thanks Taylor, Tom and Ed I realize then that the streams API will give me every tweet from now (till I decide to stop it). I know the streams API can help me search/ rather 'track' or filter some keywords (eg: AAPL) for every tweet that comes in. I think implicit in what each of you are saying is that ALL tweets that match my search/filter criteria will be downloaded if I use streams. I just cannot get to the tweets in the past. That is precisely what I wanted. Thanks!! In case my understanding is wrong - pls do correct me. Best Rakesh On Sep 29, 8:38 pm, Taylor Singletary taylorsinglet...@twitter.com wrote: With streaming, the present quickly becomes the past. I'd much rather a developer think pro-actively and capture the tweets they need as they happen rather than go spelunking through the past as depicted by the SearchAPI. I think Tom was referring to the SearchAPIwhen saying REST of course. Nitpicky nitpicky :). Taylor On Wed, Sep 29, 2010 at 8:22 AM, M. Edward (Ed) Borasky zn...@borasky-research.net wrote: Actually, for keyword searches of the past, wouldn't you use Search, not REST? -- M. Edward (Ed) Borasky http://borasky-research.nethttp://twitter.com/znmeb A mathematician is a device for turning coffee into theorems. - Paul Erdos Quoting Tom van der Woerdt i...@tvdw.eu: To be very simple: Streams = future, REST = past If it's 8 AM, you should start your application that uses theStreamAPI and stop it at around 9:45 AM. Then, for everytweetthat comes in, you would check the time and decide to use it or not. With the RESTAPI, you execute some requests at 9:45 AM, going back to 9:00 AM. Depending on the amount of tweets sent about AAPL, this may be a lot of requests. I'd recommend using the StreamsAPIand keep a small program running to archive (or whatever you want to do with them) the tweets. Tom On 9/29/10 2:36 PM, rakesh wrote: Hi - I would like to download (all) the tweets in the public timeline that correspond to a particular keyword (or keywords) from a specific start time to end time. Would the streamsAPIhelp me do this. For example -alltweets (fromallusers) that contain the keyword 'AAPL' between 9 AM and 9:30 AM EST. I realize that the number of requests is rate-limited and hence will not result inalltweets - if one gets whitelisted - is it possible ? Any other way ? Thanks in advance for your answer(s) Rakesh -- Twitter developer documentation and resources:http://dev.twitter.com/doc APIupdates via Twitter:http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk -- Twitter developer documentation and resources:http://dev.twitter.com/doc APIupdates via Twitter:http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
Re: [twitter-dev] Re: add list members
On Sat, Oct 2, 2010 at 2:06 PM, Ken D. k...@cimas.ch wrote: Hey Damon, The URL you cite is that of the documentation page. The correct URL (for create_all) is: http://api.twitter.com/1/:user/:list/create_all.xml with parameter user_id=:ids or screen_name=:screen_names The example is: http://api.twitter.com/1/twitterapidocs/firemen/create_all.xml?user_id=783214,6253282 Try that.. Hey Ken, Yeah, I was just including those URLs to let you know which methods I was talking about in the documentation. The call being generated by the client lib (Grackle, in this case) should look as you describe, afaik. But there must be something amiss with it. Thanks, /damon -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
[twitter-dev] Re: add list members
Damon, Mea culpa! There's an error in the create_all documentation. I should know since I filed the bug... Try: http://api.twitter.com/1/:user/:list/members/create_all.format Afaik, http://api.twitter.com/1/:user/:list/members.xml is correct for adding a single user. Ken On Oct 3, 3:41 pm, Damon Clinkscales sca...@pobox.com wrote: On Sat, Oct 2, 2010 at 2:06 PM, Ken D. k...@cimas.ch wrote: Hey Damon, The URL you cite is that of the documentation page. The correct URL (for create_all) is: http://api.twitter.com/1/:user/:list/create_all.xml with parameter user_id=:ids or screen_name=:screen_names The example is: http://api.twitter.com/1/twitterapidocs/firemen/create_all.xml?user_i... Try that.. Hey Ken, Yeah, I was just including those URLs to let you know which methods I was talking about in the documentation. The call being generated by the client lib (Grackle, in this case) should look as you describe, afaik. But there must be something amiss with it. Thanks, /damon -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
Re: [twitter-dev] Re: add list members
On Sun, Oct 3, 2010 at 9:25 AM, Ken D. k...@cimas.ch wrote: Damon, Mea culpa! There's an error in the create_all documentation. I should know since I filed the bug... Try: http://api.twitter.com/1/:user/:list/members/create_all.format Afaik, http://api.twitter.com/1/:user/:list/members.xml is correct for adding a single user. Ken Hey Ken, That was it exactly. The create_all works perfectly now. Thanks! /damon -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
[twitter-dev] Failed to validate oauth signature and token using Oauth.js and google app engine
I am getting the follwing error when trying to access request token using the google oauth.js found at http://oauth.googlecode.com/svn/code/javascript/oauth.js. My app is hosted on google app engine server. Below is the code (i've removed the token and consumer details) i'll be grateful for any assistance you could provide, Thank you: function getTwitterRequestToken(){ var url = https://api.twitter.com/oauth/request_token;; var accessor = { token: , tokenSecret: --, consumerKey : --, consumerSecret: - }; var message = { action: url, method: POST, parameters: { } }; OAuth.completeRequest(message, accessor); OAuth.SignatureMethod.sign(message, accessor); url = url + '?' + OAuth.formEncode(message.parameters); window.location = url; -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
[twitter-dev] Adding twitter message
At the top of my page I have include 'lib/EpiCurl.php'; include 'lib/EpiOAuth.php'; include 'lib/EpiTwitter.php'; include 'lib/secret.php'; further down I have $twitter_message = Offers update - . date(g:i a:) . http://www.pub-rooms.co.uk/ask-rooms.php?bookrooms=; . $intid . - . $ItemName . . $CTown; $twitterObj = new EpiTwitter($consumer_key, $consumer_secret); $twitterObj-setToken($oauth_token, $oauth_token_secret); $update_status = $twitterObj-post_statusesUpdate(array('status' = $twitter_message)); My problem that it doesn't send anything to twitter and it doesn't like $tmp=$update_status-response; php errors are turned off so I don't know why it doesn't like $tmp=$update_status-response; What am I doing wrong. At the moment I am totaly stuck. Am I right in thinking that you can't send a message directly to twiiter anymore from the admin of a website now that you have to use OAUTH? Thanks -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
[twitter-dev] One Click Background Image Upload
I have a wordpress site and have put together background images. Is there a solution out there that I can put up on the site that allows readers to simply click and upload the background to Twitter using oAuth? -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
[twitter-dev] TweeteRapid
Hi, I created a C# .NET 4.0 Twitter application called tweeterapid. http://code.google.com/a/tweeterapid . In displaying the user's picture is it calculated as a request each time it is retrieved? The api limitations makes me impossible to fetch pictures. Is there any way to overcome this problem. Please provide me some tips. -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
Re: [twitter-dev] Adding twitter message
First of all, turn PHP errors on and then try. How do you expect to track down an error with error reporting on? On 3 Oct 2010, at 08:01, plw wrote: At the top of my page I have include 'lib/EpiCurl.php'; include 'lib/EpiOAuth.php'; include 'lib/EpiTwitter.php'; include 'lib/secret.php'; further down I have $twitter_message = Offers update - . date(g:i a:) . http://www.pub-rooms.co.uk/ask-rooms.php?bookrooms=; . $intid . - . $ItemName . . $CTown; $twitterObj = new EpiTwitter($consumer_key, $consumer_secret); $twitterObj-setToken($oauth_token, $oauth_token_secret); $update_status = $twitterObj-post_statusesUpdate(array('status' = $twitter_message)); My problem that it doesn't send anything to twitter and it doesn't like $tmp=$update_status-response; php errors are turned off so I don't know why it doesn't like $tmp=$update_status-response; What am I doing wrong. At the moment I am totaly stuck. Am I right in thinking that you can't send a message directly to twiiter anymore from the admin of a website now that you have to use OAUTH? -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
Re: [twitter-dev] One Click Background Image Upload
None that I've seen, you'll have to write your own. On 3 Oct 2010, at 11:05, gerri50 wrote: I have a wordpress site and have put together background images. Is there a solution out there that I can put up on the site that allows readers to simply click and upload the background to Twitter using oAuth? -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
Re: [twitter-dev] TweeteRapid
If you use the URL that is provided in a user data block, it doesn't count. If you use the forwarding URL for profile photos, that does count. Ratelimited Forwarding URL: https://api.twitter.com/1/users/profile_image/dordotky Not Ratelimited: http://a1.twimg.com/profile_images/739860021/Blackpool_07-08-2009_24_normal.jpg On 3 Oct 2010, at 08:24, Naren wrote: Hi, I created a C# .NET 4.0 Twitter application called tweeterapid. http://code.google.com/a/tweeterapid . In displaying the user's picture is it calculated as a request each time it is retrieved? The api limitations makes me impossible to fetch pictures. Is there any way to overcome this problem. Please provide me some tips. -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
Re: [twitter-dev] Adding twitter message
er, off. Also: $twitterObj = new EpiTwitter($consumer_key, $consumer_secret); You are only providing consumer keys, you need to provider user keys too (probably the ones under 'My Access Token'). Scott. On 3 Oct 2010, at 08:01, plw wrote: At the top of my page I have include 'lib/EpiCurl.php'; include 'lib/EpiOAuth.php'; include 'lib/EpiTwitter.php'; include 'lib/secret.php'; further down I have $twitter_message = Offers update - . date(g:i a:) . http://www.pub-rooms.co.uk/ask-rooms.php?bookrooms=; . $intid . - . $ItemName . . $CTown; $twitterObj = new EpiTwitter($consumer_key, $consumer_secret); $twitterObj-setToken($oauth_token, $oauth_token_secret); $update_status = $twitterObj-post_statusesUpdate(array('status' = $twitter_message)); My problem that it doesn't send anything to twitter and it doesn't like $tmp=$update_status-response; php errors are turned off so I don't know why it doesn't like $tmp=$update_status-response; What am I doing wrong. At the moment I am totaly stuck. Am I right in thinking that you can't send a message directly to twiiter anymore from the admin of a website now that you have to use OAUTH? -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
[twitter-dev] about Rate-limit
Hi everbody, I know this issue talked many times before different ways in this list. But I don't understand something about rate-limiting. As a portal developer, I'm using Twitter API to show our members' twitter home-timeline to our portal. oAuth rate-limit is 350, but we have 100.000+ members. As you can guess this is a big problem, in this state; Rate-limiting (350) is counting for our application or counting for authenticated user. For example application called X user A authenticated to X 10 times / per hour user B authenticated to X 50 times / per hour user C authenticated to X 100 times / per hour user D authenticated to X 75 times / per hour user E authenticated to X 5 times / per hour user F authenticated to X 50 times / per hour user G authenticated to X 60 times / per hour This count 350. So what about other users Or every member has own rate-limiting for this application X. Regards from Turkey * Emre GULCAN* Application Developer -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
[twitter-dev] Re: Invalid / expired Token
Please? No one sees a problem with the code? On Sep 28, 7:20 pm, Rajendra Singh pub...@rajendra.ca wrote: Hi BJ, Here is the complete code: include_once oauth-php/library/OAuthStore.php; include_once oauth-php/library/OAuthRequester.php; // register athttp://twitter.com/oauth_clientsand fill these two define(TWITTER_CONSUMER_KEY, ); // I removed this for this post define(TWITTER_CONSUMER_SECRET, ); // I removed this for this post define(TWITTER_OAUTH_HOST,http://api.twitter.com;); define(TWITTER_REQUEST_TOKEN_URL, TWITTER_OAUTH_HOST . /oauth/ request_token); define(TWITTER_AUTHORIZE_URL, TWITTER_OAUTH_HOST . /oauth/ authorize); define(TWITTER_ACCESS_TOKEN_URL, TWITTER_OAUTH_HOST . /oauth/ access_token); define(TWITTER_PUBLIC_TIMELINE_API, TWITTER_OAUTH_HOST . /statuses/ public_timeline.json); define(TWITTER_UPDATE_STATUS_API, TWITTER_OAUTH_HOST . /1/statuses/ update.json); define('OAUTH_TMP_DIR', function_exists('sys_get_temp_dir') ? sys_get_temp_dir() : realpath($_ENV[TMP])); // Twitter test $options = array('consumer_key' = TWITTER_CONSUMER_KEY, 'consumer_secret' = TWITTER_CONSUMER_SECRET); OAuthStore::instance(2Leg, $options); try { // Obtain a request object for the request we want to make $request = new OAuthRequester(TWITTER_REQUEST_TOKEN_URL, POST); $result = $request-doRequest(0); parse_str($result['body'], $params); // now make the request. $request = new OAuthRequester(TWITTER_PUBLIC_TIMELINE_API, 'GET', $params); $result = $request-doRequest(); $request = new OAuthRequester(TWITTER_UPDATE_STATUS_API, 'POST', array('status' = 'Test')); $result = $request-doRequest(); } catch(OAuthException2 $e) { echo Exception: . $e-getMessage() . \n; } ? On Sep 28, 6:16 pm, BJ Weschke bwesc...@btwtech.com wrote: Are you certain that you're using the accesstokenand secret received and not the requesttokenand secret? Rajendra Singh wrote: Help anyone? On Sep 6, 7:16 pm, Rajendra Singh rs.can...@gmail.com wrote: Hi Tom, Yes I did fill in those values correctly. On Sep 6, 5:44 pm, Tom van der Woerdt i...@tvdw.eu wrote: On 9/6/10 10:57 PM, Rajendra Singh wrote: Hello, I took the twoleggedtwitter.php example file and added the following two lines: $request = new OAuthRequester(TWITTER_UPDATE_STATUS_API, 'POST', status=Test); $result = $request-doRequest(); However, when I execute it, I get: Exception: Request failed with code401: {request:/statuses/ update.json,error:Invalid/expiredToken} Can someone help me? What am I doing wrong? Did you fill in the consumertokenand secret? And the usertokenand secret? Tom -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
Re: [twitter-dev] about Rate-limit
Thanks Scott * Emre GULCAN* Application Developer On Mon, Oct 4, 2010 at 1:15 AM, Scott Wilcox sc...@dor.ky wrote: Each user gets 350 calls per hour via your application. On 3 Oct 2010, at 23:08, Emre GÜLCAN wrote: Hi everbody, I know this issue talked many times before different ways in this list. But I don't understand something about rate-limiting. As a portal developer, I'm using Twitter API to show our members' twitter home-timeline to our portal. oAuth rate-limit is 350, but we have 100.000+ members. As you can guess this is a big problem, in this state; Rate-limiting (350) is counting for our application or counting for authenticated user. For example application called X user A authenticated to X 10 times / per hour user B authenticated to X 50 times / per hour user C authenticated to X 100 times / per hour user D authenticated to X 75 times / per hour user E authenticated to X 5 times / per hour user F authenticated to X 50 times / per hour user G authenticated to X 60 times / per hour This count 350. So what about other users Or every member has own rate-limiting for this application X. -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
[twitter-dev] Re: One Click Background Image Upload
I will probably hit a brick wall when it comes to writing my own. Do you know how to? This person here has something running on their site but I cant find a way of getting in touch with the webmaster: http://justfreebackgrounds.com/twitter/inception-twitter-background/ On Oct 4, 9:53 am, Scott Wilcox sc...@dor.ky wrote: None that I've seen, you'll have to write your own. On 3 Oct 2010, at 11:05, gerri50 wrote: I have a wordpress site and have put together background images. Is there a solution out there that I can put up on the site that allows readers to simply click and upload the background to Twitter using oAuth? -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
Re: [twitter-dev] about Rate-limit
If you have 100k members to poll continuously, perhaps you should look into the Site Streams beta? -John Kalucki http://twitter.com/jkalucki Twitter, Inc. On Sun, Oct 3, 2010 at 4:47 PM, Emre GÜLCAN emregul...@gmail.com wrote: Thanks Scott Emre GULCAN Application Developer On Mon, Oct 4, 2010 at 1:15 AM, Scott Wilcox sc...@dor.ky wrote: Each user gets 350 calls per hour via your application. On 3 Oct 2010, at 23:08, Emre GÜLCAN wrote: Hi everbody, I know this issue talked many times before different ways in this list. But I don't understand something about rate-limiting. As a portal developer, I'm using Twitter API to show our members' twitter home-timeline to our portal. oAuth rate-limit is 350, but we have 100.000+ members. As you can guess this is a big problem, in this state; Rate-limiting (350) is counting for our application or counting for authenticated user. For example application called X user A authenticated to X 10 times / per hour user B authenticated to X 50 times / per hour user C authenticated to X 100 times / per hour user D authenticated to X 75 times / per hour user E authenticated to X 5 times / per hour user F authenticated to X 50 times / per hour user G authenticated to X 60 times / per hour This count 350. So what about other users Or every member has own rate-limiting for this application X. -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk