Application info Application Name: gridtwit
Application Website: http://twitter.com/gridtwit Application Type: Client Default Access type: Read & Write 1.1.3 Request *Direct Token* * Step 1 *Direct user to Deny or Allow Request info example l method GET l url https://api.twitter.com/oauth/authorize?oauth_token =cHDrES6AaH75GEta5vrFnjOQd0tE5WbTybNyajlF4 l prm(parameter) NULL Response info example l response value Html content of the corresponding request url. * Step 2 *Get authenticity_token from html content Call the function twit_func_get_authenticity_token(…) * Step 3 *Submit Allow Request info example l method POST l url https://api.twitter.com/oauth/authorize l prm(parameter) authenticity_token=2d5b9b5b1eebb174f924f1f3681f0a505e2095b6&oauth_token =cHDrES6AaH75GEta5vrFnjOQd0tE5WbTybNyajlF4&session%5Busername_or_email%5D =gridtwit&session%5Bpassword%5D=123%2Bqaz Response info example l response value Html content of the corresponding request url. * Step 4 *Get authenticity_token from html content Call the function twit_func_get_direct_token_pin(…) Return info example l return value direct_token_pin = 4211033 Step End 1.1.4 Response *Direct Token* Response includes l oauth_verifier Response info example l response value oauth_verifier=4211033. Prompt: If the application type is a client, oauth_verifier's value is equal to the previous PIN code. 1.1.5 Request *Access Token* Request includes l oauth_consumer_key l oauth_token l oauth_signature_method l oauth_signature l oauth_timestamp l oauth_nonce l oauth_version l oauth_verifier Request info example l method GET l url https://api.twitter.com/oauth/access_token?oauth_consumer_key =6rC8fWi9ZVgbARFu2RBOMA&oauth_nonce=CgJ2cPjzBLG0BaKKB&oauth_signature_method =HMAC-SHA1&oauth_timestamp=1284540748&oauth_token =cHDrES6AaH75GEta5vrFnjOQd0tE5WbTybNyajlF4&oauth_version=1.0&oauth_signature =YNUkXzBP6n%2FP%2BdLHlMcbT8iofWg%3D&oauth_verifier=4211033 l prm(parameter) NULL 1.1.6 Response *Access Token* Response includes l oauth_token l oauth_token_secret l screen_name l user_id Response info example l response value oauth_token=190221802-e2RbnuQ9m5bNyhMU7hM5VTXAd3WCf43dqz2RbBGC& oauth_token_secret=8dDWu2NeaSI06GTldFRv1CC4QiaY75akjk397MWVAMM&user_id =190221802&screen_name=gridtwit -------------------------------------------------------------------------------------------------------------------------------------------------- 在 2010年9月17日 上午9:46,玉柱九天 <yuzhujiut...@gmail.com>写道: > You can refer to the attached file > "gridtwit_client_oauth_demo\liboauth-0.8.9\tests\gridtwit.c" > functiontwit_oaum_direct_token(...) > > > int twit_oaum_direct_token(const char *in_direct_token_url, const char > *in_direct_token_key, > char **out_direct_token_pin); > > > > ---------------------------------------------------------------------------------------------------------------------------------------------- > > 2010/9/17 VenkataRaviKumarPidikiti <venkata...@gmail.com> > > Hi experts, >> As per process register application as browser and doing r&D with API >> and also utilise API call in microsoft windows workflows.Some times >> get 401 error.then i tried to debug the application it asks >> credentials and provide the pin to enter. >> Basically i dont know where to enter pin >> please help me. >> thanks >> VenkataP >> >> -- >> 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?hl=en >> > > -- 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?hl=en