Class ExternalFeedsApi

java.lang.Object
software.xdev.brevo.api.ExternalFeedsApi

@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class ExternalFeedsApi extends Object
  • Constructor Details

    • ExternalFeedsApi

      public ExternalFeedsApi()
    • ExternalFeedsApi

      public ExternalFeedsApi(ApiClient apiClient)
  • Method Details

    • getApiClient

      public ApiClient getApiClient()
    • setApiClient

      public void setApiClient(ApiClient apiClient)
    • createExternalFeed

      public CreateExternalFeed201Response createExternalFeed(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(CreateExternalFeed createExternalFeed, Map<String,String> additionalHeaders) throws ApiException
      Create 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

      public void deleteExternalFeed(String uuid) throws ApiException
      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(String uuid, Map<String,String> additionalHeaders) throws ApiException
      Delete 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(String search, LocalDate startDate, LocalDate endDate, String sort, String authType, Long limit, 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(String search, LocalDate startDate, LocalDate endDate, String sort, String authType, Long limit, Long offset, Map<String,String> additionalHeaders) 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)
      additionalHeaders - additionalHeaders for this call
      Returns:
      GetAllExternalFeeds
      Throws:
      ApiException - if fails to make API call
    • getExternalFeedByUUID

      public GetExternalFeedByUUID getExternalFeedByUUID(String uuid) throws ApiException
      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(String uuid, Map<String,String> additionalHeaders) throws ApiException
      Get 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(String uuid, 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(String uuid, UpdateExternalFeed updateExternalFeed, Map<String,String> additionalHeaders) 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)
      additionalHeaders - additionalHeaders for this call
      Throws:
      ApiException - if fails to make API call