public class FilesApi extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static Pattern |
MESSAGE_PATTERN |
protected com.xero.model.ObjectFactory |
objFactory |
protected static DateFormat |
utcFormatter |
| Constructor and Description |
|---|
FilesApi(ApiClient apiClient) |
FilesApi(Config config) |
FilesApi(Config config,
SignerFactory signerFactory) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addToMapIfNotNull(Map<String,String> map,
String key,
Object value) |
Files |
createFile(File body)
upload an File
Adds an File to the Xero
|
protected String |
DATA(String url,
String body,
Map<String,String> params,
String method) |
protected String |
DATA(String url,
String body,
Map<String,String> params,
String method,
org.threeten.bp.OffsetDateTime ifModifiedSince) |
protected String |
DATA(String url,
String body,
Map<String,String> params,
String method,
org.threeten.bp.OffsetDateTime ifModifiedSince,
String contentType) |
protected String |
DATA(String url,
String body,
Map<String,String> params,
String method,
String contentType) |
protected String |
DATA(String url,
String body,
Map<String,String> params,
String method,
String xeroApplicationId,
String xeroTenantId,
String xeroUserId) |
protected ByteArrayInputStream |
FILE(String url,
String body,
Map<String,String> params,
String method) |
protected String |
FILE(String url,
String body,
Map<String,String> params,
String method,
byte[] byteBody) |
protected ByteArrayInputStream |
FILE(String url,
String body,
Map<String,String> params,
String method,
String accept) |
ApiClient |
getApiClient() |
ByteArrayInputStream |
getFileContent(UUID fileId)
searches files
By passing in the appropriate options,
|
Files |
getFiles(Integer pagesize,
Integer page,
String sort)
searches files
By passing in the appropriate options, you can search for available inventory in the system
|
List<Folder> |
getFolders(String sort)
searches folder
By passing in the appropriate options, you can search for available folders
|
void |
setApiClient(ApiClient apiClient) |
void |
setOAuthToken(String token,
String tokenSecret) |
protected static final DateFormat utcFormatter
protected static final Pattern MESSAGE_PATTERN
protected final com.xero.model.ObjectFactory objFactory
public FilesApi(Config config)
public FilesApi(Config config, SignerFactory signerFactory)
public FilesApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
protected String DATA(String url, String body, Map<String,String> params, String method) throws IOException
IOExceptionprotected String DATA(String url, String body, Map<String,String> params, String method, org.threeten.bp.OffsetDateTime ifModifiedSince) throws IOException
IOExceptionprotected String DATA(String url, String body, Map<String,String> params, String method, String contentType) throws IOException
IOExceptionprotected String DATA(String url, String body, Map<String,String> params, String method, org.threeten.bp.OffsetDateTime ifModifiedSince, String contentType) throws IOException
IOExceptionprotected String DATA(String url, String body, Map<String,String> params, String method, String xeroApplicationId, String xeroTenantId, String xeroUserId) throws IOException
IOExceptionprotected ByteArrayInputStream FILE(String url, String body, Map<String,String> params, String method) throws IOException
IOExceptionprotected ByteArrayInputStream FILE(String url, String body, Map<String,String> params, String method, String accept) throws IOException
IOExceptionprotected String FILE(String url, String body, Map<String,String> params, String method, byte[] byteBody) throws IOException
IOExceptionpublic Files createFile(File body) throws IOException
200 - A successful request
400 - invalid input, object invalid
409 - an existing item already exists
body - File to addIOException - if an error occurs while attempting to invoke the APIpublic ByteArrayInputStream getFileContent(UUID fileId) throws IOException
200 - search results matching criteria
fileId - File id for single objectIOException - if an error occurs while attempting to invoke the APIpublic Files getFiles(Integer pagesize, Integer page, String sort) throws IOException
200 - search results matching criteria
400 - bad input parameter
pagesize - pass an optional page size valuepage - number of records to skip for paginationsort - values to sort byIOException - if an error occurs while attempting to invoke the APIpublic List<Folder> getFolders(String sort) throws IOException
200 - search results matching criteria
400 - bad input parameter
sort - values to sort byIOException - if an error occurs while attempting to invoke the APICopyright © 2018. All rights reserved.