async downloadAttachmentBase64(attachmentId, emailId) {
      let postBody = null;
      // verify the required parameter 'attachmentId' is set
      if (attachmentId === undefined || attachmentId === null) {
        throw new Error("Missing the required parameter 'attachmentId' when calling downloadAttachmentBase64");
      }
      // verify the required parameter 'emailId' is set
      if (emailId === undefined || emailId === null) {
        throw new Error("Missing the required parameter 'emailId' when calling downloadAttachmentBase64");
      }

      let pathParams = {
        'attachmentId': attachmentId,
        'emailId': emailId
      };
      let queryParams = {
      };
      let headerParams = {
      };
      let formParams = {
      };

      let authNames = ['API_KEY'];
      let contentTypes = [];
      let accepts = ['application/json'];
      let returnType = DownloadAttachmentDto;

      return this.callApi(
        '/emails/{emailId}/attachments/{attachmentId}/base64', 'GET',
        pathParams, queryParams, headerParams, formParams, postBody,
        authNames, contentTypes, accepts, returnType
      );
    }
/**
     * Get email attachment as base64 encoded string (alternative to binary responses)
     * Returns the specified attachment for a given email as a base 64 encoded string. The response type is application/json. This method is similar to the `downloadAttachment` method but allows some clients to get around issues with binary responses.
     * @param {String} attachmentId ID of attachment
     * @param {String} emailId ID of email
     * @return {Promise<DownloadAttachmentDto>}
     */
Get email attachment as base64 encoded string (alternative to binary responses)
Returns the specified attachment for a given email as a base 64 encoded string. The response type is application/json. This method is similar to the `downloadAttachment` method but allows some clients to get around issues with binary responses.
@param {String} attachmentId ID of attachment
@param {String} emailId ID of email
@return {Promise}
Get email attachment as base64 encoded string ( alternative to binary responses ) Returns the specified attachment for a given email as a base 64 encoded string . The response type is application / json . This method is similar to the ` downloadAttachment ` method but allows some clients to get around issues with binary responses . @param { String } attachmentId ID of attachment @param { String } emailId ID of email @return { Promise }
async downloadAttachmentBase64(attachmentId, emailId) {
      let postBody = null;
      if (attachmentId === undefined || attachmentId === null) {
        throw new Error("Missing the required parameter 'attachmentId' when calling downloadAttachmentBase64");
      }
      if (emailId === undefined || emailId === null) {
        throw new Error("Missing the required parameter 'emailId' when calling downloadAttachmentBase64");
      }
      let pathParams = {
        'attachmentId': attachmentId,
        'emailId': emailId
      };
      let queryParams = {
      };
      let headerParams = {
      };
      let formParams = {
      };
      let authNames = ['API_KEY'];
      let contentTypes = [];
      let accepts = ['application/json'];
      let returnType = DownloadAttachmentDto;
      return this.callApi(
        '/emails/{emailId}/attachments/{attachmentId}/base64', 'GET',
        pathParams, queryParams, headerParams, formParams, postBody,
        authNames, contentTypes, accepts, returnType
      );
    }
async downloadAttachmentBase64 ( attachmentId , emailId ) { let postBody = null ; if ( attachmentId === undefined || attachmentId === null ) { throw new Error ( "Missing the required parameter 'attachmentId' when calling downloadAttachmentBase64" ) ; } if ( emailId === undefined || emailId === null ) { throw new Error ( "Missing the required parameter 'emailId' when calling downloadAttachmentBase64" ) ; } let pathParams = { 'attachmentId' : attachmentId , 'emailId' : emailId } ; let queryParams = { } ; let headerParams = { } ; let formParams = { } ; let authNames = [ 'API_KEY' ] ; let contentTypes = [ ] ; let accepts = [ 'application/json' ] ; let returnType = DownloadAttachmentDto ; return this . callApi ( '/emails/{emailId}/attachments/{attachmentId}/base64' , 'GET' , pathParams , queryParams , headerParams , formParams , postBody , authNames , contentTypes , accepts , returnType ) ; }
Get email attachment as base64 encoded string (alternative to binary responses)
 Returns the specified attachment for a given email as a base 64 encoded string.
Get email attachment as base64 encoded string ( alternative to binary responses ) Returns the specified attachment for a given email as a base 64 encoded string .
// verify the required parameter 'attachmentId' is set // verify the required parameter 'emailId' is set