applet.php 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244
  1. <?php
  2. # applet基本接口配置
  3. $domain = '{domain}';
  4. # 登录
  5. $config['applet_login'] = array
  6. (
  7. 'name' => '登录',
  8. 'method' => 'get',
  9. 'json' => false,
  10. 'url' => 'https://api.weixin.qq.com/sns/component/jscode2session?',
  11. 'param' => array
  12. (
  13. 'appid' => 'appid',
  14. 'js_code' => 'js_code',
  15. 'grant_type' => 'authorization_code',
  16. 'component_appid' => 'component_appid',
  17. 'component_access_token' => 'token',
  18. ),
  19. 'response' => array
  20. (
  21. 'errmsg' => 'errmsg',
  22. ),
  23. );
  24. # 设置服务域名
  25. $config['applet_domain'] = array
  26. (
  27. 'name' => '设置服务域名',
  28. 'method' => 'post',
  29. 'json' => true,
  30. 'url' => 'https://api.weixin.qq.com/wxa/modify_domain?',
  31. 'param' => array
  32. (
  33. 'access_token' => 'oauth',
  34. 'action' => 'set',
  35. 'requestdomain' => 'https://' . $domain,
  36. 'wsrequestdomain' => 'wss://' . $domain,
  37. 'uploaddomain' => 'https://' . $domain,
  38. 'downloaddomain' => 'https://' . $domain,
  39. ),
  40. 'response' => array
  41. (
  42. 'errmsg' => 'errmsg',
  43. ),
  44. );
  45. #设置小程序业务域名
  46. $config['applet_webviewdomain'] = array
  47. (
  48. 'name' => '设置小程序业务域名',
  49. 'method' => 'post',
  50. 'json' => true,
  51. 'url' => 'https://api.weixin.qq.com/wxa/setwebviewdomain?',
  52. 'param' => array
  53. (
  54. 'access_token' => 'oauth',
  55. 'action' => 'set',
  56. 'webviewdomain' => 'https://' . $domain,
  57. ),
  58. 'response' => array
  59. (
  60. 'errmsg' => 'errmsg',
  61. ),
  62. );
  63. #设置体验者
  64. $config['applet_tester'] = array
  65. (
  66. 'name' => '设置体验者',
  67. 'method' => 'post',
  68. 'json' => true,
  69. 'url' => 'https://api.weixin.qq.com/wxa/bind_tester?',
  70. 'param' => array
  71. (
  72. 'access_token' => 'oauth',
  73. 'wechatid' => 'wechatid',
  74. ),
  75. 'response' => array
  76. (
  77. 'errmsg' => 'errmsg',
  78. ),
  79. );
  80. #删除体验者
  81. $config['applet_untester'] = array
  82. (
  83. 'name' => '删除体验者',
  84. 'method' => 'post',
  85. 'json' => true,
  86. 'url' => 'https://api.weixin.qq.com/wxa/unbind_tester?',
  87. 'param' => array
  88. (
  89. 'access_token' => 'oauth',
  90. 'wechatid' => 'wechatid',
  91. ),
  92. 'response' => array
  93. (
  94. 'errmsg' => 'errmsg',
  95. ),
  96. );
  97. #上传小程序代码
  98. $config['applet_commit'] = array
  99. (
  100. 'name' => '上传小程序代码',
  101. 'method' => 'post',
  102. 'json' => true,
  103. 'url' => 'https://api.weixin.qq.com/wxa/commit?',
  104. 'param' => array
  105. (
  106. 'access_token' => 'oauth',
  107. 'template_id' => 'template_id',
  108. 'ext_json' => 'ext_json',
  109. 'user_version' => 'user_version',
  110. 'user_desc' => 'user_desc',
  111. ),
  112. 'response' => array
  113. (
  114. 'errmsg' => 'errmsg',
  115. ),
  116. );
  117. #查看体验版二维码
  118. $config['applet_qrcode'] = array
  119. (
  120. 'name' => '查看体验版二维码',
  121. 'method' => 'post',
  122. 'json' => true,
  123. 'url' => 'https://api.weixin.qq.com/wxa/get_qrcode?',
  124. 'param' => array
  125. (
  126. 'access_token' => 'oauth',
  127. 'path' => 'path',
  128. ),
  129. 'response' => array
  130. (
  131. 'errmsg' => 'errmsg',
  132. ),
  133. );
  134. $config['applet_submit'] = array
  135. (
  136. 'name' => '将第三方提交的代码包提交审核',
  137. 'method' => 'post',
  138. 'json' => true,
  139. 'url' => 'https://api.weixin.qq.com/wxa/submit_audit?',
  140. 'param' => array
  141. (
  142. 'access_token' => 'oauth',
  143. 'item_list' => 'item_list',
  144. ),
  145. 'response' => array
  146. (
  147. 'errmsg' => 'errmsg',
  148. ),
  149. );
  150. $config['applet_category'] = array
  151. (
  152. 'name' => '获取授权小程序帐号的可选类目',
  153. 'method' => 'get',
  154. 'json' => false,
  155. 'url' => 'https://api.weixin.qq.com/wxa/get_category?',
  156. 'param' => array
  157. (
  158. 'access_token' => 'oauth',
  159. ),
  160. 'response' => array
  161. (
  162. 'errmsg' => 'errmsg',
  163. ),
  164. );
  165. $config['applet_auditstatus'] = array
  166. (
  167. 'name' => '查询某个指定版本的审核状态',
  168. 'method' => 'post',
  169. 'json' => true,
  170. 'url' => 'https://api.weixin.qq.com/wxa/get_auditstatus?',
  171. 'param' => array
  172. (
  173. 'access_token' => 'oauth',
  174. 'auditid' => 'auditid',
  175. ),
  176. 'response' => array
  177. (
  178. 'errmsg' => 'errmsg',
  179. ),
  180. );
  181. $config['applet_publish'] = array
  182. (
  183. 'name' => '发布已通过审核的小程序',
  184. 'method' => 'post',
  185. 'json' => true,
  186. 'url' => 'https://api.weixin.qq.com/wxa/release?',
  187. 'param' => array
  188. (
  189. 'access_token' => 'oauth',
  190. ),
  191. 'response' => array
  192. (
  193. 'errmsg' => 'errmsg',
  194. ),
  195. );
  196. $config['applet_revert'] = array
  197. (
  198. 'name' => '小程序版本回退',
  199. 'method' => 'get',
  200. 'json' => false,
  201. 'url' => 'https://api.weixin.qq.com/wxa/revertcoderelease?',
  202. 'param' => array
  203. (
  204. 'access_token' => 'oauth',
  205. ),
  206. 'response' => array
  207. (
  208. 'errmsg' => 'errmsg',
  209. ),
  210. );
  211. $config['applet_unaudit'] = array
  212. (
  213. 'name' => '小程序审核撤回',
  214. 'method' => 'get',
  215. 'json' => false,
  216. 'url' => 'https://api.weixin.qq.com/wxa/undocodeaudit?',
  217. 'param' => array
  218. (
  219. 'access_token' => 'oauth',
  220. ),
  221. 'response' => array
  222. (
  223. 'errmsg' => 'errmsg',
  224. ),
  225. );
  226. return $config;