Oauth/request token

跳转到: 导航, 搜索
(Parameters:)
(oauth/request_token)
第20行: 第20行:
 
* 参考OAuth协议第6章  
 
* 参考OAuth协议第6章  
 
* See Section 6 of the OAuth Core Specification for required parameters[http://oauth.net/core/1.0a]
 
* See Section 6 of the OAuth Core Specification for required parameters[http://oauth.net/core/1.0a]
 +
* oauth_consumer_key consumer_key
 +
* oauth_signature_method 签名方法,建议使用HMAC-SHA1
 +
* oauth_signature 签名值
 +
* oauth_timestamp 时间戳
 +
* oauth_nonce 单次值,随机字符串,防止重放攻击
 +
* 返回值包括未授权的Request Token和对应的Request Token Secret
 +
 +
  
 
===Usage notes:===
 
===Usage notes:===

2009年11月9日 (一) 16:16的版本

目录

oauth/request_token

通过访问 获取未授权的 Request Token


Allows a Consumer application to obtain an OAuth Request Token to request user authorization. This method fulfills Secion 6.1 of the OAuth 1.0 authentication flow.

URL:

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

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[1]
  • oauth_consumer_key consumer_key
  • oauth_signature_method 签名方法,建议使用HMAC-SHA1
  • oauth_signature 签名值
  • oauth_timestamp 时间戳
  • oauth_nonce 单次值,随机字符串,防止重放攻击
  • 返回值包括未授权的Request Token和对应的Request Token Secret


Usage notes:

  • Only ASCII oauth_nonce values are accepted.

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!