public class FileClient extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
LOG |
| Constructor and Description |
|---|
FileClient(String masterSecret,
String appKey) |
FileClient(String masterSecret,
String appKey,
cn.jiguang.common.connection.HttpProxy proxy,
cn.jiguang.common.ClientConfig conf) |
| Modifier and Type | Method and Description |
|---|---|
cn.jiguang.common.resp.ResponseWrapper |
deleteFile(String fileId) |
FileModelPage |
queryEffectFiles() |
FileModel |
queryFile(String fileId) |
FileUploadResult |
uploadFile(FileType type,
String filename) |
public FileUploadResult uploadFile(FileType type, String filename) throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
cn.jiguang.common.resp.APIConnectionExceptioncn.jiguang.common.resp.APIRequestExceptionpublic FileModelPage queryEffectFiles() throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
cn.jiguang.common.resp.APIConnectionExceptioncn.jiguang.common.resp.APIRequestExceptionpublic FileModel queryFile(String fileId) throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
cn.jiguang.common.resp.APIConnectionExceptioncn.jiguang.common.resp.APIRequestExceptionpublic cn.jiguang.common.resp.ResponseWrapper deleteFile(String fileId) throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
cn.jiguang.common.resp.APIConnectionExceptioncn.jiguang.common.resp.APIRequestExceptionCopyright © 2020. All rights reserved.