开发者

OAuth authorization without Twitter login page

I use http://github.com/abraham/twitteroauth PHP library for reaching the Twitter REST API. My config file has credentials:

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

Is it possible to get oauth_token and 开发者_C百科oauth_token_secret without showing the Twitter login page?

OAuth authorization without Twitter login page


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"


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

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜