Re: [twitter-dev] Re: Frequent errors when using OAuth, none when using basic
However, if oauth-proxy is indeed doing OAuth as badly as your list of faults implies, I may have a bit of a job on my hands to figure out what it's doing and fix it, or might try to find some other OAuth proxy or client. Pity, though, as oauth-proxy was about the only thing I'd found so far which lets me send tweets relatively easily from a shell script. (There was a curl-alike with OAuth support whose name I forget, which had so many dependencies (Ruby, I think) that I eventually gave up trying to get it to work.) I'm in the middle of tidying up a python-based oauth command-line client that I've written[1], to improve debugging output and remove a dependency. Would that be at all helpful? I aim to finish the tidyup in the next couple of hours (as it's mostly just a case of committing code). The only dependencies will be PyYAML[2] and httplib2[3], although the current version also depends on python-oauth2[4] which, despite its name, is an OAuth 1.0a client. I also plan to generate a setup script that will automagically fetch and install the required dependencies. Dave [1] http://github.com/dingram/pycloc [2] http://pypi.python.org/pypi/PyYAML [3] http://pypi.python.org/pypi/httplib2 [4] http://github.com/simplegeo/python-oauth2
[twitter-dev] GAE Twitter API Access
I am using this http://python-twitter.googlecode.com/hg/twitter.py file to access Twitter's UserTimeline and ProfileImg from GAE - Google App Engine. My GAE app url is http://test.appspot.com and it is accessed using custom domain http://www.mydomain.com. I tried both URL's in twitter application registration, but its not allowing me to access UserTimeLine or ProfileImg on my website. Am I doing something wrong? Please Help.
[twitter-dev] Twitter API Search Question
Not sure if this is correct place to post this question, but if not if anyone can direct me to the correct place. When running the following http://search.twitter.com/search.atom?q=from%3AVisitliverpool This used to bring back the feed from the Visitliverpool twitter feed. Recently it seems to have stopped, but not bringing back any entries, or any error messages. Doing other usernames appears to still work. Can anyone tell me why? I have some code that runs this, but should have been hitting it no more than once every 15 minutes. Any help would be muchly appreciated.
[twitter-dev] twitter api for get tweets info that include a #nowplaying tag.
Hello All, i want twitter api for tweets that include a #nowplaying tag. View music tracks mentioned on Twitter in real-time. can any one help me for this api. regards, Prakash Panchal
[twitter-dev] DMs and followers list
I am working on a twitter application, I want followers to be kept in a dropdown in my application like twitter does when I send a DM from twitter. However, since I have less than 50 followers now (alas), I do not know the twitter behavior when someone has (let's say) 5000 or 1 or even 10 followers. Surely you do not put a gigantic list into that dropdown. But since I cannot test that situation, can someone tell me what twitter itself does? I'd like to more or less do the same as twitter in this case. thanks, Mark
Re: [twitter-dev] BlackBerry, XAuth and twitterapime
Hi, I suggest you to get in touch to Twitter API ME support before replacing codes. Send an e-mail to supp...@twapime.com or check project's forum page: http://kenai.com/projects/twitterapime/forums/forum Maybe your issues are already discussed there. Regards, Ernandes On Tue, Aug 3, 2010 at 9:21 PM, BBTweet Media Player bbtweetme...@gmail.com wrote: I am having a very difficult time trying to get XAuth working in my BlackBerry app. I have downloaded twitterapime the hmacsha ecodingand Base64Ecoder did not seem to work for me so I replaced the getSignature method in XAuthSigner with... /** * p * Generate a signature from the given base string. * /p * @param baseString Base string. * @param consumerSecret Consumer secret. * @param tokenSecret Token secret. * @return Signature. */ private static String getSignature(String baseString, String consumerSecret, String tokenSecret) { // byte[] b = HMAC.getHmac(baseString, consumerSecret + '' + tokenSecret); // // // return Base64Encoder.encode(b); String ret = null; try { ret = hmacsha1(baseString, consumerSecret + '' + tokenSecret); } catch (Exception e) { new RuntimeException(e.getMessage()); } return ret; } private static String hmacsha1(String key, String message) throws CryptoTokenException, CryptoUnsupportedOperationException, IOException { HMACKey k = new HMACKey(key.getBytes()); HMAC hmac = new HMAC(k, new SHA1Digest()); hmac.update(message.getBytes()); byte[] mac = hmac.getMAC(); return Base64OutputStream.encodeAsString(mac, 0, mac.length, false, false); } and any base 64 encodings with Base64OutputStream.encodeAsString(mac, 0, mac.length, false, false); I get 401 errors when attempting to get my request token. I can replace my secrets, ids and pass with dummys and place a step by steps of what is going on if that would help? -- Ernandes Jr. - ALL programs are poems. However, NOT all programmers are poets.
Re: [twitter-dev] Re: Frequent errors when using OAuth, none when using basic
However, if oauth-proxy is indeed doing OAuth as badly as your list of faults implies, I may have a bit of a job on my hands to figure out what it's doing and fix it, or might try to find some other OAuth proxy or client. Pity, though, as oauth-proxy was about the only thing I'd found so far which lets me send tweets relatively easily from a shell script. (There was a curl-alike with OAuth support whose name I forget, which had so many dependencies (Ruby, I think) that I eventually gave up trying to get it to work.) ITYM twurl I'm in the middle of tidying up a python-based oauth command-line client that I've written[1], to improve debugging output and remove a dependency. Would that be at all helpful? I aim to finish the tidyup in the next couple of hours (as it's mostly just a case of committing code). The only dependencies will be PyYAML[2] and httplib2[3], although the current version also depends on python-oauth2[4] which, despite its name, is an OAuth 1.0a client. I also plan to generate a setup script that will automagically fetch and install the required dependencies. [1] http://github.com/dingram/pycloc I'll also throw in a plug for TTYtter, which has no dependencies other than cURL itself (it includes its own OAuth code built-in) and is Perl. It has specific support for scripting (look at -status=... and -runcommand). http://www.floodgap.com/software/ttytter/ -- personal: http://www.cameronkaiser.com/ -- Cameron Kaiser * Floodgap Systems * www.floodgap.com * ckai...@floodgap.com -- Today's Internal Revenue Service: We got what it takes to take what you got!
Re: [twitter-dev] twitter api for get tweets info that include a #nowplaying tag.
Check into the Streaming API filter endpoint with the track parameter. -John Kalucki http://twitter.com/jkalucki Infrastructure, Twitter Inc. On Wed, Aug 4, 2010 at 3:56 AM, Prakash Panchal prakash.virtuei...@gmail.com wrote: Hello All, i want twitter api for tweets that include a #nowplaying tag. View music tracks mentioned on Twitter in real-time. can any one help me for this api. regards, Prakash Panchal
[twitter-dev] Using the Authorization header
Hi all, I'm currently writing my own OAuth lib for use with Twitter and have gotten stuck whilst using the Authorization HTTP header, rather than putting the OAuth parameters in the body. An example of a request that is failing is: POST /1/statuses/update.xml HTTP/1.1 Authorization: OAuth realm=http://api.twitter.com/1/statuses/ update.xml, oauth_consumer_key=x, oauth_token=x, oauth_nonce=x, oauth_timestamp=1280937572, oauth_signature_method=HMAC-SHA1, oauth_version=1.0, oauth_signature=DLPyc3h6BcC5zbGXrUcujvZnqxk= User-Agent: Java/1.6.0_07 Host: api.twitter.com Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2 Connection: keep-alive Content-type: application/x-www-form-urlencoded Content-Length: 53 status=Test%25201%25202%25203%25204%25201280937572396 ...(token etc blanked out, and new lines added in) This results in the server returning a 500 error and the Something is technically wrong. error page. I've talked to another developer who doesn't experience this. I've tried this with the parameters alphabetically ordered, unordered and with and without the 'realm' parameter, which isn't used in the http://dev.twitter.com/pages/auth page. I don't have the same problem (as in the 500 error) when I put the OAuth parameters in the request body, but this often fails as well with 401 'Invalid signature' errors. What's strange is that putting the OAuth parameters into the form at Hueniverse's OAuth request signing page (http://tinyurl.com/y9bvjyt) shows them, including the signature, to be correct. If I retry the same request, it eventually works (sometimes it works the first time, just not consistently), so I don't think I'm calculating the signature incorrectly. Are the 401 errors occurring because Twitter is busy, or am I doing something wrong? Thanks in advance, any help would be greatly appreciated! ben
[twitter-dev] No clue Invalid request
I'm hoping someone can help me. Getting this error when trying to update to twitter via 'http:// twitter.com/direct_messages/new.json' {request:/direct_messages/new.json,error:Invalid request.} I'm using PHP with a script i copied from the web which is suppose to monitor a server and update the twitter account if the server goes offline. here's the code i copied from the web: ?php // Specify the target URL in your server $targetUrl = 'http://YOUR_SERVER_URL'; // Specify what the response is from the server $targetText = 'Hello from Daredevil'; // We will be using cURL for fetching the content $ch = curl_init(); // Set the params curl_setopt($ch, CURLOPT_URL, $targetUrl); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 2); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); // Get the response $response = curl_exec($ch); curl_close($ch); // Are things in right place ? if ($response == $targetText) { die('Site is up and running!'); } // Nope, so here are the sender's twitter info $username = 'SENDER_TWITTER_USERNAME'; $password = 'SENDER_TWITTER_PASSWORD'; // Receiver's twitter username $receiver = 'RECEIVER_TWITTER_USERNAME'; // Alert message to send $message = 'Daredevil is not responding, please fix ASAP!'; // The Twitter API address (new direct message) $url = 'http://twitter.com/direct_messages/new.json'; // We will be using cURL for this $ch = curl_init(); // Set the params curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 2); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, user=$receiveramp;text= $message); curl_setopt($ch, CURLOPT_USERPWD, $username:$password); // Send the request $response = curl_exec($ch); curl_close($ch); // Success or failure if (!empty($response)) { echo 'Recipient has been notified.'; } else { echo 'No response from twitter.'; } ?
Re: [twitter-dev] DMs and followers list
Mark, you should implement similarly to what Google Auto-suggest does... As users start typing they send AJAX calls back to the servers that return the top 10 matches. As long as your server responds quickly, users are not going to notice because the total latency might be 100 or 200ms, which would enough to keep users happy. -Marcelo On Wed, Aug 4, 2010 at 6:32 AM, Mark Krieger markskrie...@gmail.com wrote: I am working on a twitter application, I want followers to be kept in a dropdown in my application like twitter does when I send a DM from twitter. However, since I have less than 50 followers now (alas), I do not know the twitter behavior when someone has (let's say) 5000 or 1 or even 10 followers. Surely you do not put a gigantic list into that dropdown. But since I cannot test that situation, can someone tell me what twitter itself does? I'd like to more or less do the same as twitter in this case. thanks, Mark -- -Marcelo Twitter: @calbucci http://twitter.com/calbucci | blog.calbucci.com | Seattle 2.0 http://www.seattle20.com/
[twitter-dev] Re: Frequent errors when using OAuth, none when using basic
On Aug 4, 3:54 pm, Cameron Kaiser spec...@floodgap.com wrote: ITYM twurl Could well have been. I seem to remember spending ages installing dependencies with gem install (few of them appeared to be available in Debian packages) and eventually ran into a brick wall where the versions required just didn't seem to be available from wherever gem install gets them from. Dave Ingram d...@dmi.me.uk wrote: I'm in the middle of tidying up a python-based oauth command-line client Cameron Kaiser again: I'll also throw in a plug for TTYtter, which has no dependencies other than Thanks for the suggestions, but actually I think I've managed to fix things without switching to something completely different. Main thing was, I'd either misread, or just failed to read, the documentation for curl's -d option. It needs to be URL-encoded before passing to curl. I am how stuffing the text I want to send through the following; probably overkill, but it seems to work: TWEET=$(echo -n $MSG | head -c140 | od -An -tx1 -v | tr '\n' ' ' | sed 's/^/ /;s/[^0-9A-Fa-f]/ /g;s/ *$//;s/ */%/g') Basically, it %-encodes every character. The other thing I fixed was oauth-proxy itself. Including the status= parameter in the Authorization header does seem to break things sometimes, probably depending on which special characters are included (and probably not properly escaped) in the value. This patch seems to fix that: --- oauth/oauth.py.orig 2010-08-04 20:06:55.0 +0100 +++ oauth/oauth.py2010-08-04 16:16:42.0 +0100 @@ -118,12 +118,22 @@ parameters[k] = v return parameters +# get only oauth parameters +def get_oauth_parameters(self): +parameters = {} +for k, v in self.parameters.iteritems(): +# ignore oauth parameters +if k.find('oauth_') == 0: +parameters[k] = v +return parameters + # serialize as a header for an HTTPAuth request def to_header(self, realm=''): auth_header = 'OAuth realm=%s' % realm # add the oauth parameters -if self.parameters: -for k, v in self.parameters.iteritems(): +parameters = self.get_oauth_parameters() +if parameters: +for k, v in parameters.iteritems(): auth_header += ', %s=%s' % (k, v) return {'Authorization': auth_header} With these two fixes, I haven't yet had any problems. Thanks for the help! --Charles
[twitter-dev] Re: Using the Authorization header
I am trying to get everybody who wants to test using this Mozilla REST client, so we can have a common baseline, we can narrow source of errors.-copy and past header here and POST https://addons.mozilla.org/en-US/firefox/addon/9780/ Shob On Aug 4, 9:19 am, Ben Jones benjamin.david.jo...@gmail.com wrote: Hi all, I'm currently writing my own OAuth lib for use with Twitter and have gotten stuck whilst using the Authorization HTTP header, rather than putting the OAuth parameters in the body. An example of a request that is failing is: POST /1/statuses/update.xml HTTP/1.1 Authorization: OAuth realm=http://api.twitter.com/1/statuses/ update.xml, oauth_consumer_key=x, oauth_token=x, oauth_nonce=x, oauth_timestamp=1280937572, oauth_signature_method=HMAC-SHA1, oauth_version=1.0, oauth_signature=DLPyc3h6BcC5zbGXrUcujvZnqxk= User-Agent: Java/1.6.0_07 Host: api.twitter.com Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2 Connection: keep-alive Content-type: application/x-www-form-urlencoded Content-Length: 53 status=Test%25201%25202%25203%25204%25201280937572396 ...(token etc blanked out, and new lines added in) This results in the server returning a 500 error and the Something is technically wrong. error page. I've talked to another developer who doesn't experience this. I've tried this with the parameters alphabetically ordered, unordered and with and without the 'realm' parameter, which isn't used in thehttp://dev.twitter.com/pages/authpage. I don't have the same problem (as in the 500 error) when I put the OAuth parameters in the request body, but this often fails as well with 401 'Invalid signature' errors. What's strange is that putting the OAuth parameters into the form at Hueniverse's OAuth request signing page (http://tinyurl.com/y9bvjyt) shows them, including the signature, to be correct. If I retry the same request, it eventually works (sometimes it works the first time, just not consistently), so I don't think I'm calculating the signature incorrectly. Are the 401 errors occurring because Twitter is busy, or am I doing something wrong? Thanks in advance, any help would be greatly appreciated! ben
[twitter-dev] Re: Simple oAuth php cURL token_request example not working
I believe you need to change your Set url from: $url = http://api.twitter.com/oauth/request_token;; to $url = http://twitter.com/oauth/request_token;; Marc On Jul 20, 3:50 pm, Derrick derrick.egersdor...@gmail.com wrote: The code below simply gives me Failed to validateoauthsignature and token : really battling to spot the problem here. // Set url $url = http://api.twitter.com/oauth/request_token;; // Params to pass to twitter and create signature $params['oauth_callback'] = http://localhost/twitter/tweet/;; $params['oauth_consumer_key'] = $this-consumerKey; $params['oauth_nonce'] = SHA1(time()); $params['oauth_timestamp'] = time(); $params['oauth_signature_method'] = $this-signatureMethod; $params['oauth_version'] = $this-version; ksort($params); // Signing // Concatenating $concatenatedParams = ''; foreach($params as $k = $v) { $k = urlencode($k); $v = urlencode($v); $concatenatedParams .= {$k}={$v}; } $concatenatedParams = urlencode(substr($concatenatedParams, 0,-1)); $signatureBaseString = POST.urlencode($url).. $concatenatedParams; $params['oauth_signature'] = base64_encode( hash_hmac('sha1', $signatureBaseString, $this- secret., true) ); // Do cURL $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLINFO_HEADER_OUT, 1); curl_setopt($ch, CURLOPT_HTTPHEADER, array('Expect:')); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, $params); curl_setopt($ch, CURLOPT_HEADER, 0); curl_setopt($ch, CURLOPT_RETURNTRANSFER,1); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER,1); curl_setopt($ch, CURLOPT_FOLLOWLOCATION,1); $exec = curl_exec ($ch); $info = curl_getinfo($ch); curl_close ($ch); print $exec;
[twitter-dev] Open Source Streaming libraries that use oAuth?
Are there any open source libraries to connect to Streaming that use oAuth? -- M. Edward (Ed) Borasky http://borasky-research.net http://twitter.com/znmeb A mathematician is a device for turning coffee into theorems. - Paul Erdos
[twitter-dev] Re: Using the Authorization header
just watch the timestamps... On Aug 4, 12:58 pm, Jacky jaga...@gmail.com wrote: I am trying to get everybody who wants to test using this Mozilla REST client, so we can have a common baseline, we can narrow source of errors.-copy and past header here and POST https://addons.mozilla.org/en-US/firefox/addon/9780/ Shob On Aug 4, 9:19 am, Ben Jones benjamin.david.jo...@gmail.com wrote: Hi all, I'm currently writing my own OAuth lib for use with Twitter and have gotten stuck whilst using the Authorization HTTP header, rather than putting the OAuth parameters in the body. An example of a request that is failing is: POST /1/statuses/update.xml HTTP/1.1 Authorization: OAuth realm=http://api.twitter.com/1/statuses/ update.xml, oauth_consumer_key=x, oauth_token=x, oauth_nonce=x, oauth_timestamp=1280937572, oauth_signature_method=HMAC-SHA1, oauth_version=1.0, oauth_signature=DLPyc3h6BcC5zbGXrUcujvZnqxk= User-Agent: Java/1.6.0_07 Host: api.twitter.com Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2 Connection: keep-alive Content-type: application/x-www-form-urlencoded Content-Length: 53 status=Test%25201%25202%25203%25204%25201280937572396 ...(token etc blanked out, and new lines added in) This results in the server returning a 500 error and the Something is technically wrong. error page. I've talked to another developer who doesn't experience this. I've tried this with the parameters alphabetically ordered, unordered and with and without the 'realm' parameter, which isn't used in thehttp://dev.twitter.com/pages/authpage. I don't have the same problem (as in the 500 error) when I put the OAuth parameters in the request body, but this often fails as well with 401 'Invalid signature' errors. What's strange is that putting the OAuth parameters into the form at Hueniverse's OAuth request signing page (http://tinyurl.com/y9bvjyt) shows them, including the signature, to be correct. If I retry the same request, it eventually works (sometimes it works the first time, just not consistently), so I don't think I'm calculating the signature incorrectly. Are the 401 errors occurring because Twitter is busy, or am I doing something wrong? Thanks in advance, any help would be greatly appreciated! ben
[twitter-dev] Re: lets test OAuth POST using this client
Works well...helps you crosscheck...and narrow your source of error On Aug 2, 9:46 pm, Jacky jaga...@gmail.com wrote: Amy users using this REST client to test OAuth header https://addons.mozilla.org/en-US/firefox/addon/9780/ so we can have a common base to check against
[twitter-dev] Re: Using the Authorization header
You are sending realm= in your Authorization header. It doesn't belong there. ;-) Tom On Aug 4, 6:19 pm, Ben Jones benjamin.david.jo...@gmail.com wrote: Hi all, I'm currently writing my own OAuth lib for use with Twitter and have gotten stuck whilst using the Authorization HTTP header, rather than putting the OAuth parameters in the body. An example of a request that is failing is: POST /1/statuses/update.xml HTTP/1.1 Authorization: OAuth realm=http://api.twitter.com/1/statuses/ update.xml, oauth_consumer_key=x, oauth_token=x, oauth_nonce=x, oauth_timestamp=1280937572, oauth_signature_method=HMAC-SHA1, oauth_version=1.0, oauth_signature=DLPyc3h6BcC5zbGXrUcujvZnqxk= User-Agent: Java/1.6.0_07 Host: api.twitter.com Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2 Connection: keep-alive Content-type: application/x-www-form-urlencoded Content-Length: 53 status=Test%25201%25202%25203%25204%25201280937572396 ...(token etc blanked out, and new lines added in) This results in the server returning a 500 error and the Something is technically wrong. error page. I've talked to another developer who doesn't experience this. I've tried this with the parameters alphabetically ordered, unordered and with and without the 'realm' parameter, which isn't used in thehttp://dev.twitter.com/pages/authpage. I don't have the same problem (as in the 500 error) when I put the OAuth parameters in the request body, but this often fails as well with 401 'Invalid signature' errors. What's strange is that putting the OAuth parameters into the form at Hueniverse's OAuth request signing page (http://tinyurl.com/y9bvjyt) shows them, including the signature, to be correct. If I retry the same request, it eventually works (sometimes it works the first time, just not consistently), so I don't think I'm calculating the signature incorrectly. Are the 401 errors occurring because Twitter is busy, or am I doing something wrong? Thanks in advance, any help would be greatly appreciated! ben
[twitter-dev] Re: Using the Authorization header
Oops, silly me, didn't read the full post. Sorry. Make sure to watch for character encoding and timestamps. Especially timestamps are known to cause trouble. 401 errors are almost never an issue at Twitter. Tom On Aug 5, 1:34 am, Tom allerleiga...@gmail.com wrote: You are sending realm= in your Authorization header. It doesn't belong there. ;-) Tom On Aug 4, 6:19 pm, Ben Jones benjamin.david.jo...@gmail.com wrote: Hi all, I'm currently writing my own OAuth lib for use with Twitter and have gotten stuck whilst using the Authorization HTTP header, rather than putting the OAuth parameters in the body. An example of a request that is failing is: POST /1/statuses/update.xml HTTP/1.1 Authorization: OAuth realm=http://api.twitter.com/1/statuses/ update.xml, oauth_consumer_key=x, oauth_token=x, oauth_nonce=x, oauth_timestamp=1280937572, oauth_signature_method=HMAC-SHA1, oauth_version=1.0, oauth_signature=DLPyc3h6BcC5zbGXrUcujvZnqxk= User-Agent: Java/1.6.0_07 Host: api.twitter.com Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2 Connection: keep-alive Content-type: application/x-www-form-urlencoded Content-Length: 53 status=Test%25201%25202%25203%25204%25201280937572396 ...(token etc blanked out, and new lines added in) This results in the server returning a 500 error and the Something is technically wrong. error page. I've talked to another developer who doesn't experience this. I've tried this with the parameters alphabetically ordered, unordered and with and without the 'realm' parameter, which isn't used in thehttp://dev.twitter.com/pages/authpage. I don't have the same problem (as in the 500 error) when I put the OAuth parameters in the request body, but this often fails as well with 401 'Invalid signature' errors. What's strange is that putting the OAuth parameters into the form at Hueniverse's OAuth request signing page (http://tinyurl.com/y9bvjyt) shows them, including the signature, to be correct. If I retry the same request, it eventually works (sometimes it works the first time, just not consistently), so I don't think I'm calculating the signature incorrectly. Are the 401 errors occurring because Twitter is busy, or am I doing something wrong? Thanks in advance, any help would be greatly appreciated! ben
[twitter-dev] Re: Open Source Streaming libraries that use oAuth?
In which language? Tom On Aug 5, 1:01 am, M. Edward (Ed) Borasky zn...@borasky- research.net wrote: Are there any open source libraries to connect to Streaming that use oAuth? -- M. Edward (Ed) Boraskyhttp://borasky-research.nethttp://twitter.com/znmeb A mathematician is a device for turning coffee into theorems. - Paul Erdos
Re: [twitter-dev] Re: Open Source Streaming libraries that use oAuth?
Perl or Ruby are preferred, but any language will work if it doesn't have an outrageously heavyweight runtime. -- M. Edward (Ed) Borasky http://borasky-research.net http://twitter.com/znmeb A mathematician is a device for turning coffee into theorems. - Paul Erdos Quoting Tom allerleiga...@gmail.com: In which language? Tom On Aug 5, 1:01 am, M. Edward (Ed) Borasky zn...@borasky- research.net wrote: Are there any open source libraries to connect to Streaming that use oAuth? -- M. Edward (Ed) Boraskyhttp://borasky-research.nethttp://twitter.com/znmeb A mathematician is a device for turning coffee into theorems. - Paul Erdos
Re: [twitter-dev] Re: Open Source Streaming libraries that use oAuth?
For ruby, check out twurl twurl -t -U -Hstream.twitter.com /1/statuses/sample.json Should be pretty easy to reverse engineer what the command line tool is doing and go from there. ---Mark http://twitter.com/mccv On Wed, Aug 4, 2010 at 4:55 PM, M. Edward (Ed) Borasky zn...@borasky-research.net wrote: Perl or Ruby are preferred, but any language will work if it doesn't have an outrageously heavyweight runtime. -- M. Edward (Ed) Borasky http://borasky-research.net http://twitter.com/znmeb A mathematician is a device for turning coffee into theorems. - Paul Erdos Quoting Tom allerleiga...@gmail.com: In which language? Tom On Aug 5, 1:01 am, M. Edward (Ed) Borasky zn...@borasky- research.net wrote: Are there any open source libraries to connect to Streaming that use oAuth? -- M. Edward (Ed) Boraskyhttp://borasky-research.nethttp://twitter.com/znmeb A mathematician is a device for turning coffee into theorems. - Paul Erdos
Re: [twitter-dev] Re: Open Source Streaming libraries that use oAuth?
I believe the twitter-stream[1] ruby library supports OAuuth as of the latest version. I haven't personally used the OAuth yet but it's been rock solid for me with basic auth. Hayes [1] http://github.com/voloko/twitter-stream On Wed, Aug 4, 2010 at 7:39 PM, Mark McBride mmcbr...@twitter.com wrote: For ruby, check out twurl twurl -t -U -Hstream.twitter.com /1/statuses/sample.json Should be pretty easy to reverse engineer what the command line tool is doing and go from there. ---Mark http://twitter.com/mccv On Wed, Aug 4, 2010 at 4:55 PM, M. Edward (Ed) Borasky zn...@borasky-research.net wrote: Perl or Ruby are preferred, but any language will work if it doesn't have an outrageously heavyweight runtime. -- M. Edward (Ed) Borasky http://borasky-research.net http://twitter.com/znmeb A mathematician is a device for turning coffee into theorems. - Paul Erdos Quoting Tom allerleiga...@gmail.com: In which language? Tom On Aug 5, 1:01 am, M. Edward (Ed) Borasky zn...@borasky- research.net wrote: Are there any open source libraries to connect to Streaming that use oAuth? -- M. Edward (Ed) Boraskyhttp://borasky-research.nethttp:// twitter.com/znmeb A mathematician is a device for turning coffee into theorems. - Paul Erdos
[twitter-dev] Firehose bandwidth requirements
Hi! I'm trying to find an estimation/report of the bandwidth requirements to download the firehose stream. Anyone here can share this information? Thanks! Gonzalo.
[twitter-dev] Re: request token/oauth token-alternate method
Also, OAuth oauth_consumer_key= instead of Oauth oauth_consumer_key=... in the authorization header as per Taylor, thanks...
Re: [twitter-dev] Firehose bandwidth requirements
You can estimate this yourself by multiplying the average tweets per day, a publicly available statistic, by the tweet size observable on the sample feed. You can also factor in growth, daily peak and event spikes, all also generally observable on the sampled feed. (Roughly 4:1, all in, over daily average) -John Kalucki http://twitter.com/jkalucki Twitter Inc. On Wed, Aug 4, 2010 at 7:44 PM, Gonzalo Larralde gonzalolarra...@gmail.com wrote: Hi! I'm trying to find an estimation/report of the bandwidth requirements to download the firehose stream. Anyone here can share this information? Thanks! Gonzalo.