mattzuba/php-acuity

PHP Implementation of Acuity API

v1.0.1 2015-05-09 22:29 UTC

This package is auto-updated.

Last update: 2020-07-19 00:59:14 UTC


README

This is a very simple class that extends Guzzle's CommandClient with a Service Description for Acuity's API.

Installation is very simple, done through composer:

composer require mattzuba/php-acuity

Once installed, create and use the client like so:

<?php

require 'vendor/autoload.php';

use Acuity\Client;

$acuity = new Client($userId, $apiKey);

var_dump($acuity->getAppointments());

Methods

To view the available parameters for the different methods, view Acuity's documentation. Methods that retrieve a single item require an array as a parameter with a single key/value pair of 'id' and the id of the item.

Methods that return data will return an array for single items, or an array of arrays for collections.

Acuity\Client::getAppointments()

Acuity\Client::getAppointment()

Acuity\Client::getCanceledAppointments()

Acuity\Client::block()

Acuity\Client::getBlock()

Acuity\Client::deleteBlock()

Acuity\Client::getCalendars()

Acuity\Client::getOrders()