New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

smartapi-javascript

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

smartapi-javascript

## Installation ```bash npm i smartapi-javascript ```

Source
npmnpm
Version
1.0.1
Version published
Weekly downloads
1.1K
18.6%
Maintainers
1
Weekly downloads
 
Created
Source

SmartAPI Javascript Client SDK

Installation

npm i smartapi-javascript

Getting started with API

let { SmartAPI } = require("smartapi-javascript");

let smart_api = new SmartAPI({
    api_key: "YOUR_API_KEY",
    // OPTIONAL
    // access_token: "YOUR_ACCESS_TOKEN",
    // refresh_token: "YOUR_REFRESH_TOKEN"
});

smart_api.generateSession("CLIENT_CODE", "PASSWORD")
    .then((data) => {
        return smart_api.getProfile()
    })
    .then((data) => {
        // Profile details
    })
    .catch(ex => {
        //Log error
    })

FAQs

Package last updated on 23 Oct 2020

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