Skip to content

yeliex/wxs.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wxs-sdk

npm

wxs javascript sdk

Readme

js sdk for wxs services

Installation

$ npm install wxs-sdk --save

Usage

// Browser
<script src="node_modules/wxs.js/dist/index.js"></script>
<script>
  Wechat = Wechat({
    id: wxs appid,
    mobile: your wxs account mobile,
    token: wxs app token
  });
</script>
 
// 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