2017 © Pedro Peláez
 

symfony-bundle mindbodyonline-api-bundle

Integrates MindBodyOnline.com API with Symfony 2

image

wmds/mindbodyonline-api-bundle

Integrates MindBodyOnline.com API with Symfony 2

  • Friday, October 25, 2013
  • by wmds
  • Repository
  • 2 Watchers
  • 4 Stars
  • 6,183 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 3 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

MindBodyAPIBundle

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();

The Versions

25/10 2013

dev-master

9999999-dev https://github.com/wmds/MindBodyAPIBundle

Integrates MindBodyOnline.com API with Symfony 2

  Sources   Download

MIT

The Requires

  • php >=5.3.2

 

The Development Requires

by WMD Solution SRL

bundle symfony mindbody mind body mindbodyonline.com