| Package | Description |
|---|---|
| com.wudaosoft.weixinsdk | |
| com.wudaosoft.weixinsdk.material | |
| com.wudaosoft.weixinsdk.type |
| Modifier and Type | Method and Description |
|---|---|
static String |
CommonApi.mediaUpload(MediaType type,
File media,
WeiXinConfig wxConf)
公众号在使用接口时,对多媒体文件、多媒体消息的获取和调用等操作,是通过media_id来进行的。通过本接口,公众号可以上传或下载多媒体文件。
但请注意,每个多媒体文件(media_id)会在上传、用户发送到微信服务器3天后自动删除,以节省服务器资源。
公众号可调用本接口来上传图片、语音、视频等文件到微信服务器,上传后服务器会返回对应的media_id,
公众号此后可根据该media_id来获取多媒体。请注意,media_id是可复用的,调用该接口需http协议。
|
static String |
CommonApi.mediaUploadForever(MediaType type,
File media,
WeiXinConfig wxConf) |
| Modifier and Type | Method and Description |
|---|---|
GlobalReturnCode |
MaterialApi.batchgetMaterial(MediaType type,
int offset,
int count) |
| Modifier and Type | Method and Description |
|---|---|
static MediaType |
MediaType.getMediaTypeByName(String name) |
static MediaType |
MediaType.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MediaType[] |
MediaType.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Copyright © 2012–2020 Wudao Software Studio. All rights reserved.