Skip to content
This repository has been archived by the owner on Jan 20, 2024. It is now read-only.

Commit

Permalink
Added OAuth2 authentication support
Browse files Browse the repository at this point in the history
Added OAuth2 authentication support
  • Loading branch information
manivinesh authored and sfdrogojan committed May 20, 2019
1 parent 5045fe3 commit 451511e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions lib/fuel-soap.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,10 @@ FuelSoap.prototype.soapRequest = function(options, callback) {
return;
}

if(this.AuthClient.authVersion === 2 && body.soap_instance_url) {
requestOptions.uri = body.soap_instance_url + 'Service.asmx';
}

retry = options.retry || false;
authOptions = clone(options.auth);

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "fuel-soap",
"version": "2.1.0",
"version": "2.2.0",
"description": "Node library for performing SOAP API calls to Salesforce Marketing Cloud (formerly ExactTarget).",
"main": "./lib/fuel-soap.js",
"scripts": {
Expand Down

0 comments on commit 451511e

Please sign in to comment.