Tidying up a method comment
This commit is contained in:
@ -485,14 +485,17 @@ exports.OAuth.prototype.post= function(url, oauth_token, oauth_token_secret, pos
|
|||||||
*
|
*
|
||||||
* function(err, token, token_secret, parsedQueryString) {}
|
* function(err, token, token_secret, parsedQueryString) {}
|
||||||
*
|
*
|
||||||
* This method has optional parameters so can be called in the following 3 ways:
|
* This method has optional parameters so can be called in the following 2 ways:
|
||||||
*
|
*
|
||||||
* 1) Primary use case: Does a basic request with no extra parameters, using a POST
|
* 1) Primary use case: Does a basic request with no extra parameters
|
||||||
* getOAuthRequestToken( callbackFunction )
|
* getOAuthRequestToken( callbackFunction )
|
||||||
*
|
*
|
||||||
* 2) As above but allows for provision of extra parameters to be sent as part of the query to the server (POST).
|
* 2) As above but allows for provision of extra parameters to be sent as part of the query to the server.
|
||||||
* getOAuthRequestToken( extraParams, callbackFunction )
|
* getOAuthRequestToken( extraParams, callbackFunction )
|
||||||
*
|
*
|
||||||
|
* N.B. This method will HTTP POST verbs by default, if you wish to override this behaviour you will
|
||||||
|
* need to provide a requestTokenHttpMethod option when creating the client.
|
||||||
|
*
|
||||||
**/
|
**/
|
||||||
exports.OAuth.prototype.getOAuthRequestToken= function( extraParams, callback ) {
|
exports.OAuth.prototype.getOAuthRequestToken= function( extraParams, callback ) {
|
||||||
if( typeof extraParams == "function" ){
|
if( typeof extraParams == "function" ){
|
||||||
|
Reference in New Issue
Block a user