Files
yuyin-php/application/api/wxapi/media/GetPicTextList.php

58 lines
1.1 KiB
PHP
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
namespace app\api\wxapi\media;
use app\api\wxapi\Base;
/*
* */
class GetPicTextList extends Base
{
private $apiParas = array();
private $getParas = array();
public function init(){
$this->setOffset();
$this->setCount();
}
public function getApiMethodName(){
return "cgi-bin/material/batchget_material";
}
public function getApiParas(){
return $this->apiParas;
}
public function getGetParas(){
return $this->getParas;
}
public function putOtherTextParam($key, $value){
$this->apiParas[$key] = $value;
$this->$key = $value;
}
public function setAccessToken($access_token){
$this->getParas["access_token"] = $access_token;
}
public function getAccessToken(){
return $this->getParas["access_token"];
}
public function setTypes($type){ //素材的类型图片image、视频video、语音 voice、图文news
$this->apiParas["type"] = $type;
}
public function setOffset($offset=0){
$this->apiParas["offset"] = $offset;
}
public function setCount($count=20){
$this->apiParas["count"] = $count;
}
}