Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
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
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-50%
Maintainers
1
Weekly downloads
 
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

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

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