app.post('/Addbus',function(req,res){
request('http://api.seatseller.travel/sources?oauth_consumer_key=************&oauth_signature_method=HMAC-SHA1&oauth_timestamp=1513139815&oauth_nonce=G7Ni53&oauth_version=1.0&oauth_signature=rqYqPAGRRaJhOD2SSDelqnnIhS8=',
function (error, response) {
if (!error) {
var x1 = JSON.parse(JSON.stringify(response));
res.json(x1);
}
})
});
这里我静态地给出oauth_signature_method
和时间戳,如何动态地给出值。