PHP code example of thefrozenfire / mindbodyapi

1. Go to this page and download the library: Download thefrozenfire/mindbodyapi library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

thefrozenfire / mindbodyapi example snippets



vice = MindbodyAPI\MindbodyClient::service("SiteService");

$credentials = $service::credentials(
	"YourSourceName",
	"YourPassword",
	array(
		1234 // Your Site ID(s)
	)
);

$request = $service::request('GetLocations', $credentials);
$locations = $service->GetLocations($request);

var_dump($locations);