you can refer to the demo program "gridtwit":
http://code.google.com/p/gridtwit/

It details oauth authentication flow and coding(c++, liboauth).




--------------------------------------------------------------------------------------------------------------------------------
2010/9/24 Taylor Singletary <[email protected]>

> Hi Mike,
>
> We have a fairly easy path to acquiring an access token just for your own
> account/application combination. You can find out more about it at
> http://dev.twitter.com/pages/oauth_single_token
>
> Taylor
>
>
> On Thu, Sep 23, 2010 at 10:33 AM, Mike the Pike <[email protected]>wrote:
>
>> require_once('twitteroauth.php');
>> $connection = new TwitterOAuth('app consumer key', 'app consumer
>> secret', 'my access token', 'my access token secret');
>> $connection->format = 'xml';
>> $result = $connection->post('statuses/update', array('status' =>
>> $message));
>> $resultArray = $connection->http_info;
>>
>>
>> This is my script. I stole it from someone on this group. Much
>> appreciated. I registered my app and got the consumer key and secret
>> consumer key. As I understand it I also require 2 tokens to
>> authenticate with oauth and typically from the apps I've already built
>> these are generated when I log in. However, i don't want to have to
>> log in there I just want to genereate a feed that I can compare to a
>> criteria and output should it match that criteria. This script looks
>> promising but how do I get those tokens?
>>
>> Any help would be appreciated.
>>
>>
>> Thanks,
>> Mike the Pike
>>
>> --
>> 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
>>
>
>  --
> 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
>

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

Reply via email to