You are here

interface SendInBlueApiInterface in SendinBlue 7.2

Interface for SendInBlue API.

Hierarchy

Expanded class hierarchy of SendInBlueApiInterface

All classes that implement SendInBlueApiInterface

File

includes/Api/SendInBlueApiInterface.php, line 6

View source
interface SendInBlueApiInterface {

  /**
   * Set the SendinBlue APIKEY.
   *
   * @param string|null $apiKey
   *   SendInBlue Apikey.
   */
  public function setApiKey($apiKey);

  /**
   * Get the details of an account.
   *
   * @return GetAccount
   *   An array of account detail.
   */
  public function getAccount();

  /**
   * Get templates.
   *
   * @return GetSmtpTemplates
   *   An array of campaigns.
   */
  public function getTemplates();

  /**
   * Get template by id.
   *
   * @param string $id
   *   A template identification.
   *
   * @return GetSmtpTemplateOverview
   *   A template.
   */
  public function getTemplate($id);

  /**
   * Get lists of an account.
   *
   * @return GetLists
   *   An array of all lists.
   */
  public function getLists();

  /**
   * Get list by id.
   *
   * @param string $id
   *   A list identification.
   *
   * @return GetExtendedList
   *   An array of lists.
   */
  public function getList($id);

  /**
   * Send email via sendinblue.
   *
   * @param array $to
   *   A recipe email address.
   * @param string $subject
   *   A subject of email.
   * @param string $html
   *   A html body of email content.
   * @param string $text
   *   A text body of email content.
   * @param array $from
   *   A sender email address.
   * @param array $replyto
   *   A reply address.
   * @param array $cc
   *   A cc address.
   * @param array $bcc
   *   A bcc address.
   * @param array $attachment
   *   A attachment information.
   * @param array $headers
   *   A header of email.
   *
   * @return CreateSmtpEmail
   *   An array of response code.
   */
  public function sendEmail(array $to, string $subject, string $html, string $text, array $from = [], array $replyto = [], array $cc = [], array $bcc = [], array $attachment = [], array $headers = []);

  /**
   * Get user by email.
   *
   * @param string $email
   *   An email address.
   *
   * @return GetExtendedContactDetails
   *   An array of response code.
   */
  public function getUser($email);

  /**
   * Create and update user.
   *
   * @param string $email
   *   An email address of user.
   * @param array $attributes
   *   An attributes to update.
   * @param array $blacklisted
   *   An array of black user.
   * @param string $listid
   *   A new listid.
   * @param string $listid_unlink
   *   A link unlink.
   */
  public function createUpdateUser($email, array $attributes = [], array $blacklisted = [], $listid = '', $listid_unlink = '');

  /**
   * Get attribute by type.
   *
   * @return GetAttributes
   *   An array of attributes.
   */
  public function getAttributes();

  /**
   * Get the access token.
   *
   * @return string
   *   An access token information.
   */
  public function getAccessTokens();

  /**
   * Get the details of smtp.
   *
   * @return GetSmtpDetails
   *   A smtp details.
   */
  public function getSmtpDetails();

  /**
   * Count all users of lists.
   *
   * @param array $listids
   *   An array of lists.
   *
   * @return int
   *   Number of users.
   */
  public function countUserlists(array $listids = []);

  /**
   * Add the Partner's name in sendinblue.
   */
  public function partnerDrupal();

}

Members

Namesort descending Modifiers Type Description Overrides
SendInBlueApiInterface::countUserlists public function Count all users of lists. 2
SendInBlueApiInterface::createUpdateUser public function Create and update user. 2
SendInBlueApiInterface::getAccessTokens public function Get the access token. 2
SendInBlueApiInterface::getAccount public function Get the details of an account. 2
SendInBlueApiInterface::getAttributes public function Get attribute by type. 2
SendInBlueApiInterface::getList public function Get list by id. 2
SendInBlueApiInterface::getLists public function Get lists of an account. 2
SendInBlueApiInterface::getSmtpDetails public function Get the details of smtp. 2
SendInBlueApiInterface::getTemplate public function Get template by id. 2
SendInBlueApiInterface::getTemplates public function Get templates. 2
SendInBlueApiInterface::getUser public function Get user by email. 2
SendInBlueApiInterface::partnerDrupal public function Add the Partner's name in sendinblue. 2
SendInBlueApiInterface::sendEmail public function Send email via sendinblue. 2
SendInBlueApiInterface::setApiKey public function Set the SendinBlue APIKEY. 2