dev-master
9999999-dev https://github.com/wmds/MindBodyAPIBundleIntegrates MindBodyOnline.com API with Symfony 2
MIT
The Requires
- php >=5.3.2
The Development Requires
by WMD Solution SRL
bundle symfony mindbody mind body mindbodyonline.com
Wallogit.com
2017 © Pedro Peláez
Integrates MindBodyOnline.com API with Symfony 2
Integrates MindBodyOnline.com API with Symfony 2, (*1)
1. Installing the bundle, (*2)
php composer.phar require wmds/mindbodyonline-api-bundle dev-master
Add the bundle to your AppKernel.php file:, (*3)
// app/AppKernel.php
public function registerBundles()
{
return array(
// ...
new Wmds\MindBodyAPIBundle\WmdsMindBodyAPIBundle(),
// ...
);
}
Add config data to your app/config/config.yml file :, (*4)
# app/config/config.yml
wmds_mind_body_api:
api_user: YourSourceName # (Required)
api_key: YourPassword # (Required)
site_ids: [ 100 ] # (Required) if not set, default to -99 (sandbox)
sandbox: true # (Optional) default: true
debug: false # (Optional) default: false
xml: 'Full' # (Optional) default: Full, possible: Bare, Basic, Full
2. How to use it, (*5)
This bundle is a service, to use it:, (*6)
// Anywhere in your controller
$mbapi = $this->get('wmds_mind_body_api');
MindBodyOnline.com has a list of available services that you can check on http://api.mindbodyonline.com/Doc To use an API service:, (*7)
// Get the SaleService
$sale = $mbapi->getService('sale');
//Get the AppointmentService
$appointment = $mbapi->getService('AppoinTment'); // string passed is case insensitive
this will automatically set the $sale object, initiate the SOAP object and passes the wsdl url., (*8)
To make a request, call the setParam() function to add all the parameters that you need and then execute():, (*9)
$products = $sale->setAction('GetProducts')
->setParam('SellOnline',true)
->execute();
Integrates MindBodyOnline.com API with Symfony 2
MIT
bundle symfony mindbody mind body mindbodyonline.com