views:

88

answers:

2

I use PHP Lib to support OAuth for Twitter's REST API http://github.com/abraham/twitteroauth . I have config file:

<?php
$consumer_key = 'xxxxxxxxxxxxx';
$consumer_secret = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx';
$login = 'xxx';
$passwd = 'xxx';
?>

How do I get oauth_token and oauth_token_secret? I do not want to use the login page. All actions should be automatic.

alt text

+3  A: 

As the comments state, you can't do this. Once the you have authorised, you can then store the returns and use them in all your calls, keeping your connection "persistant"

DavidYell
Not sure why I got a downvote, but to backup my answer, http://stackoverflow.com/questions/3521050/cron-automated-twitter-api-access
DavidYell
A: 

go to http://dev.twitter.com/apps and click on your app

then, on the right side click on "My Access Tokens"

d3str0y