|
@@ -0,0 +1,44 @@
|
|
|
+<?php
|
|
|
+
|
|
|
+$config['type'] = 2;
|
|
|
+
|
|
|
+$config['token'] = array
|
|
|
+(
|
|
|
+ 'name' => '获取公众号的token',
|
|
|
+ 'method' => 'get',
|
|
|
+ 'json' => false,
|
|
|
+ 'url' => 'https://api.weixin.qq.com/cgi-bin/token?',
|
|
|
+ 'param' => array
|
|
|
+ (
|
|
|
+ 'appid' => 'appid',
|
|
|
+ 'secret' => 'secret',
|
|
|
+ 'grant_type' => 'client_credential',
|
|
|
+ ),
|
|
|
+
|
|
|
+ 'response' => array
|
|
|
+ (
|
|
|
+ 'access_token' => 'token',
|
|
|
+ 'expires_in' => 'expires_in',
|
|
|
+ ),
|
|
|
+);
|
|
|
+
|
|
|
+$config['ticket'] = array
|
|
|
+(
|
|
|
+ 'name' => '获取公众号的ticket',
|
|
|
+ 'method' => 'get',
|
|
|
+ 'json' => false,
|
|
|
+ 'url' => 'https://api.weixin.qq.com/cgi-bin/ticket/getticket?',
|
|
|
+ 'param' => array
|
|
|
+ (
|
|
|
+ 'type' => 'jsapi',
|
|
|
+ 'access_token' => 'token',
|
|
|
+ ),
|
|
|
+
|
|
|
+ 'response' => array
|
|
|
+ (
|
|
|
+ 'jsapi_ticket' => 'ticket',
|
|
|
+ 'expires_in' => 'expires_in',
|
|
|
+ ),
|
|
|
+);
|
|
|
+
|
|
|
+return $config;
|