Oauth/authorize

跳转到: 导航, 搜索
(创建新页面为 '== oauth/authorize == 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 …')
 
(oauth/authorize)
第1行: 第1行:
 
== 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).
 
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).
  

2009年11月6日 (五) 11:15的版本

目录

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:

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