public class ShoeboxedApi extends Object
| Modifier and Type | Method and Description |
|---|---|
Category |
createCategory(long accountId,
CreateCategoryRequest request) |
Document |
createDocument(long accountId,
retrofit.mime.TypedFile file,
CreateDocumentRequest request) |
void |
deleteDocument(long accountId,
String documentId) |
static ShoeboxedApi |
forSession(ShoeboxedSession shoeboxedSession) |
List<Account> |
getAccounts() |
List<Category> |
getCategories(long accountId) |
public static ShoeboxedApi forSession(ShoeboxedSession shoeboxedSession)
shoeboxedSession - authorized sessionShoeboxedApipublic List<Account> getAccounts() throws IOException
IOException - in case of communication errorpublic List<Category> getCategories(long accountId) throws IOException
accountId - account idIOException - in case of communication errorpublic Category createCategory(long accountId, CreateCategoryRequest request) throws IOException
accountId - account idrequest - CreateCategoryRequest with information about categoryCategoryIOException - in case of communication errorpublic Document createDocument(long accountId, retrofit.mime.TypedFile file, CreateDocumentRequest request) throws IOException
accountId - account idfile - TypedFile to be attached to the documentrequest - CreateDocumentRequest with information about documentDocumentIOException - in case of communication errorpublic void deleteDocument(long accountId,
String documentId)
throws IOException
accountId - account iddocumentId - id of document to deleteIOException - in case of communication errorCopyright © 2014. All rights reserved.