Skip to content

rbayliss/PHP-Mindbody-API-Library

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHP Mindbody API Library

This library provides a set of PHP classes which allow one to interface with the Mindbody SOAP API in a fairly simple way.

The API's main documentation is available here.

Preparation

Before you can make use of this library, you will need to get a set of API credentials from Mindbody.

As well, you will need to know your Site ID.

This library will of course require the SOAP extension be installed and enabled in your PHP installation, and allow_url_fopen must be enabled.

Additionally, if you are running the librarygenerator.php script, you must have the DOM extension enabled, and you must install WSDL2PHP on your system.

Basic Usage

Here is a very basic usage example for the Site Service class, which should print out a full informational listing on locations associated with your specified site.

<?php
require("services/Site_Service.php");

$service = new Site_Service();

$parameters = new GetLocations();
$parameters->Request = new GetLocationsRequest();

$parameters->Request->SourceCredentials = new SourceCredentials();
$parameters->Request->SourceCredentials->SourceName = "YourSourceName";
$parameters->Request->SourceCredentials->Password = "YourPassword";
$parameters->Request->SourceCredentials->SiteIDs = array(
    1234 // Your Site ID(s)
);

$locations = $service->GetLocations($parameters);

var_dump($locations);
?>

About

A PHP-based library for interfacing with Mindbody's SOAP API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%