Package software.xdev.brevo.api
Class ExternalFeedsApi
java.lang.Object
software.xdev.brevo.client.BaseApi
software.xdev.brevo.api.ExternalFeedsApi
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateExternalFeed(CreateExternalFeed createExternalFeed) Create an external feed This endpoint will create an external feed.createExternalFeed(CreateExternalFeed createExternalFeed, Map<String, String> additionalHeaders) Create an external feed This endpoint will create an external feed.voiddeleteExternalFeed(String uuid) Delete an external feed This endpoint will delete an external feed.voiddeleteExternalFeed(String uuid, Map<String, String> additionalHeaders) Delete an external feed This endpoint will delete an external feed.getAllExternalFeeds(String search, LocalDate startDate, LocalDate endDate, String sort, String authType, Long limit, Long offset) Fetch all external feeds This endpoint can fetch all created external feeds.getAllExternalFeeds(String search, LocalDate startDate, LocalDate endDate, String sort, String authType, Long limit, Long offset, Map<String, String> additionalHeaders) Fetch all external feeds This endpoint can fetch all created external feeds.getExternalFeedByUUID(String uuid) Get an external feed by UUID This endpoint will update an external feed.getExternalFeedByUUID(String uuid, Map<String, String> additionalHeaders) Get an external feed by UUID This endpoint will update an external feed.<T> TinvokeAPI(String url, String method, Object request, com.fasterxml.jackson.core.type.TypeReference<T> returnType, Map<String, String> additionalHeaders) Directly invoke the API for the given URL.voidupdateExternalFeed(String uuid, UpdateExternalFeed updateExternalFeed) Update an external feed This endpoint will update an external feed.voidupdateExternalFeed(String uuid, UpdateExternalFeed updateExternalFeed, Map<String, String> additionalHeaders) Update an external feed This endpoint will update an external feed.Methods inherited from class software.xdev.brevo.client.BaseApi
getApiClient, invokeAPI, invokeAPI, invokeAPI, invokeAPI, invokeAPI, invokeAPI, setApiClient
-
Constructor Details
-
ExternalFeedsApi
public ExternalFeedsApi() -
ExternalFeedsApi
-
-
Method Details
-
createExternalFeed
public CreateExternalFeed201Response createExternalFeed(@Nonnull CreateExternalFeed createExternalFeed) throws ApiException Create an external feed This endpoint will create an external feed.- Parameters:
createExternalFeed- Values to create a feed (required)- Returns:
- CreateExternalFeed201Response
- Throws:
ApiException- if fails to make API call
-
createExternalFeed
public CreateExternalFeed201Response createExternalFeed(@Nonnull CreateExternalFeed createExternalFeed, Map<String, String> additionalHeaders) throws ApiExceptionCreate an external feed This endpoint will create an external feed.- Parameters:
createExternalFeed- Values to create a feed (required)additionalHeaders- additionalHeaders for this call- Returns:
- CreateExternalFeed201Response
- Throws:
ApiException- if fails to make API call
-
deleteExternalFeed
Delete an external feed This endpoint will delete an external feed.- Parameters:
uuid- UUID of the feed to delete (required)- Throws:
ApiException- if fails to make API call
-
deleteExternalFeed
public void deleteExternalFeed(@Nonnull String uuid, Map<String, String> additionalHeaders) throws ApiExceptionDelete an external feed This endpoint will delete an external feed.- Parameters:
uuid- UUID of the feed to delete (required)additionalHeaders- additionalHeaders for this call- Throws:
ApiException- if fails to make API call
-
getAllExternalFeeds
public GetAllExternalFeeds getAllExternalFeeds(@Nullable String search, @Nullable LocalDate startDate, @Nullable LocalDate endDate, @Nullable String sort, @Nullable String authType, @Nullable Long limit, @Nullable Long offset) throws ApiException Fetch all external feeds This endpoint can fetch all created external feeds.- Parameters:
search- Can be used to filter records by search keyword on feed name (optional)startDate- Mandatory if `endDate` is used. Starting date (YYYY-MM-DD) from which you want to fetch the list. Can be maximum 30 days older than current date. (optional)endDate- Mandatory if `startDate` is used. Ending date (YYYY-MM-DD) till which you want to fetch the list. Maximum time period that can be selected is one month. (optional)sort- Sort the results in the ascending/descending order of record creation. Default order is **descending** if `sort` is not passed. (optional, default to desc)authType- Filter the records by `authType` of the feed. (optional)limit- Number of documents returned per page. (optional, default to 50)offset- Index of the first document on the page. (optional, default to 0)- Returns:
- GetAllExternalFeeds
- Throws:
ApiException- if fails to make API call
-
getAllExternalFeeds
public GetAllExternalFeeds getAllExternalFeeds(@Nullable String search, @Nullable LocalDate startDate, @Nullable LocalDate endDate, @Nullable String sort, @Nullable String authType, @Nullable Long limit, @Nullable Long offset, Map<String, String> additionalHeaders) throws ApiExceptionFetch all external feeds This endpoint can fetch all created external feeds.- Parameters:
search- Can be used to filter records by search keyword on feed name (optional)startDate- Mandatory if `endDate` is used. Starting date (YYYY-MM-DD) from which you want to fetch the list. Can be maximum 30 days older than current date. (optional)endDate- Mandatory if `startDate` is used. Ending date (YYYY-MM-DD) till which you want to fetch the list. Maximum time period that can be selected is one month. (optional)sort- Sort the results in the ascending/descending order of record creation. Default order is **descending** if `sort` is not passed. (optional, default to desc)authType- Filter the records by `authType` of the feed. (optional)limit- Number of documents returned per page. (optional, default to 50)offset- Index of the first document on the page. (optional, default to 0)additionalHeaders- additionalHeaders for this call- Returns:
- GetAllExternalFeeds
- Throws:
ApiException- if fails to make API call
-
getExternalFeedByUUID
Get an external feed by UUID This endpoint will update an external feed.- Parameters:
uuid- UUID of the feed to fetch (required)- Returns:
- GetExternalFeedByUUID
- Throws:
ApiException- if fails to make API call
-
getExternalFeedByUUID
public GetExternalFeedByUUID getExternalFeedByUUID(@Nonnull String uuid, Map<String, String> additionalHeaders) throws ApiExceptionGet an external feed by UUID This endpoint will update an external feed.- Parameters:
uuid- UUID of the feed to fetch (required)additionalHeaders- additionalHeaders for this call- Returns:
- GetExternalFeedByUUID
- Throws:
ApiException- if fails to make API call
-
updateExternalFeed
public void updateExternalFeed(@Nonnull String uuid, @Nonnull UpdateExternalFeed updateExternalFeed) throws ApiException Update an external feed This endpoint will update an external feed.- Parameters:
uuid- UUID of the feed to update (required)updateExternalFeed- Values to update a feed (required)- Throws:
ApiException- if fails to make API call
-
updateExternalFeed
public void updateExternalFeed(@Nonnull String uuid, @Nonnull UpdateExternalFeed updateExternalFeed, Map<String, String> additionalHeaders) throws ApiExceptionUpdate an external feed This endpoint will update an external feed.- Parameters:
uuid- UUID of the feed to update (required)updateExternalFeed- Values to update a feed (required)additionalHeaders- additionalHeaders for this call- Throws:
ApiException- if fails to make API call
-
invokeAPI
public <T> T invokeAPI(String url, String method, Object request, com.fasterxml.jackson.core.type.TypeReference<T> returnType, Map<String, String> additionalHeaders) throws ApiExceptionDescription copied from class:BaseApiDirectly invoke the API for the given URL. Useful if the API returns direct links/URLs for subsequent requests.- Specified by:
invokeAPIin classBaseApi- Parameters:
url- The URL for the request, either full URL or only the path.method- The HTTP method for the request.request- The request object.returnType- The return type.additionalHeaders- Additional headers for the request.- Returns:
- The API response in the specified type.
- Throws:
ApiException- if fails to make API call.
-