定制 offspring/mindbody-php-api 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

offspring/mindbody-php-api

最新稳定版本:2.1

Composer 安装命令:

composer require offspring/mindbody-php-api

包简介

A PHP wrapper for the MINDBODY Online API

README 文档

README

PHP wrapper class for interacting with Mindbody's API via soap. Requires PHP >= 5.3 with SOAP extension.

Install with composer or clone the repository. Include src/MB_API.php or include vendor/autoload.php if using composer.

Update the MB_API.php file with your Mindbody API source credentials or include them as a parameter to the MB_API constructor

$mb = new \DevinCrossman\Mindbody\MB_API(array( "SourceName"=>'REPLACE_WITH_YOUR_SOURCENAME', "Password"=>'REPLACE_WITH_YOUR_PASSWORD', "SiteIDs"=>array('REPLACE_WITH_YOUR_SITE_ID') )); // CheckoutShoppingCart $checkoutShoppingCartRequest = $mb->CheckoutShoppingCart(array( 'Test'=>'true', 'ClientID'=>1234, 'CartItems'=>array( 'CartItem'=>array( 'Quantity'=>1, 'Item' => new SoapVar( array('ID'=>'1357'), SOAP_ENC_ARRAY, 'Service', 'http://clients.mindbodyonline.com/api/0_5' ), 'DiscountAmount' => 0 ) ), 'Payments' => array( 'PaymentInfo' => new SoapVar( array( 'CreditCardNumber'=>'4111111111111111', 'ExpYear'=>'2015', 'ExpMonth'=>'06', 'Amount'=>'130', 'BillingAddress'=>'123 Happy Ln', 'BillingPostalCode'=>'93405' ), SOAP_ENC_ARRAY, 'CreditCardInfo', 'http://clients.mindbodyonline.com/api/0_5' ) ) )); // GetServices $options = array( 'LocationID'=>1, 'HideRelatedPrograms'=>true ); $servicesData = $mb->GetServices($options); // FunctionData $options = array( 'FunctionName'=>'my_function', 'FunctionParams'=>array( array( 'ParamName'=>'@startDate', 'ParamValue'=>'2014-05-01', 'ParamDataType'=>'datetime' ), array( 'ParamName'=>'@endDate', 'ParamValue'=>'2014-05-30', 'ParamDataType'=>'datetime' ) ) ); $data = $mb->FunctionDataXml($options); 

See the examples folder for other examples Read MINDBODY's API Documentation for more parameters.

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 17
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-01-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固