Re: [twitter-dev] Re: oAuth and applications that run in the background

2010-09-09 Thread Abraham Williams
You can use a consumer pair in multiple scripts. If they are posting tweets
keep in mind that it won't make sense to have Bob's Apple Stand posting
tweets for Pete's Orange Cart.

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.


On Wed, Sep 8, 2010 at 21:52, marvMcK marvinmcklow...@gmail.com wrote:

 Abraham, thanks for the link. Just to be clear: I am assuming that
 CONSUMER_KEY, CONSUMER_SECRET are specific to one application, but I
 can use them with ANY application, or do I have to register each
 application (in this case PHP script), and use the keys specific to
 it?

 On Sep 8, 8:40 pm, Abraham Williams 4bra...@gmail.com wrote:
  Here is some more info about using an access token for a single account:
 http://dev.twitter.com/pages/oauth_single_token
 
  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.
 
  On Wed, Sep 8, 2010 at 20:34, Cameron Kaiser spec...@floodgap.com
 wrote:
I have an application (PHP script), that runs as a CRON job on a
 Linux
server. It uses cURL and basic authentication to retrieve users
profiles and statuses.
 
Now that basic authentication is no longer supported, I need to
 switch
to oAuth, but with oAuth, there's a level of interactivity with
Twitter, to login. This is not an option for this script, since it
 has
no user interface.
 
Any ideas how to proceed?
 
   You need to get your own app key and token from dev.twitter.com. With
   that,
   you can plug it into any number of OAuth tools. Since you are using
 PHP,
   Abraham's Twitteroauth would be the best bet (see
 
  http://github.com/abraham/twitteroauth
 
   ).
 
   --
    personal:
  http://www.cameronkaiser.com/--
Cameron Kaiser * Floodgap Systems *www.floodgap.com*
   ckai...@floodgap.com
   -- FORTUNE: You will feel gypped by this fortune.
   -
 
   --
   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 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: oAuth and applications that run in the background

2010-09-08 Thread marvMcK
Abraham, thanks for the link. Just to be clear: I am assuming that
CONSUMER_KEY, CONSUMER_SECRET are specific to one application, but I
can use them with ANY application, or do I have to register each
application (in this case PHP script), and use the keys specific to
it?

On Sep 8, 8:40 pm, Abraham Williams 4bra...@gmail.com wrote:
 Here is some more info about using an access token for a single 
 account:http://dev.twitter.com/pages/oauth_single_token

 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.

 On Wed, Sep 8, 2010 at 20:34, Cameron Kaiser spec...@floodgap.com wrote:
   I have an application (PHP script), that runs as a CRON job on a Linux
   server. It uses cURL and basic authentication to retrieve users
   profiles and statuses.

   Now that basic authentication is no longer supported, I need to switch
   to oAuth, but with oAuth, there's a level of interactivity with
   Twitter, to login. This is not an option for this script, since it has
   no user interface.

   Any ideas how to proceed?

  You need to get your own app key and token from dev.twitter.com. With
  that,
  you can plug it into any number of OAuth tools. Since you are using PHP,
  Abraham's Twitteroauth would be the best bet (see

         http://github.com/abraham/twitteroauth

  ).

  --
   personal:
 http://www.cameronkaiser.com/--
   Cameron Kaiser * Floodgap Systems *www.floodgap.com*
  ckai...@floodgap.com
  -- FORTUNE: You will feel gypped by this fortune.
  -

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