forked from Rybo-Cloud/booked-php-api-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbookedapiconfig.php
78 lines (68 loc) · 2.41 KB
/
bookedapiconfig.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
<?php
/**
* Title: booked-php-api-client
* Ver: 0.0.1 Beta
* By: Ryan C Crawford
* Email: [email protected]
*
* This file is part of Booked PHP Client Libary.
* There are other files that make up the whole libary
* and that are dependent on this file or that this file is dependent on.
*
*
*/
//Change these to match your server and time zone.
const YOURTIMEZONE = 'America/New_York';
const BOOKEDWEBSERVICESURL = 'http://your-domain/booked/web/services/index.php';
// Endpoints
const AUTHENTICATE = '/Authentication/Authenticate';
const GETRESOURCES = '/Resources/';
const GETRESERVATIONS ='/Reservations/';
const FILTERRESERVATION = '/Reservations';
const GETAVAILABILITY = '/Resources/Availability';
const GETACCESSORY = '/Accessories/';
const GETCATATTRIBUTE = '/Attributes/Category/';
const GETATTRIBUTE = '/Attributes/';
const GETGROUPS = '/Groups/';
const RESERVATIONS = '/Reservations/';
const SCHEDULES = '/Schedules/';
const SLOTS = '/Slots';
const STATUS = '/Status';
const STATUSREASONS = '/Reasons';
const RESOURCETYPES = '/Types';
const USERS = '/Users/';
const INTERVALHOURS = 'hours';
const INTERVALMINUTES = 'minutes';
const INTERVALDAYS = 'days';
// updateScope are this|full|future
const UPDATESCOPE_THIS = 'this';
const UPDATESCOPE_FULL = 'full';
const UPDATESCOPE_FUTURE = 'future';
// Recurrance Rule Const
//"recurrenceRule":{"type":"daily|monthly|none|weekly|yearly","interval":3,"monthlyType":"dayOfMonth|dayOfWeek|null","weekdays":[0,1,2,3,4,5,6],"repeatTerminationDate":"2015-09-16T20:51:36-0700"}
const RECURRENCETYPE_DAILY = 'daily';
const RECURRENCETYPE_MONTHLY = 'monthly';
const RECURRENCETYPE_NONE = 'none';
const RECURRENCETYPE_WEEKLY = 'weekly';
const RECURRENCETYPE_YEARLY = 'yearly';
const RECURRENCE_MONTHLY_TYPE_DAYOFMONTH = 'dayOfMonth';
const RECURRENCE_MONTHLY_TYPE_DAYOFWEEK = 'dayOfWeek';
const RECURRENCE_MONTHLY_TYPE_NULL = null;
const RECURRENCE_WEEKDAY_SUN = 0;
const RECURRENCE_WEEKDAY_MON = 1;
const RECURRENCE_WEEKDAY_TUE = 2;
const RECURRENCE_WEEKDAY_WED = 3;
const RECURRENCE_WEEKDAY_THR = 4;
const RECURRENCE_WEEKDAY_FRI = 5;
const RECURRENCE_WEEKDAY_SAT = 6;
// Attibute Categories
const ATT_CAT_RESERVATION = 1;
const ATT_CAT_USER = 2;
const ATT_CAT_RESOURCE = 4;
const ATT_CAT_RESOURCE_TYPE = 5;
// Attribute Types
const SINGLE_LINE_TEXT = 1;
const SELECT_LIST = 3;
const MULTI_LINE_TEXT = 2;
const CHECK_BOX = 4;
?>