@gitchrisqueen/tdameritrade-api-js-client
Version:
TD Ameritrade API integration for node.js
15 lines (12 loc) • 536 B
JavaScript
;
var utils = require('../utils/writer.js');
var Authentication = require('../service/AuthenticationService');
module.exports.oauth2TokenPOST = function oauth2TokenPOST (req, res, next, grant_type, refresh_token, access_type, code, client_id, redirect_uri) {
Authentication.oauth2TokenPOST(grant_type, refresh_token, access_type, code, client_id, redirect_uri)
.then(function (response) {
utils.writeJson(res, response);
})
.catch(function (response) {
utils.writeJson(res, response);
});
};