Class Files
- java.lang.Object
-
- io.moov.sdk.Files
-
public class Files extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GetFileDetailsRequestBuilderget()Retrieve file details associated with a specific Moov account.GetFileDetailsResponseget(java.lang.String accountID, java.lang.String fileID)Retrieve file details associated with a specific Moov account.ListFilesRequestBuilderlist()List all the files associated with a particular Moov account.ListFilesResponselist(java.lang.String accountID)List all the files associated with a particular Moov account.UploadFileRequestBuilderupload()Upload a file and link it to the specified Moov account.UploadFileResponseupload(java.lang.String accountID, FileUploadRequestMultiPart fileUploadRequestMultiPart)Upload a file and link it to the specified Moov account.
-
-
-
Method Detail
-
upload
public UploadFileRequestBuilder upload()
Upload a file and link it to the specified Moov account.The maximum file size is 20MB. Each account is allowed a maximum of 50 files. Acceptable file types include csv, jpg, pdf, and png.
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/) you'll need to specify the `/accounts/{accountID}/files.write` scope.
- Returns:
- The call builder
-
upload
public UploadFileResponse upload(java.lang.String accountID, FileUploadRequestMultiPart fileUploadRequestMultiPart) throws java.lang.Exception
Upload a file and link it to the specified Moov account.The maximum file size is 20MB. Each account is allowed a maximum of 50 files. Acceptable file types include csv, jpg, pdf, and png.
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/) you'll need to specify the `/accounts/{accountID}/files.write` scope.
- Parameters:
accountID-fileUploadRequestMultiPart- Request to upload a file for an account.- Returns:
- The response from the API call
- Throws:
java.lang.Exception- if the API call fails
-
list
public ListFilesRequestBuilder list()
List all the files associated with a particular Moov account.To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/) you'll need to specify the `/accounts/{accountID}/files.read` scope.
- Returns:
- The call builder
-
list
public ListFilesResponse list(java.lang.String accountID) throws java.lang.Exception
List all the files associated with a particular Moov account.To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/) you'll need to specify the `/accounts/{accountID}/files.read` scope.
- Parameters:
accountID-- Returns:
- The response from the API call
- Throws:
java.lang.Exception- if the API call fails
-
get
public GetFileDetailsRequestBuilder get()
Retrieve file details associated with a specific Moov account.To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/) you'll need to specify the `/accounts/{accountID}/files.read` scope.
- Returns:
- The call builder
-
get
public GetFileDetailsResponse get(java.lang.String accountID, java.lang.String fileID) throws java.lang.Exception
Retrieve file details associated with a specific Moov account.To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/) you'll need to specify the `/accounts/{accountID}/files.read` scope.
- Parameters:
accountID-fileID-- Returns:
- The response from the API call
- Throws:
java.lang.Exception- if the API call fails
-
-