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);
Hi,
I the apiKey is changed to wrong Key.
What option should I add for disable string encode on request qs?
or What is alternative way to get Json API?
via Jido Park
No comments:
Post a Comment