定制 bookingtime/lib-phpsdk-module 二次开发

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

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

bookingtime/lib-phpsdk-module

最新稳定版本:v1.1.3

Composer 安装命令:

composer require bookingtime/lib-phpsdk-module

包简介

php SDK for bt3.0 App-API

README 文档

README

php SDK for bookingtime module-API

logo php

Requirements

  • PHP >= 7.3
  • A PSR-4 implementation

How To Install

The recommended way to install the SDK is through Composer.

composer require bookingtime/lib-phpsdk-module

see: https://packagist.org/packages/bookingtime/lib-phpsdk-module

Getting Started

<?php
use bookingtime\phpsdkmodule\Sdk;

//create SDK
$sdk=new Sdk(
   '<CLIENT_ID>',
   '',
   ['locale'=>'en','timeout'=>15,'mock'=>FALSE]
);

//load moduleConfig for submitted organizationId/moduleConfigId
$moduleConfig=$sdk->moduleConfig_show([
   'organizationId'=>'f6xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
   'moduleConfigId'=>'5fxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
]);

//list all available bookingTemplates
$bookingTemplateArray=$sdk->bookingTemplate_list([
   'organizationId'=>'f6xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
]);

//get list of possible bookingSlots for selected bookingTemplate and week
$bookingSlotArray=$sdk->bookingSlot_listWeek([
   'organizationId'=>'f6xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
   'bookingTemplateId'=>'fcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
   'year'=>'2023',
   'week'=>'39',
]);

//book a new appointment
$appointment=$sdk->appointment_add([
   'organizationId'=>'f6xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
],[
   'bookingSlotId'=>'brxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
   'notes'=>'My first appointment',
   'customer'=>[
      'gender'=>'MALE',
      'firstName'=>'Max',
      'lastName'=>'Mustermann',
      'email'=>'m.mustermann@bookingtime.com',
   ],
]);

Help and docs

Security

If you discover a security vulnerability within this package, please send an email to support@bookingtime.com or create a ticket on https://developer.bookingtime.com/hc/en-us/requests/new. All security vulnerabilities will be promptly addressed.

License

This SDK is distributed under the MIT License, see LICENSE file for more information.

Copyright 2014 bookingtime GmbH. All Rights Reserved.

Made by © bookingtime

logo

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-11-03