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

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

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

      return this.callApi(
        '/emails/{emailId}/forward', 'POST',
        pathParams, queryParams, headerParams, formParams, postBody,
        authNames, contentTypes, accepts, returnType
      );
    }
/**
     * Forward email
     * Forward an existing email to new recipients.
     * @param {String} emailId ID of email
     * @param {ForwardEmailOptions} forwardEmailOptions forwardEmailOptions
     * @return {Promise}
     */
Forward email
Forward an existing email to new recipients.
@param {String} emailId ID of email
@param {ForwardEmailOptions} forwardEmailOptions forwardEmailOptions
@return {Promise}
Forward email Forward an existing email to new recipients . @param { String } emailId ID of email @param { ForwardEmailOptions } forwardEmailOptions forwardEmailOptions @return { Promise }
async forwardEmail(emailId, forwardEmailOptions) {
      let postBody = forwardEmailOptions;
      if (emailId === undefined || emailId === null) {
        throw new Error("Missing the required parameter 'emailId' when calling forwardEmail");
      }
      if (forwardEmailOptions === undefined || forwardEmailOptions === null) {
        throw new Error("Missing the required parameter 'forwardEmailOptions' when calling forwardEmail");
      }
      let pathParams = {
        'emailId': emailId
      };
      let queryParams = {
      };
      let headerParams = {
      };
      let formParams = {
      };
      let authNames = ['API_KEY'];
      let contentTypes = ['application/json'];
      let accepts = [];
      let returnType = null;
      return this.callApi(
        '/emails/{emailId}/forward', 'POST',
        pathParams, queryParams, headerParams, formParams, postBody,
        authNames, contentTypes, accepts, returnType
      );
    }
async forwardEmail ( emailId , forwardEmailOptions ) { let postBody = forwardEmailOptions ; if ( emailId === undefined || emailId === null ) { throw new Error ( "Missing the required parameter 'emailId' when calling forwardEmail" ) ; } if ( forwardEmailOptions === undefined || forwardEmailOptions === null ) { throw new Error ( "Missing the required parameter 'forwardEmailOptions' when calling forwardEmail" ) ; } let pathParams = { 'emailId' : emailId } ; let queryParams = { } ; let headerParams = { } ; let formParams = { } ; let authNames = [ 'API_KEY' ] ; let contentTypes = [ 'application/json' ] ; let accepts = [ ] ; let returnType = null ; return this . callApi ( '/emails/{emailId}/forward' , 'POST' , pathParams , queryParams , headerParams , formParams , postBody , authNames , contentTypes , accepts , returnType ) ; }
Forward email
 Forward an existing email to new recipients.
Forward email Forward an existing email to new recipients .
// verify the required parameter 'emailId' is set // verify the required parameter 'forwardEmailOptions' is set