File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -453,11 +453,11 @@ const pkgJson = require('../package.json');
453
453
request . accept ( accept ) ;
454
454
}
455
455
456
- if ( returnType === 'Blob' ) {
457
- request . responseType ( 'blob' ) ;
458
- } else if ( returnType === 'String' ) {
459
- request . responseType ( 'string' ) ;
460
- }
456
+ // if (returnType === 'Blob') {
457
+ // request.responseType('blob');
458
+ // } else if (returnType === 'String') {
459
+ // request.responseType('string');
460
+ // }
461
461
462
462
// Attach previously saved cookies, if enabled
463
463
if ( this . enableCookies ) {
Original file line number Diff line number Diff line change 305
305
this . getEmailCampaign = function ( campaignId ) {
306
306
return this . getEmailCampaignWithHttpInfo ( campaignId )
307
307
. then ( function ( response_and_data ) {
308
- return response_and_data . data ;
308
+ return JSON . parse ( response_and_data . response . text ) ;
309
309
} ) ;
310
310
}
311
311
You can’t perform that action at this time.
0 commit comments