async uploadAttachmentBytes(opts) {
      opts = opts || {};
      let postBody = opts['byteArray'];

      let pathParams = {
      };
      let queryParams = {
        'String': opts['_string'],
        'filename': opts['filename']
      };
      let headerParams = {
      };
      let formParams = {
      };

      let authNames = ['API_KEY'];
      let contentTypes = ['application/octet-stream'];
      let accepts = ['application/json'];
      let returnType = ['String'];

      return this.callApi(
        '/attachments/bytes', 'POST',
        pathParams, queryParams, headerParams, formParams, postBody,
        authNames, contentTypes, accepts, returnType
      );
    }
/**
     * Upload an attachment for sending using file byte stream input octet stream. Returns an array whose first element is the ID of the uploaded attachment.
     * Email attachments are essentially files with meta data. Files are byte arrays and the meta data is a content type and a filename. These properties allow email clients to display the filename and icon etc. When sending emails with attachments first upload each attachment with an upload endpoint. Record the returned attachment ID and use it with subsequent email sending. For legacy reasons the ID is returned as the first element in an array. Only a single ID is ever returned. To send the attachments pass a list of attachment IDs with `SendEmailOptions` when sending an email. Using the upload endpoints prior to sending mean attachments can easily be reused.
     * @param {Object} opts Optional parameters
     * @param {String} opts._string Optional contentType for file. For instance `application/pdf`
     * @param {String} opts.filename Optional filename to save upload with
     * @param {Blob} opts.byteArray Byte array request body
     * @return {Promise<Array.<String>>}
     */
Upload an attachment for sending using file byte stream input octet stream. Returns an array whose first element is the ID of the uploaded attachment.
Email attachments are essentially files with meta data. Files are byte arrays and the meta data is a content type and a filename. These properties allow email clients to display the filename and icon etc. When sending emails with attachments first upload each attachment with an upload endpoint. Record the returned attachment ID and use it with subsequent email sending. For legacy reasons the ID is returned as the first element in an array. Only a single ID is ever returned. To send the attachments pass a list of attachment IDs with `SendEmailOptions` when sending an email. Using the upload endpoints prior to sending mean attachments can easily be reused.
@param {Object} opts Optional parameters
@param {String} opts._string Optional contentType for file. For instance `application/pdf`
@param {String} opts.filename Optional filename to save upload with
@param {Blob} opts.byteArray Byte array request body
@return {Promise>}
Upload an attachment for sending using file byte stream input octet stream . Returns an array whose first element is the ID of the uploaded attachment . Email attachments are essentially files with meta data . Files are byte arrays and the meta data is a content type and a filename . These properties allow email clients to display the filename and icon etc . When sending emails with attachments first upload each attachment with an upload endpoint . Record the returned attachment ID and use it with subsequent email sending . For legacy reasons the ID is returned as the first element in an array . Only a single ID is ever returned . To send the attachments pass a list of attachment IDs with ` SendEmailOptions ` when sending an email . Using the upload endpoints prior to sending mean attachments can easily be reused . @param { Object } opts Optional parameters @param { String } opts . _string Optional contentType for file . For instance ` application / pdf ` @param { String } opts . filename Optional filename to save upload with @param { Blob } opts . byteArray Byte array request body @return { Promise > }
async uploadAttachmentBytes(opts) {
      opts = opts || {};
      let postBody = opts['byteArray'];
      let pathParams = {
      };
      let queryParams = {
        'String': opts['_string'],
        'filename': opts['filename']
      };
      let headerParams = {
      };
      let formParams = {
      };
      let authNames = ['API_KEY'];
      let contentTypes = ['application/octet-stream'];
      let accepts = ['application/json'];
      let returnType = ['String'];
      return this.callApi(
        '/attachments/bytes', 'POST',
        pathParams, queryParams, headerParams, formParams, postBody,
        authNames, contentTypes, accepts, returnType
      );
    }
async uploadAttachmentBytes ( opts ) { opts = opts || { } ; let postBody = opts [ 'byteArray' ] ; let pathParams = { } ; let queryParams = { 'String' : opts [ '_string' ] , 'filename' : opts [ 'filename' ] } ; let headerParams = { } ; let formParams = { } ; let authNames = [ 'API_KEY' ] ; let contentTypes = [ 'application/octet-stream' ] ; let accepts = [ 'application/json' ] ; let returnType = [ 'String' ] ; return this . callApi ( '/attachments/bytes' , 'POST' , pathParams , queryParams , headerParams , formParams , postBody , authNames , contentTypes , accepts , returnType ) ; }
Upload an attachment for sending using file byte stream input octet stream.
Upload an attachment for sending using file byte stream input octet stream .