Download the PHP package sendinblue/api-bundle without Composer
On this page you can find all versions of the php package sendinblue/api-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download sendinblue/api-bundle
More information about sendinblue/api-bundle
Files in sendinblue/api-bundle
Package api-bundle
Short Description Symfony bundle for sendinblue/api-v3-sdk
License MIT
Informations about the package api-bundle
NOTE:
This package has been deprecated. As an alternative, sendinblue/api-v3-sdk
can be used to integrate Sendinblue APIs.
This package will be archived on 31st October 2020 at 00:00:00 UTC.
sendinblue/api-bundle
This bundle integrates sendinblue/api-v3-sdk
into Symfony.
Installation
Step 1: Download the Bundle
Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:
This command requires you to have Composer installed globally, as explained in the installation chapter of the Composer documentation.
Step 2: Enable the Bundle
Then, enable the bundle by adding it to the list of registered bundles
in the app/AppKernel.php
file of your project:
Configuration
You’ll define the API client key under sendinblue_api.key
.
Then you’ll need to otp-in for the endpoints you want to access. One service will be created per endpoint:
- account
- attributes
- contacts
- email_campaigns
- folders
- lists
- process
- reseller
- senders
- sms_campaigns
- smtp
- transactional_sms
- webhooks
The service names will be sendinblue_api.%s_endpoint
where %s
is a value from the list above. The corresponding classes can be found under the SendinBlue\Client\Api
namespace.
Multiple clients
To use more than one client you must move key
and endpoints
parameter under a clients
associative array. Each client will be named by its key.
To access the first client account endpoint you’ll get the sendinblue_api.first_client.account_endpoint
service.
Default client
You can define a default client through the default_client
parameter; by default it is the first defined client. You can access the default client endpoints without adding its name in the service name. In the above example the sendinblue_api.account_endpoint
service would be an alias of sendinblue_api.first_client.account_endpoint
.
If you write
then sendinblue_api.account_endpoint
will be an alias of sendinblue_api.second_client.account_endpoint
.
All versions of api-bundle with dependencies
sendinblue/api-v3-sdk Version >=2 <6
symfony/config Version <5
symfony/dependency-injection Version >=2.6.2 <5
symfony/http-kernel Version <5