|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectcom.github.sd4324530.fastweixin.api.BaseAPI
com.github.sd4324530.fastweixin.api.MaterialAPI
public class MaterialAPI
==================================================================== 上海聚攒软件开发有限公司 --------------------------------------------------------------------
| 字段摘要 |
|---|
| 从类 com.github.sd4324530.fastweixin.api.BaseAPI 继承的字段 |
|---|
BASE_API_URL, config |
| 构造方法摘要 | |
|---|---|
MaterialAPI(ApiConfig config)
|
|
| 方法摘要 | |
|---|---|
GetMaterialListResponse |
batchGetMaterial(MaterialType type,
int offset,
int count)
获取素材列表 |
GetMaterialTotalCountResponse |
countMaterial()
获取已创建永久素材的数量 |
ResultType |
deleteMaterial(String mediaId)
删除一个永久素材 |
DownloadMaterialResponse |
downloadMaterial(String mediaId,
MaterialType type)
下载永久素材 |
DownloadMaterialResponse |
getMaterial(String mediaId)
获得永久素材的信息、只获取信息、不进行下载 |
UploadMaterialResponse |
uploadMaterialFile(File file)
上传永久素材文件。 |
UploadMaterialResponse |
uploadMaterialFile(File file,
String title,
String introduction)
上传永久视频素材文件。 |
UploadMaterialResponse |
uploadMaterialNews(List<Article> articles)
上传图文消息素材 |
| 从类 com.github.sd4324530.fastweixin.api.BaseAPI 继承的方法 |
|---|
executeGet, executePost, executePost, isSuccess |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 构造方法详细信息 |
|---|
public MaterialAPI(ApiConfig config)
| 方法详细信息 |
|---|
public UploadMaterialResponse uploadMaterialFile(File file)
file - 素材文件
public UploadMaterialResponse uploadMaterialFile(File file,
String title,
String introduction)
file - 素材文件title - 素材标题introduction - 素材描述信息
public UploadMaterialResponse uploadMaterialNews(List<Article> articles)
articles - 图文消息列表
public DownloadMaterialResponse downloadMaterial(String mediaId,
MaterialType type)
mediaId - 素材IDtype - 素材类型
public GetMaterialTotalCountResponse countMaterial()
public GetMaterialListResponse batchGetMaterial(MaterialType type,
int offset,
int count)
type - 素材类型offset - 从全部素材的该偏移位置开始返回,0表示从第一个素材 返回count - 返回素材的数量,取值在1到20之间
public ResultType deleteMaterial(String mediaId)
mediaId - 素材ID
public DownloadMaterialResponse getMaterial(String mediaId)
mediaId -
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||