0
var Request = require("request")
var options = {
url: option.apiUrl,
qs: {
apiKey: "T%2BLkADWTX0OzgMMDmEPHffxQNYcgNMyfYJcXyR0cl0%2BNe8w0g%3D%3D",
}
json: true
}
function handleResponse (error, response, body) {
console.log(response) //apiKey is changed to T%252BLkADWTX0OzgMMDmEPHffxQNYcgNMyfYJcXyR0cl0%252BNe8w0g%253D%253D
}
Request(options, handleResponse);
的apiKey改爲錯鍵。
我應該禁用字符串編碼加上要求QS哪個選項?
或什麼是另類的方式來獲得的Json API?