1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- <?php
- # 小程序基本配置
- $config['type'] = 7;
- $config['token'] = array
- (
- 'name' => '获取有赞的token',
- 'method' => 'post',
- 'json' => true,
- 'url' => 'https://open.youzan.com/oauth/token?',
- 'param' => array
- (
- 'client_id' => 'appid',
- 'client_secret' => 'secret',
- 'grant_type' => 'silent',
- 'kdt_id' => 'key',
- ),
- //针对一些返回的名称,做转换
- 'response' => array
- (
- 'access_token' => 'token',
- 'expires_in' => 'expires_in',
- ),
- );
- $config['card'] = array
- (
- 'name' => '发放优惠券',
- 'method' => 'post',
- 'json' => false,
- 'url' => 'https://open.youzan.com/api/oauthentry/youzan.ump.coupon/3.0.0/take?',
- 'param' => array
- (
- 'access_token' => 'token',
- 'coupon_group_id' => 'coupon_group_id',
- 'mobile' => 'mobile',
- 'weixin_openid' => 'weixin_openid',
- ),
- //针对一些返回的名称,做转换
- 'response' => array
- (
-
- ),
- );
- $config['get_msg'] = array
- (
- 'name' => '获取帐号下已存在的模板列表',
- 'method' => 'post',
- 'json' => true,
- 'url' => 'https://api.weixin.qq.com/cgi-bin/wxopen/template/list?',
- 'param' => array
- (
- 'access_token' => 'token',
- 'offset' => '0',
- 'count' => '20',
- ),
- //针对一些返回的名称,做转换
- 'response' => array
- (
-
- ),
- );
- return $config;
|