2017-02-24 255 views

回答

1

有必要產生以下參數oauth_signature

  • oauth_consumer_key
  • 的oauth_token
  • oauth_nonce
  • oauth_timestamp
  • oauth_signature_method
  • oauth_version
  • 所有PA查詢

接下來的rameters,準備插頭體

<body> = "oauth_nonce=" + oauth_nonce + "," + 

"oauth_signature_method=" + oauth_signature_method + "," + 

"oauth_token=" + urlencode(oauth_token) + "," + 

"oauth_timestamp=" + oauth_timestamp + "," + 

"oauth_consumer_key=" + oauth_consumer_key + "," + 

"oauth_signature=" + urlencode(oauth_signature) + "," + 

"oauth_version=" + oauth_version 

添加頁眉

"Authorization: <body>" 

,併發送一個請求