[twitter-dev] Re: Simple status update
@Marc Thank you! Looks easy enough.. will give it a shot G. On Sep 9, 12:22 pm, Marc Mims marc.m...@gmail.com wrote: * Gerard M g...@rivershark.com [100909 05:47]: Any Perl equivalent for three lines ? I can convert to PHP if needed, but it is a bit of a hassle... Yes. See the example code here:http://github.com/semifor/Net-Twitter/wiki/Net::Twitter-and-the-death... -Marc -- 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?hl=en
[twitter-dev] Re: Simple status update
Any Perl equivalent for three lines ? I can convert to PHP if needed, but it is a bit of a hassle... G. On Sep 3, 11:42 pm, Abraham Williams 4bra...@gmail.com wrote: On Fri, Sep 3, 2010 at 18:29, Gerard M g...@rivershark.com wrote: I can (well, used to) update using three lines: Here are three lines to tweet with OAuth: http://gist.github.com/564882 Abraham - Abraham Williams | Hacker Advocate |http://abrah.am @abraham |http://projects.abrah.am|http://blog.abrah.am This email is: [ ] shareable [x] ask first [ ] private. -- 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?hl=en
Re: [twitter-dev] Re: Simple status update
* Gerard M g...@rivershark.com [100909 05:47]: Any Perl equivalent for three lines ? I can convert to PHP if needed, but it is a bit of a hassle... Yes. See the example code here: http://github.com/semifor/Net-Twitter/wiki/Net::Twitter-and-the-death-of-Basic-Authentication -Marc -- 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?hl=en
[twitter-dev] Re: Simple status update
Thanks, that's exactly what I need! On 4 zář, 05:42, Abraham Williams 4bra...@gmail.com wrote: On Fri, Sep 3, 2010 at 18:29, Gerard M g...@rivershark.com wrote: I can (well, used to) update using three lines: Here are three lines to tweet with OAuth: http://gist.github.com/564882 Abraham - Abraham Williams | Hacker Advocate |http://abrah.am @abraham |http://projects.abrah.am|http://blog.abrah.am This email is: [ ] shareable [x] ask first [ ] private. -- 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?hl=en
[twitter-dev] Re: Simple status update
I posted a question similar except using perl.. All the subroutine does is update a twitter account using curl. All this OAuth stuff seems like it is shoveling a small driveway with a bulldozer! Updates are done on about 100 domains, so does that mean we have to register 100 apps and every time we put the updating on a new site, register that as well... Is there any Perl sample code or do you all just consider Perl old fart software? G. On Sep 3, 12:10 pm, Matt Harris thematthar...@twitter.com wrote: Hey Tomáš, There are a number of libraries on our developer resources site which handle OAuth in PHP: http://dev.twitter.com/pages/oauth_libraries#php Remember OAuth uses a consumer key and secret to identify an application, and a user token and secret for the user. This means you will need to have an application registered onhttp://dev.twitter.com/apps/newbefore you can Tweet using OAuth. When you have created your application there will be a button on the right of the screen labelled My Access Token. In there you will find the user token and secret that will identify you using OAuth. Some examples of using the single token can be found here: http://dev.twitter.com/pages/oauth_single_token Hope that helps, Matt On Thu, Sep 2, 2010 at 5:26 PM, Tomáš Pospíšil pospis...@gmail.com wrote: Hi, I'm trying to update my twitter status every time, when new post appears on my website. I found several classes (in PHP), but none of them works, because they don't implement OAuth. Classes which implement OAuth let anybody update their status through my page. But that is not the functionality I need. Maybe I'm blind, but there wasn't any field or variable, where i could set my username, password and new status message and let the class do the rest of the work... Please, if you know about some class, that can do what I need, or at least some tutorial let me know, it would be very helpful. Thank you! -- 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?hl=en -- Matt Harris Developer Advocate, Twitterhttp://twitter.com/themattharris -- 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?hl=en
Re: [twitter-dev] Re: Simple status update
I posted a question similar except using perl.. All the subroutine does is update a twitter account using curl. All this OAuth stuff seems like it is shoveling a small driveway with a bulldozer! Updates are done on about 100 domains, so does that mean we have to register 100 apps and every time we put the updating on a new site, register that as well... Is there any Perl sample code or do you all just consider Perl old fart software? You're welcome to look at TTYtter: http://www.floodgap.com/software/ttytter/ This is pure-Perl and uses its own built-in HMAC and SHA-1 algorithms; it has no dependencies other than cURL. FTR, I am generally considered an old fart (ask Ed Finkler). -- personal: http://www.cameronkaiser.com/ -- Cameron Kaiser * Floodgap Systems * www.floodgap.com * ckai...@floodgap.com -- UBAX vs lbh ybir EBG-13 -- 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?hl=en
Re: [twitter-dev] Re: Simple status update
I suppose I should write a Twitter client in gforth just to be an older fart than the rest of you, eh? ;-) -- 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 Cameron Kaiser spec...@floodgap.com: I posted a question similar except using perl.. All the subroutine does is update a twitter account using curl. All this OAuth stuff seems like it is shoveling a small driveway with a bulldozer! Updates are done on about 100 domains, so does that mean we have to register 100 apps and every time we put the updating on a new site, register that as well... Is there any Perl sample code or do you all just consider Perl old fart software? You're welcome to look at TTYtter: http://www.floodgap.com/software/ttytter/ This is pure-Perl and uses its own built-in HMAC and SHA-1 algorithms; it has no dependencies other than cURL. FTR, I am generally considered an old fart (ask Ed Finkler). -- personal: http://www.cameronkaiser.com/ -- Cameron Kaiser * Floodgap Systems * www.floodgap.com * ckai...@floodgap.com -- UBAX vs lbh ybir EBG-13 -- 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?hl=en -- 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?hl=en
[twitter-dev] Re: Simple status update
Cameron, Thank you for replying.. I looked at your code and was very quickly overwhelmed. I can (well, used to) update using three lines: $twitter_tweet = tweet out something here; $twitter_api = 'curl --basic --user name:password --data status='. $twitter_tweet.' http://twitter.com/statuses/update.xml /dev/null 2 /dev/null'; system ($twitter_api); I have no desire to rule the world with twitter and all this authentication stuff now is like shoveling a small walkway with a bulldozer! I just want to quickly update my own twitter account. It can't be this hard, can it?? Can't I just grab a key and put it in the mix here? I just want the same functionality I had with those three little lines G. On Sep 3, 5:01 pm, Cameron Kaiser spec...@floodgap.com wrote: I posted a question similar except using perl.. All the subroutine does is update a twitter account using curl. All this OAuth stuff seems like it is shoveling a small driveway with a bulldozer! Updates are done on about 100 domains, so does that mean we have to register 100 apps and every time we put the updating on a new site, register that as well... Is there any Perl sample code or do you all just consider Perl old fart software? You're welcome to look at TTYtter: http://www.floodgap.com/software/ttytter/ This is pure-Perl and uses its own built-in HMAC and SHA-1 algorithms; it has no dependencies other than cURL. FTR, I am generally considered an old fart (ask Ed Finkler). -- personal:http://www.cameronkaiser.com/-- Cameron Kaiser * Floodgap Systems *www.floodgap.com* ckai...@floodgap.com -- UBAX vs lbh ybir EBG-13 -- 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?hl=en
Re: [twitter-dev] Re: Simple status update
Thank you for replying.. I looked at your code and was very quickly overwhelmed. I can (well, used to) update using three lines: $twitter_tweet = tweet out something here; $twitter_api = 'curl --basic --user name:password --data status='. $twitter_tweet.' http://twitter.com/statuses/update.xml /dev/null 2 /dev/null'; system ($twitter_api); If that's all you really want, and you want to do this with a simple black-box tool and/or with Perl, then you have three options, from my perspective: 1. plug class=shameless Once you have your app key/secret and user token/secret (TTYtter can step you through this), then you can simply post updates with ttytter -status=Your update TTYtter just needs cURL, which you seem to already have. It has its own hash and signing algorithms built-in. /plug 2. Decklin's curlicue tool is a wrapper around cURL with all of the OAuth dance. You will need OpenSSL, which is free, for the hash and signing algorithms. Then you can use something reasonably similar to your code above. 3. You can use Net::Twitter and drive it yourself. CPAN will help you download the various dependencies it has. Net::Twitter is simple to use, although it is completely different than what you already have. -- personal: http://www.cameronkaiser.com/ -- Cameron Kaiser * Floodgap Systems * www.floodgap.com * ckai...@floodgap.com -- FORTUNE: The moon is in Venus' house. Shortly, there will be planetoids. --- -- 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?hl=en
Re: [twitter-dev] Re: Simple status update
On Fri, Sep 3, 2010 at 18:29, Gerard M g...@rivershark.com wrote: I can (well, used to) update using three lines: Here are three lines to tweet with OAuth: http://gist.github.com/564882 Abraham - Abraham Williams | Hacker Advocate | http://abrah.am @abraham | http://projects.abrah.am | http://blog.abrah.am This email is: [ ] shareable [x] ask first [ ] private. -- 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?hl=en
Re: [twitter-dev] Re: Simple status update
-- 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 Cameron Kaiser spec...@floodgap.com: Thank you for replying.. I looked at your code and was very quickly overwhelmed. I can (well, used to) update using three lines: $twitter_tweet = tweet out something here; $twitter_api = 'curl --basic --user name:password --data status='. $twitter_tweet.' http://twitter.com/statuses/update.xml /dev/null 2 /dev/null'; system ($twitter_api); If that's all you really want, and you want to do this with a simple black-box tool and/or with Perl, then you have three options, from my perspective: 1. plug class=shameless Once you have your app key/secret and user token/secret (TTYtter can step you through this), then you can simply post updates with ttytter -status=Your update TTYtter just needs cURL, which you seem to already have. It has its own hash and signing algorithms built-in. /plug 2. Decklin's curlicue tool is a wrapper around cURL with all of the OAuth dance. You will need OpenSSL, which is free, for the hash and signing algorithms. Then you can use something reasonably similar to your code above. 3. You can use Net::Twitter and drive it yourself. CPAN will help you download the various dependencies it has. Net::Twitter is simple to use, although it is completely different than what you already have. Or Net::Twitter::Lite - fewer dependencies and slightly less configurable but does oAuth and all the Search and REST API interfacing. -- personal: http://www.cameronkaiser.com/ -- Cameron Kaiser * Floodgap Systems * www.floodgap.com * ckai...@floodgap.com -- FORTUNE: The moon is in Venus' house. Shortly, there will be planetoids. --- -- 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?hl=en -- 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?hl=en