Questions tagged «node-request»

9
将JSON传递到HTTP POST请求
我正在尝试使用nodejs和请求 [2] 向Google QPX Express API [1]发出HTTP POST请求。 我的代码如下所示: // create http request client to consume the QPX API var request = require("request") // JSON to be passed to the QPX Express API var requestData = { "request": { "slice": [ { "origin": "ZRH", "destination": "DUS", "date": "2014-12-02" } ], …
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.