public class UploadController extends BaseController
httpCallBack| Constructor and Description |
|---|
UploadController() |
| Modifier and Type | Method and Description |
|---|---|
static UploadController |
getInstance()
Singleton pattern implementation
|
String |
uploadFile(File file,
String convert)
Upload a file
|
String |
uploadFile(String content,
String convert)
TODO: type endpoint description here
|
void |
uploadFileAsync(File file,
String convert,
APICallBack<String> callBack)
Upload a file
|
void |
uploadFileAsync(String content,
String convert,
APICallBack<String> callBack)
TODO: type endpoint description here
|
getClientInstance, getHttpCallBack, setClientInstance, setHttpCallBack, validateResponsepublic static UploadController getInstance()
public String uploadFile(File file, String convert) throws Throwable
file - Required parameter: The file to be uploadedconvert - Required parameter: The product that this file will be used with e.g. 'fax', 'mms', 'csv' or 'post'Throwablepublic void uploadFileAsync(File file, String convert, APICallBack<String> callBack)
file - Required parameter: The file to be uploadedconvert - Required parameter: The product that this file will be used with e.g. 'fax', 'mms', 'csv' or 'post'public String uploadFile(String content, String convert) throws Throwable
content - Required parameter: Base64-encoded file contentsconvert - Required parameter: Example:Throwablepublic void uploadFileAsync(String content, String convert, APICallBack<String> callBack)
content - Required parameter: Base64-encoded file contentsconvert - Required parameter: Example:Copyright © 2017. All rights reserved.