webservice
Doctorsender webservice to manage campaings, lists, users, etc.., (*1)
Install
composer require doctorsender/webservice:dev-master
Add it to your AppKernel.php, (*2)
public function registerBundles()
{
$bundles = array(
...
new Doctorsender\APIBundle\DoctorsenderAPIBundle()
);
Add in your config.yml or import configuration file., (*3)
doctorsender_api:
user: "username"
token: "your_api_token"
You can get your doctorsender ID from DOCTORSENDER, (*4)
You can override the api endpoint url by adding yourself the key [url], (*5)
doctorsender_api:
url: http://soapwebservice.doctorsender.com/server.wsdl <-default value
user: "username"
token: "your_api_token"
Usage
This bundle provides a service called 'doctorsender' with all necessary method to make api calls to doctorsender., (*6)
Controller example:, (*7)
public function defaultAction(){
$doctorsender = $this->get('doctorsender');
$doctorsender->dsCampaignNew(....);
...
}
You can find extended webservice api info in this link: API DOCS, (*8)