$obj = new \wechat\Wechat();
// false.失败 true.成功
$obj->official()->material()->mini_create('{
"type": 0,
"media_id": "xxxxxxxx",
"title": "xxxxx",
"path": "xxxxxxxx",
"appid":"xxxxxx"
}');
$obj = new \wechat\Wechat();
$obj->official()->material()->mini_get([
"type" => 0
]);
成功结果:
array(1) {
[0]=>
array(6) {
["title"]=>
string(5) "title"
["appid"]=>
string(6) "xxxxxx"
["path"]=>
string(10) "path111111"
["picurl"]=>
string(7) "xxxxxxx"
["master_id"]=>
string(6) "xxxxxx"
["slave_id"]=>
string(6) "xxxxxx"
}
}
$obj = new \wechat\Wechat();
// false.失败 true.成功
$obj->official()->material()->mini_delete('{
"type": 0,
"title": "xxxxx",
"path": "xxxxxxxx",
"appid":"xxxxxx"
}');
$obj = new \wechat\Wechat();
// false.失败 true.成功
$obj->official()->material()->image_create('{
"type": 0,
"media_id": "xxxxxxxx"
}');
$obj = new \wechat\Wechat();
$obj->official()->material()->image_get([
"type" => 0,
"start" => 0,
"num" => 10
]);
成功结果:
array(2) {
["model_list"]=>
array(1) {
[0]=>
array(1) {
["picurl"]=>
string(6) "xxxxxx"
}
}
["total_num"]=>
int(1)
}
$obj = new \wechat\Wechat();
// false.失败 true.成功
$obj->official()->material()->image_delete('{
"type": 0,
"picurl": "xxxx"
}');
$obj = new \wechat\Wechat();
// false.失败 true.成功
$obj->official()->material()->text_create('{
"type": 0,
"word": "hello world"
}');
$obj = new \wechat\Wechat();
$obj->official()->material()->text_get([
"type" => 0,
"start" => 0,
"num" => 10
]);
成功结果:
array(2) {
["word_list"]=>
array(1) {
[0]=>
array(2) {
["word"]=>
string(12) "hello world!"
["create_time"]=>
int(1574653070)
}
}
["total_num"]=>
int(1)
}
$obj = new \wechat\Wechat();
// false.失败 true.成功
$obj->official()->material()->text_delete('{
"type": 0,
"word": "hello world"
}');