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');
453453 request . accept ( accept ) ;
454454 }
455455
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+ // }
461461
462462 // Attach previously saved cookies, if enabled
463463 if ( this . enableCookies ) {
Original file line number Diff line number Diff line change 305305 this . getEmailCampaign = function ( campaignId ) {
306306 return this . getEmailCampaignWithHttpInfo ( campaignId )
307307 . then ( function ( response_and_data ) {
308- return response_and_data . data ;
308+ return JSON . parse ( response_and_data . response . text ) ;
309309 } ) ;
310310 }
311311
You can’t perform that action at this time.
0 commit comments