Socket
Socket
Sign inDemoInstall

mws-finances-sdk-promises

Package Overview
Dependencies
52
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    mws-finances-sdk-promises

Amazon Marketplace Web Services client with support for all api calls (including Finances API), using ES6 Promises.


Version published
Weekly downloads
4
increased by100%
Maintainers
1
Install size
5.42 MB
Created
Weekly downloads
 

Readme

Source

mws-finances-sdk-promises

Originally forked from [mws-sdk-promises)(https://github.com/vedmalex/mws-sdk)

Modification: MWS Finance API support added

Example

Initialize

var MWS = require('mws-sdk-promises'),
    client = new MWS.Client(
      'accessKeyId',
      'secretAccessKey',
      'merchantId',
      {
        // Optional Auth Token when using delegated Developer access.
        authToken: 'amzn.mws...',
        // request options (https://github.com/request/request#requestoptions-callback)
        requestOpts: {
          proxy: 'http://PROXY_HOST:PROXY_PORT',
          encoding: null
        }
      }
    ),
    MarketplaceId = "ATVPDKIKX0DER";

now you can use it


ListFinancialEvents(client, {
      PostedAfter : '2018-08-01'
    })
    .catch(function(error) {
      console.error("error: " + error);
    })
    .then(function(RESULT){
            callback(null, RESULT);
            return;
    });
    
    
function ListFinancialEvents(client, args) {
        var req = MWS.Finances.requests.ListFinancialEvents();
        req.set(args);
        return client.invoke(req);
}    

Keywords

FAQs

Last updated on 07 Aug 2018

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc