dfp-lib
Version:
This project hosts the Node.JS client library for the SOAP-based DFP API at Google.
22 lines (21 loc) • 543 B
JavaScript
;
const request = require("request");
class RequestHandler {
constructor() {
}
post(options, callback) {
const requestOptions = {
url: options.url,
qs: options.qs,
form: options.form,
body: options.body,
time: options.time,
headers: options.headers
};
request.post(requestOptions, function (err, response, body) {
callback(err, response.toJSON());
});
}
}
exports.RequestHandler = RequestHandler;
;