Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@envato-marketplace-foundation/market-api-gateway-js

Package Overview
Dependencies
Maintainers
3
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@envato-marketplace-foundation/market-api-gateway-js

JavaScript SDK for Envato marketplace api-gateway

  • 0.4.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
8
increased by300%
Maintainers
3
Weekly downloads
 
Created
Source

market-api-gateway-js

NPM version build status js-standard-style

JavaScript SDK for Envato marketplace api-gateway

Installation

npm install @envato-marketplace-foundation/market-api-gateway-js

Documentation

For detail documentation, check https://build.envato.com/api

API Overview

Create a new apiGateway instance:

const ApiGateway = require('@envato-marketplace-foundation/market-api-gateway-js')

const apiGateway = new ApiGateway('ACCESS_TOKEN')
// or
const apiGateway = new ApiGateway({
  accessToken: 'ACCESS_TOKEN',
  baseURL: 'new api endpint', // optional
  timeout: 3000 // optional
})

optional options:

  • baseURL String api base url, default to https://api.envato.com
  • timeout Integer request timeout, default to 2000

Each resource is under it's own category as documented on https://build.envato.com/api/ and it return a Promise:

apiGateway.stats.getTotalUsers()
  .then(function (res) {
    console.log('res', res)
  })
  .catch(function (err) {
    console.log('err', err)
  })

Available resources & methods

Development

$ npm install
$ npm test

Publish to npm.

npm publish --access=public

If you want to publish module to npm, check the documentation at Working with scoped packages for more detail.

License

MIT

Keywords

FAQs

Package last updated on 27 Sep 2016

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc