thefrozenfire/mindbodyapi 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

thefrozenfire/mindbodyapi

最新稳定版本:1.0.2

Composer 安装命令:

composer require thefrozenfire/mindbodyapi

包简介

PHP library for interacting with the Mindbody Online API

README 文档

README

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 through the API portal.

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.
Your API credentials must be authorized for your Site ID using the SiteService::GetActivationCode method.

The API sandbox information can be found via the API FAQ.

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.

Installation

The most simple method of installation is via Composer. Simply add the thefrozenfire/mindbodyapi package as a requirement and update your project.

Alternatively, you can simply clone this project from GitHub.

This library supports PSR-0 autoloading, though you need to register the MindbodyAPI namespace as being in the root of the library, as opposed to vendor-prefixed.

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 'vendor/autoload.php';

$service = 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);

统计信息

  • 总下载量: 98.07k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 48
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 46
  • Watchers: 9
  • Forks: 25
  • 开发语言: PHP

其他信息

  • 授权协议: Apache-2.0
  • 更新时间: 2013-04-18