Class SendersApi

java.lang.Object
software.xdev.brevo.client.BaseApi
software.xdev.brevo.api.SendersApi

public class SendersApi extends BaseApi
  • Constructor Details

    • SendersApi

      public SendersApi()
    • SendersApi

      public SendersApi(ApiClient apiClient)
  • Method Details

    • createSender

      public CreateSenderModel createSender(@Nullable CreateSender sender) throws ApiException
      Create a new sender
      Parameters:
      sender - sender's name (optional)
      Returns:
      CreateSenderModel
      Throws:
      ApiException - if fails to make API call
    • createSender

      public CreateSenderModel createSender(@Nullable CreateSender sender, Map<String,String> additionalHeaders) throws ApiException
      Create a new sender
      Parameters:
      sender - sender's name (optional)
      additionalHeaders - additionalHeaders for this call
      Returns:
      CreateSenderModel
      Throws:
      ApiException - if fails to make API call
    • deleteSender

      public void deleteSender(@Nonnull Long senderId) throws ApiException
      Delete a sender
      Parameters:
      senderId - Id of the sender (required)
      Throws:
      ApiException - if fails to make API call
    • deleteSender

      public void deleteSender(@Nonnull Long senderId, Map<String,String> additionalHeaders) throws ApiException
      Delete a sender
      Parameters:
      senderId - Id of the sender (required)
      additionalHeaders - additionalHeaders for this call
      Throws:
      ApiException - if fails to make API call
    • getIps

      public GetIps getIps() throws ApiException
      Get all the dedicated IPs for your account
      Returns:
      GetIps
      Throws:
      ApiException - if fails to make API call
    • getIps

      public GetIps getIps(Map<String,String> additionalHeaders) throws ApiException
      Get all the dedicated IPs for your account
      Parameters:
      additionalHeaders - additionalHeaders for this call
      Returns:
      GetIps
      Throws:
      ApiException - if fails to make API call
    • getIpsFromSender

      public GetIpsFromSender getIpsFromSender(@Nonnull Long senderId) throws ApiException
      Get all the dedicated IPs for a sender
      Parameters:
      senderId - Id of the sender (required)
      Returns:
      GetIpsFromSender
      Throws:
      ApiException - if fails to make API call
    • getIpsFromSender

      public GetIpsFromSender getIpsFromSender(@Nonnull Long senderId, Map<String,String> additionalHeaders) throws ApiException
      Get all the dedicated IPs for a sender
      Parameters:
      senderId - Id of the sender (required)
      additionalHeaders - additionalHeaders for this call
      Returns:
      GetIpsFromSender
      Throws:
      ApiException - if fails to make API call
    • getSenders

      public GetSendersList getSenders(@Nullable String ip, @Nullable String domain) throws ApiException
      Get the list of all your senders
      Parameters:
      ip - Filter your senders for a specific ip. **Available for dedicated IP usage only** (optional)
      domain - Filter your senders for a specific domain (optional)
      Returns:
      GetSendersList
      Throws:
      ApiException - if fails to make API call
    • getSenders

      public GetSendersList getSenders(@Nullable String ip, @Nullable String domain, Map<String,String> additionalHeaders) throws ApiException
      Get the list of all your senders
      Parameters:
      ip - Filter your senders for a specific ip. **Available for dedicated IP usage only** (optional)
      domain - Filter your senders for a specific domain (optional)
      additionalHeaders - additionalHeaders for this call
      Returns:
      GetSendersList
      Throws:
      ApiException - if fails to make API call
    • updateSender

      public void updateSender(@Nonnull Long senderId, @Nullable UpdateSender sender) throws ApiException
      Update a sender
      Parameters:
      senderId - Id of the sender (required)
      sender - sender's name (optional)
      Throws:
      ApiException - if fails to make API call
    • updateSender

      public void updateSender(@Nonnull Long senderId, @Nullable UpdateSender sender, Map<String,String> additionalHeaders) throws ApiException
      Update a sender
      Parameters:
      senderId - Id of the sender (required)
      sender - sender's name (optional)
      additionalHeaders - additionalHeaders for this call
      Throws:
      ApiException - if fails to make API call
    • validateSenderByOTP

      public void validateSenderByOTP(@Nonnull Long senderId, @Nullable Otp sender) throws ApiException
      Validate Sender using OTP
      Parameters:
      senderId - Id of the sender (required)
      sender - otp (optional)
      Throws:
      ApiException - if fails to make API call
    • validateSenderByOTP

      public void validateSenderByOTP(@Nonnull Long senderId, @Nullable Otp sender, Map<String,String> additionalHeaders) throws ApiException
      Validate Sender using OTP
      Parameters:
      senderId - Id of the sender (required)
      sender - otp (optional)
      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 ApiException
      Description copied from class: BaseApi
      Directly invoke the API for the given URL. Useful if the API returns direct links/URLs for subsequent requests.
      Specified by:
      invokeAPI in class BaseApi
      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.