Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

shark_around 少了很多的方法 #73

Open
Messilimeng opened this issue Dec 23, 2017 · 1 comment
Open

shark_around 少了很多的方法 #73

Messilimeng opened this issue Dec 23, 2017 · 1 comment

Comments

@Messilimeng
Copy link

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
Copy link
Member

欢迎提 PR 贡献。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants