类 com.github.sd4324530.fastweixin.api.enums.MediaType
的使用

使用 MediaType 的软件包
com.github.sd4324530.fastweixin.api   
com.github.sd4324530.fastweixin.api.enums   
com.github.sd4324530.fastweixin.company.api   
 

com.github.sd4324530.fastweixin.apiMediaType 的使用
 

参数类型为 MediaTypecom.github.sd4324530.fastweixin.api 中的方法
 UploadMediaResponse MediaAPI.uploadMedia(MediaType type, File file)
          上传资源,会在微信服务器上保存3天,之后会被删除
 

com.github.sd4324530.fastweixin.api.enumsMediaType 的使用
 

返回 MediaTypecom.github.sd4324530.fastweixin.api.enums 中的方法
static MediaType MediaType.valueOf(String name)
          返回带有指定名称的该类型的枚举常量。
static MediaType[] MediaType.values()
          按照声明该枚举类型的常量的顺序,返回 包含这些常量的数组。
 

com.github.sd4324530.fastweixin.company.apiMediaType 的使用
 

参数类型为 MediaTypecom.github.sd4324530.fastweixin.company.api 中的方法
 UploadMediaResponse QYMediaAPI.upload(MediaType type, File file)
          上传媒体文件
 



Copyright © 2017. All rights reserved.