Oauth/authorize

跳转到: 导航, 搜索

目录

oauth/authorize

获得Request Token之后,需要请求用户授权该Request Token

Allows a Consumer application to use an OAuth Request Token to request user authorization. This method fulfills Secion 6.2 of the OAuth 1.0 authentication flow. Desktop applications must use this method (and cannot use oauth/authenticate).

URL:

http://api.t.sina.com.cn/oauth/authorize

Formats:

OAuth HTTP Authorization Scheme

HTTP Method(s):

GET

API rate limited (about rate limiting):

FALSE

Parameters:

  • 参考OAuth 的第6章
  • See Section 6 of the OAuth Core Specification for required parameters

Usage notes:

  • Sending the parameter oauth_callback=oob will force the PIN-based desktop flow.

Usage examples:

PHP:
TwitterOAuthLib; documentation; live demo, by @abraham
epicode; documentation; by @jmathai
PHP PECL Twitter example
Python:
Google App Engine example; live demo; by @tav and @tweetpros
Django example; by @dougireton
Ruby: 
Twitter Ruby on Rails OAuth tutorial
OAuth REST API client library; live demo, by @moomerman
.NET
OAuth with .NET; live demo, by @swhitley 
        Do you have an example to share in the language of your choice? Please share!