nl_tokens: Fill in parameters to help construct a request message . This function doesn t fill in every parameter . The accessor object should be like : { consumerKey : foo consumerSecret : bar accessorSecret : nurn token : krelm tokenSecret : blah } The accessorSecret property is optional .
pl_tokens: function completeRequest ( message , accessor ) { if ( message . method == null ) { message . method = "GET" ; } var <mask> = OAuth . getParameterMap ( message . parameters ) ; if ( map . oauth_consumer_key == null ) { OAuth . setParameter ( message , "oauth_consumer_key" , accessor . consumerKey || "" ) ; } if ( map . oauth_token == null && accessor . token != null ) { OAuth . setParameter ( message , "oauth_token" , accessor . token ) ; } if ( map . oauth_version == null ) { OAuth . setParameter ( message , "oauth_version" , "1.0" ) ; } if ( map . oauth_timestamp == null ) { OAuth . setParameter ( message , "oauth_timestamp" , OAuth . timestamp ( ) ) ; } if ( map . oauth_nonce == null ) { OAuth . setParameter ( message , "oauth_nonce" , OAuth . nonce ( 6 ) ) ; } OAuth . SignatureMethod . sign ( message , accessor ) ; }