lib/index.js
/**
     * Initialize mws-advanced with your MWS access keys, merchantId, optionally authtoken, host, port
     * If accessKeyId, secretAccessKey, and/or merchantId are not provided, they will be read from
     * the environment variables MWS_ACESS_KEY, MWS_SECRET_ACCESS_KEY, and MWS_MERCHANT_ID respectively
     *
     * @public
     * @example
     * const mws = MWS.init({ region: 'NA', accessKeyId: '1234', secretAccessKey: '2345', merchantId: '1234567890' });
     * const mws = MWS.init({ region: 'EU', accessKeyId, ... });
     * const mws = MWS.init({ authToken: 'qwerty', accessKeyId, ...});
     * const mws = MWS.init({ host: 'alternate-mws-server.com', accessKeyId, ... });
     * @param {object} config Contains your MWS Access Keys/Tokens and options to configure the API
     * @param {string} [config.accessKeyId=process.env.MWS_ACCESS_KEY] Your MWS Access Key
     * @param {string} [config.secretAccessKey=process.env.MWS_SECRET_ACCESS_KEY] Your MWS Secret Access Key
     * @param {string} [config.merchantId=process.env.MWS_MERCHANT_ID] Your MWS Merchant ID
     * @param {string} [config.authToken] If making a call for a third party account, the Auth Token provided
     *                           for the third party account
     * @param {string} [config.region='NA'] One of the Amazon regions as specified in https://docs.developer.amazonservices.com/en_US/dev_guide/DG_Endpoints.html
     * @param {string} [config.host='mws.amazonservices.com'] Set MWS host server name, see https://docs.developer.amazonservices.com/en_US/dev_guide/DG_Endpoints.html
     * @param {number} [config.port=443] Set MWS host port
     * @returns {mws-simple} - The mws-simple instance used to communicate with the API
     */
Initialize mws-advanced with your MWS access keys, merchantId, optionally authtoken, host, port
If accessKeyId, secretAccessKey, and/or merchantId are not provided, they will be read from
the environment variables MWS_ACESS_KEY, MWS_SECRET_ACCESS_KEY, and MWS_MERCHANT_ID respectively


Initialize mws - advanced with your MWS access keys merchantId optionally authtoken host port If accessKeyId secretAccessKey and / or merchantId are not provided they will be read from the environment variables MWS_ACESS_KEY MWS_SECRET_ACCESS_KEY and MWS_MERCHANT_ID respectively
init({
        region = 'NA',
        accessKeyId = process.env.MWS_ACCESS_KEY,
        secretAccessKey = process.env.MWS_SECRET_ACCESS_KEY,
        merchantId = process.env.MWS_MERCHANT_ID,
        authToken,
        host = MWS_ENDPOINTS[region] || 'mws.amazonservices.com',
        port,
    } = {}) {
        this.mws = new MWS({
            accessKeyId,
            secretAccessKey,
            merchantId,
            authToken,
            host,
            port,
        });
        return this.mws;
    }
init ( { region = 'NA' , accessKeyId = process . env . MWS_ACCESS_KEY , secretAccessKey = process . env . MWS_SECRET_ACCESS_KEY , merchantId = process . env . MWS_MERCHANT_ID , authToken , host = MWS_ENDPOINTS [ region ] || 'mws.amazonservices.com' , port , } = { } ) { this . mws = new MWS ( { accessKeyId , secretAccessKey , merchantId , authToken , host , port , } ) ; return this . mws ; }
Initialize mws-advanced with your MWS access keys, merchantId, optionally authtoken, host, port
 If accessKeyId, secretAccessKey, and/or merchantId are not provided, they will be read from
 the environment variables MWS_ACESS_KEY, MWS_SECRET_ACCESS_KEY, and MWS_MERCHANT_ID respectively
Initialize mws - advanced with your MWS access keys merchantId optionally authtoken host port If accessKeyId secretAccessKey and / or merchantId are not provided they will be read from the environment variables MWS_ACESS_KEY MWS_SECRET_ACCESS_KEY and MWS_MERCHANT_ID respectively