123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244 |
- <?php
- # applet基本接口配置
- $domain = '{domain}';
- # 登录
- $config['applet_login'] = array
- (
- 'name' => '登录',
- 'method' => 'get',
- 'json' => false,
- 'url' => 'https://api.weixin.qq.com/sns/component/jscode2session?',
- 'param' => array
- (
- 'appid' => 'appid',
- 'js_code' => 'js_code',
- 'grant_type' => 'authorization_code',
- 'component_appid' => 'component_appid',
- 'component_access_token' => 'token',
- ),
- 'response' => array
- (
- 'errmsg' => 'errmsg',
- ),
- );
- # 设置服务域名
- $config['applet_domain'] = array
- (
- 'name' => '设置服务域名',
- 'method' => 'post',
- 'json' => true,
- 'url' => 'https://api.weixin.qq.com/wxa/modify_domain?',
- 'param' => array
- (
- 'access_token' => 'oauth',
- 'action' => 'set',
- 'requestdomain' => 'https://' . $domain,
- 'wsrequestdomain' => 'wss://' . $domain,
- 'uploaddomain' => 'https://' . $domain,
- 'downloaddomain' => 'https://' . $domain,
- ),
- 'response' => array
- (
- 'errmsg' => 'errmsg',
- ),
- );
- #设置小程序业务域名
- $config['applet_webviewdomain'] = array
- (
- 'name' => '设置小程序业务域名',
- 'method' => 'post',
- 'json' => true,
- 'url' => 'https://api.weixin.qq.com/wxa/setwebviewdomain?',
- 'param' => array
- (
- 'access_token' => 'oauth',
- 'action' => 'set',
- 'webviewdomain' => 'https://' . $domain,
- ),
- 'response' => array
- (
- 'errmsg' => 'errmsg',
- ),
- );
- #设置体验者
- $config['applet_tester'] = array
- (
- 'name' => '设置体验者',
- 'method' => 'post',
- 'json' => true,
- 'url' => 'https://api.weixin.qq.com/wxa/bind_tester?',
- 'param' => array
- (
- 'access_token' => 'oauth',
- 'wechatid' => 'wechatid',
- ),
- 'response' => array
- (
- 'errmsg' => 'errmsg',
- ),
- );
- #删除体验者
- $config['applet_untester'] = array
- (
- 'name' => '删除体验者',
- 'method' => 'post',
- 'json' => true,
- 'url' => 'https://api.weixin.qq.com/wxa/unbind_tester?',
- 'param' => array
- (
- 'access_token' => 'oauth',
- 'wechatid' => 'wechatid',
- ),
- 'response' => array
- (
- 'errmsg' => 'errmsg',
- ),
- );
- #上传小程序代码
- $config['applet_commit'] = array
- (
- 'name' => '上传小程序代码',
- 'method' => 'post',
- 'json' => true,
- 'url' => 'https://api.weixin.qq.com/wxa/commit?',
- 'param' => array
- (
- 'access_token' => 'oauth',
- 'template_id' => 'template_id',
- 'ext_json' => 'ext_json',
- 'user_version' => 'user_version',
- 'user_desc' => 'user_desc',
- ),
- 'response' => array
- (
- 'errmsg' => 'errmsg',
- ),
- );
- #查看体验版二维码
- $config['applet_qrcode'] = array
- (
- 'name' => '查看体验版二维码',
- 'method' => 'post',
- 'json' => true,
- 'url' => 'https://api.weixin.qq.com/wxa/get_qrcode?',
- 'param' => array
- (
- 'access_token' => 'oauth',
- 'path' => 'path',
- ),
- 'response' => array
- (
- 'errmsg' => 'errmsg',
- ),
- );
- $config['applet_submit'] = array
- (
- 'name' => '将第三方提交的代码包提交审核',
- 'method' => 'post',
- 'json' => true,
- 'url' => 'https://api.weixin.qq.com/wxa/submit_audit?',
- 'param' => array
- (
- 'access_token' => 'oauth',
- 'item_list' => 'item_list',
- ),
- 'response' => array
- (
- 'errmsg' => 'errmsg',
- ),
- );
- $config['applet_category'] = array
- (
- 'name' => '获取授权小程序帐号的可选类目',
- 'method' => 'get',
- 'json' => false,
- 'url' => 'https://api.weixin.qq.com/wxa/get_category?',
- 'param' => array
- (
- 'access_token' => 'oauth',
- ),
- 'response' => array
- (
- 'errmsg' => 'errmsg',
- ),
- );
- $config['applet_auditstatus'] = array
- (
- 'name' => '查询某个指定版本的审核状态',
- 'method' => 'post',
- 'json' => true,
- 'url' => 'https://api.weixin.qq.com/wxa/get_auditstatus?',
- 'param' => array
- (
- 'access_token' => 'oauth',
- 'auditid' => 'auditid',
- ),
- 'response' => array
- (
- 'errmsg' => 'errmsg',
- ),
- );
- $config['applet_publish'] = array
- (
- 'name' => '发布已通过审核的小程序',
- 'method' => 'post',
- 'json' => true,
- 'url' => 'https://api.weixin.qq.com/wxa/release?',
- 'param' => array
- (
- 'access_token' => 'oauth',
- ),
- 'response' => array
- (
- 'errmsg' => 'errmsg',
- ),
- );
- $config['applet_revert'] = array
- (
- 'name' => '小程序版本回退',
- 'method' => 'get',
- 'json' => false,
- 'url' => 'https://api.weixin.qq.com/wxa/revertcoderelease?',
- 'param' => array
- (
- 'access_token' => 'oauth',
- ),
- 'response' => array
- (
- 'errmsg' => 'errmsg',
- ),
- );
- $config['applet_unaudit'] = array
- (
- 'name' => '小程序审核撤回',
- 'method' => 'get',
- 'json' => false,
- 'url' => 'https://api.weixin.qq.com/wxa/undocodeaudit?',
- 'param' => array
- (
- 'access_token' => 'oauth',
- ),
- 'response' => array
- (
- 'errmsg' => 'errmsg',
- ),
- );
- return $config;
|