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.