开发者

OAuth authorization without Twitter login page

开发者 https://www.devze.com 2023-01-16 16:07 出处:网络
I use http://github.com/abraham/twitteroauth PHP library for reaching the Twitter REST API. My config file has credentials:

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

精彩评论

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