Package ch.aaap.harvestclient.api
Interface ClientsApi
- All Superinterfaces:
Api.Create<Client>,Api.Delete<Client>,Api.Get<Client>,Api.Simple<Client>
- All Known Implementing Classes:
ClientsApiImpl
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionCreate a new ClientvoidDelete an existing Client.Return an existing Client.list(ClientFilter filter) list(ClientFilter filter, int page, int perPage) Return a list of clients, sorted by creation date, newest first.update(Reference<Client> clientReference, ClientUpdateInfo toChange) Updates the specific client by setting the values of the parameters passed.
-
Method Details
-
list
- Parameters:
filter- filtering options- Returns:
- a list of all Clients in the account, sorted by creation date, newest first.
-
list
Return a list of clients, sorted by creation date, newest first. Use the filter object to filter the list. Page and perPage allow controlling how many results to return.- Parameters:
filter- filtering optionspage- the page numberperPage- how many results to return for one page. Max 100- Returns:
- a (filtered) list of Client
-
get
Return an existing Client. -
create
Create a new Client- Specified by:
createin interfaceApi.Create<Client>- Parameters:
creationInfo- creation information- Returns:
- the created Client
-
update
Updates the specific client by setting the values of the parameters passed. Any parameters not provided will be left unchanged- Parameters:
clientReference- An existing Client to be updatedtoChange- the changes to be performed- Returns:
- the updated Client
-
delete
Delete an existing Client.- Specified by:
deletein interfaceApi.Delete<Client>- Parameters:
clientReference- a reference to the Client to be deleted
-