coa-wx-isv
Version:
一个轻量的微信SDK服务商版 for Node.js
27 lines (26 loc) • 1.4 kB
TypeScript
import { WxIsvServiceBase } from '../libs/WxIsvServiceBase';
export declare class WxIsvEmbeddedService extends WxIsvServiceBase {
/**
* 添加半屏小程序
* 详见 https://developers.weixin.qq.com/doc/oplatform/openApi/OpenApiDoc/miniprogram-management/embedded-management/addEmbedded.html
* @param accessToken 接口调用凭证
* @param appId 添加的半屏小程序 appid
* @param applyReason 申请理由,不超过30个字
*/
addEmbedded(accessToken: string, appId: string, applyReason: string): Promise<any>;
/**
* 删除半屏小程序
* 详见 https://developers.weixin.qq.com/doc/oplatform/openApi/OpenApiDoc/miniprogram-management/embedded-management/deleteEmbedded.html
* @param accessToken 接口调用凭证
* @param appId 添加的半屏小程序 appid
*/
deleteEmbedded(accessToken: string, appId: string): Promise<any>;
/**
* 获取半屏小程序调用列表
* 详见 https://developers.weixin.qq.com/doc/oplatform/openApi/OpenApiDoc/miniprogram-management/embedded-management/getEmbeddedList.html
* @param accessToken 接口调用凭证
* @param start query参数,分页起始值,默认值为0
* @param num query参数,一次拉取最大值,最大1000,默认值为10
*/
getEmbeddedList(accessToken: string, start?: number, num?: number): Promise<any>;
}