We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Code below is work!
const rest_clients = require('restify-clients'); let client= rest_clients.createJsonClient({ url: 'https://graph.facebook.com', version: "3.2", query: { access_token: "xxx" } }); client.get("/xxxxxxyyyy", function (err, req, res, obj) { if (err) { console.log(err); reject(err); } console.log(obj); });
but if I have more query in a request then.
let options = {path:"/xxxxxxyyyy", query:{fields:"name,gender}}; client.get(options , function (err, req, res, obj) { if (err) { console.log(err); reject(err); } console.log(obj); });
this will not work since access_token query is gone.
The text was updated successfully, but these errors were encountered:
What if you’d copy the global query?
const query = Object.assign({ fields: "name,gender" }, client.query) const options = { path: "/xxxxxxyyyy", query: query }
Sorry, something went wrong.
No branches or pull requests
Code below is work!
but if I have more query in a request then.
this will not work since access_token query is gone.
The text was updated successfully, but these errors were encountered: