Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/yeliex/wxs.js

wxs javascript sdk
https://github.com/yeliex/wxs.js

Last synced: about 2 months ago
JSON representation

wxs javascript sdk

Awesome Lists containing this project

README

        

# wxs-sdk

[![npm](https://img.shields.io/npm/v/wxs-sdk.svg?style=flat-square)](https://www.npmjs.com/package/wxs-sdk)

wxs javascript sdk

## Readme
js sdk for [wxs services](https://wxs.yeliex.com)

## Installation
```
$ npm install wxs-sdk --save
```

## Usage
```
// Browser

Wechat = Wechat({
id: wxs appid,
mobile: your wxs account mobile,
token: wxs app token
});


// With import
import { WXS: Wechat } from 'wxs-sdk';

const Wechat = WXS({
id: wxs appid,
mobile: your wxs account mobile,
token: wxs app token
}); // leave the options empty the second time

// With CommonJs
const Wechat = require('wxs-sdk').Wechat({
id: wxs appid,
mobile: your wxs account mobile,
token: wxs app token
});
```
## API Documention
see [wxs services](https://wxs.yeliex.com/doc)