[twitter-dev] Re: Simple status update

2010-09-10 Thread Gerard M
@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

2010-09-09 Thread Gerard M
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


[twitter-dev] Curl question

2010-09-03 Thread Gerard M
I have a really small app that uses curl in a perl script..
automated stuff like updates, when emails were sent out, stuff like
that. It stopped sending tweets to my account about a day ago and
won't work from the command line. Does twitter now consider this stuff
an app I have to register for?? I can;t find any documentation on
any of this, just full-blown public apps.

Anyone know if I can use a system call from a perl script using curl
anymore or is this all gone?
What if I use http://api.twitter.com/statuses/update.xml instead?

Seems overcomplicated to something that was dead simple...

-- 
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

2010-09-03 Thread Gerard M
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


[twitter-dev] Re: Simple status update

2010-09-03 Thread Gerard M
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