File tree Expand file tree Collapse file tree 2 files changed +3
-12
lines changed Expand file tree Collapse file tree 2 files changed +3
-12
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ var DocuSignError = dsUtils.DocuSignError;
21
21
exports . getLoginInfo = function ( email , password , callback ) {
22
22
var options = {
23
23
method : 'GET' ,
24
- url : dsUtils . getApiUrl ( ) + '/login_information' ,
24
+ url : dsUtils . getApiUrl ( ) + '/login_information?include_account_id_guid=true ' ,
25
25
headers : {
26
26
'X-DocuSign-Authentication' : JSON . stringify ( {
27
27
Username : email ,
Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ var docusign = (function () {
67
67
}
68
68
69
69
function createClientBase ( authInfo , callback ) {
70
- var accountId = authInfo . accountId ;
70
+ var accountId = authInfo . accountIdGuid ;
71
71
var baseUrl = authInfo . baseUrl ;
72
72
var accessToken = authInfo . accessToken ;
73
73
@@ -89,19 +89,10 @@ var docusign = (function () {
89
89
}
90
90
91
91
function createClient ( email , password , callback ) {
92
- auth . getAPIToken ( email , password , function ( err , response ) {
92
+ auth . getAPIToken ( email , password , function ( err , authInfo ) {
93
93
if ( err ) {
94
94
return callback ( err ) ;
95
95
}
96
- var accountId = response . accountId ;
97
- var baseUrl = response . baseUrl ;
98
- var accessToken = response . accessToken ;
99
- var authInfo = {
100
- accountId : accountId ,
101
- baseUrl : baseUrl ,
102
- accessToken : accessToken
103
- } ;
104
-
105
96
createClientBase ( authInfo , callback ) ;
106
97
} ) ;
107
98
}
You can’t perform that action at this time.
0 commit comments