You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

@ecnova/sdk-js-namespace

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ecnova/sdk-js-namespace

JS SDK for Ecnova

0.6.35
latest
Source
npmnpm
Version published
Maintainers
1
Created
Source

sdk-js

for ECNOVA sdk

quick start:

import { gateway } from '@ecnova/sdk-js';

gateway.retailUserService.touchShoppingCart(params)

customized

import { SDK, defaultConfig, Request, IConfig, IRequest } from '@ecnova/sdk-js';

const gateway = new SDK(defaultConfig, new Request());
gateway.retailUserService.touchShoppingCart(params)

rewrite Request

export class MyRequest extends Request {
  constructor(config){
    super(config)
  }
}


// or in ts
export class MyRequest implements IRequest {
  // send
  send(endpoint: string, options: any);

  // set
  set(config: IConfig): IRequest;
}

rewrite Config

const MyConfig {
  endpoint: string,
  currency: string,
  language: string,
  timeout: number,
  namespace?: string,
  apiToken?: string,
  accessToken?: string,
}

// or in ts
const MyConfig: IConfig {
  endpoint: string,
  currency: string,
  language: string,
  timeout: number,
  namespace?: string,
  apiToken?: string,
  accessToken?: string,
}

Keywords

example

FAQs

Package last updated on 08 May 2018

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