-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathTest.php
More file actions
43 lines (36 loc) · 1.03 KB
/
Test.php
File metadata and controls
43 lines (36 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Test extends CI_Controller {
public function __construct() {
parent::__construct();
# 配置参数
$config = array(
'token' => 'openant',
'appid' => 'wxfc790e2eb9601add',
'appsecret' => '39ea2b90c55ec14462b1967909316895',
'encodingaeskey' => '',
'type' => 'user',
);
# 加载对应操作接口
//文件夹名注意大写
$this->load->library('Wechat/wechat_user', $config);
var_dump($this->wechat_user->getUserList());
}
public function index(){
/*
# 配置参数
$config = array(
'token' => 'openant',
'appid' => 'wxfc790e2eb9601add',
'appsecret' => '39ea2b90c55ec14462b1967909316895',
'encodingaeskey' => '',
);
# 加载对应操作接口
$this->wechat->get('User', $config);
//$userlist = $wechat->getUserList();
*/
//var_dump($userlist);
//var_dump($wechat->errMsg);
//var_dump($wechat->errCode);
}
}