node-webot / co-wechat-api

Wechat API. Support Async Functions
Other
724 stars 170 forks source link

shark_around 少了很多的方法 #73

Open Messilimeng opened 6 years ago

Messilimeng commented 6 years ago

exports.getPageStatistics = async function (options) { const { accessToken } = await this.ensureAccessToken(); var url = 'https://api.weixin.qq.com/shakearound/statistics/page?access_token=' + accessToken; return this.request(url, postJSON(options)); };

exports.listBeaconGroup = async function (options) { const { accessToken } = await this.ensureAccessToken(); var url = 'https://api.weixin.qq.com/shakearound/device/group/getlist?access_token=' + accessToken; return this.request(url, postJSON(options)); };

exports.queryGroupBeacons = async function (options) { const { accessToken } = await this.ensureAccessToken(); var url = 'https://api.weixin.qq.com/shakearound/device/group/getdetail?access_token=' + accessToken; return this.request(url, postJSON(options)); };

exports.addBeaconGroup = async function (options) { const { accessToken } = await this.ensureAccessToken(); var url = 'https://api.weixin.qq.com/shakearound/device/group/add?access_token=' + accessToken; return this.request(url, postJSON(options)); };

exports.updateBeaconGroup = async function (options) { const { accessToken } = await this.ensureAccessToken(); var url = 'https://api.weixin.qq.com/shakearound/device/group/update?access_token=' + accessToken; return this.request(url, postJSON(options)); };

exports.deleteBeaconGroup = async function (options) { const { accessToken } = await this.ensureAccessToken(); var url = 'https://api.weixin.qq.com/shakearound/device/group/delete?access_token=' + accessToken; return this.request(url, postJSON(options)); };

exports.addGroupBeacons = async function (options) { const { accessToken } = await this.ensureAccessToken(); var url = 'https://api.weixin.qq.com/shakearound/device/group/adddevice?access_token=' + accessToken; return this.request(url, postJSON(options)); };

exports.deleteGroupBeacons = async function (options) { const { accessToken } = await this.ensureAccessToken(); var url = 'https://api.weixin.qq.com/shakearound/device/group/deletedevice?access_token=' + accessToken; return this.request(url, postJSON(options)); };

JacksonTian commented 6 years ago

欢迎提 PR 贡献。