"Find all your bookings,past," Posts

Return to developer

API - Bookings

Find all your bookings, past, present and future.

EndPoint

https://wiggledesk.com/api/bookings/

Overview

This endpoint returns all your bookings; past, present and future. This can be helpful to integrate with calendaring tools or build workflows highlighting your upcoming schedule.

Past, present and future desk bookings

Behaviour

The API endpoint listens for GET requests, identifies who the request has come from and returns data on all the requester's bookings.

Before We Begin

First grab your API key from your profile page. If you don't see it, you'll need to double check with a WiggleDesk Admin that your account has been given access and that the steps outlined in our 'Getting started' page have been followed.

WiggleDesk's API can be tested with httpie which is a basic http client written in Python.

You can install httpie using pip:

pip install httpie

Access API Via Code

You can get a list of all your upcoming bookings by running this command in your command line / terminal (remember to swap out 'YOUR_SECRET_TOKEN' with your secret token):

http https://wiggledesk.com/api/bookings/ "Authorization: token YOUR_SECRET_TOKEN"

Response

It should return a json array like this (Assuming you have any bookings):

HTTP/1.1 200 OK
“count": 4,
"next": null,
"previous": null,

"results":
[
{
"event_id": "1",
"event_desk": "11",
"start_date": "2022-08-27 09:00",
"end_date": "2022-08-27 17:00",

"user": "William",

"event_details": "Client meeting",

"booking_reason", "Other"
},
{
"event_id": "2",
"event_desk": "9",
"start_date": "2022-08-28 09:00",
"end_date": "2022-08-29 17:00",

"user": "William",

"event_details": "",

"booking_reason", "WFO"
},

{
"event_id": "3",
"event_desk": "13",
"start_date": "2022-08-30 09:00",
"end_date": "2022-08-30 17:00",

"user": "William",

"event_details": "",

"booking_reason", "WFO"
},

{
"event_id": "4",
"event_desk": "9",
"start_date": "2022-08-20 09:00",
"end_date": "2022-08-24 17:00",

"user": "William",

"event_details": "",

"booking_reason", "WFO"
},
]

Access API Via ZAPIER

Coming Soon

Read More


API - My Upcoming Bookings

Find all your upcoming bookings.

EndPoint

https://wiggledesk.com/api/my_upcoming_bookings/

Overview

This endpoint returns all your upcoming bookings. This can be helpful to integrate with calendaring tools or build workflows highlighting your upcoming schedule.

Upcoming Desk Bookings

Behaviour

The API endpoint listens for GET requests, identifies who the request has come from and returns data on all the requester's upcoming bookings that have an end date beyond the time of the request.

Before We Begin

First grab your API key from your profile page. If you don't see it, you'll need to double check with a WiggleDesk Admin that your account has been given access and that the steps outlined in our 'Getting started' page have been followed.

WiggleDesk's API can be tested with httpie which is a basic http client written in Python.

You can install httpie using pip:

pip install httpie

Access API Via Code

You can get a list of all your upcoming bookings by running this command in your command line / terminal (remember to swap out 'YOUR_SECRET_TOKEN' with your secret token):

http https://wiggledesk.com/api/my_upcoming_bookings/ "Authorization: token YOUR_SECRET_TOKEN"

Response

It should return a json array like this (Assuming you have any upcoming bookings):

HTTP/1.1 200 OK
“count": 3,
"next": null,
"previous": null,

"results":
[
{
"event_id": "1",
"event_desk": "11",
"start_date": "2022-08-27 09:00",
"end_date": "2022-08-27 17:00",

"user": "William",

"event_details": "Client meeting",

"booking_reason", "Other"
},
{
"event_id": "2",
"event_desk": "9",
"start_date": "2022-08-28 09:00",
"end_date": "2022-08-29 17:00",

"user": "William",

"event_details": "",

"booking_reason", "WFO"
},

{
"event_id": "3",
"event_desk": "13",
"start_date": "2022-08-30 09:00",
"end_date": "2022-08-30 17:00",

"user": "William",

"event_details": "",

"booking_reason", "WFO"
},
]

Access API Via ZAPIER

Coming Soon

Read More


Today's Interesting DataPoint

Did you know, according to a recent McKinsey study, 47% of all jobs in the UK alone can be performed at least 1 day a week at home, without losing any measurable productivity?


What is WiggleDesk?

WiggleDesk is the easiest way to roll out and manage hybrid working in your organisation.

Get set up in 10 minutes, more info here.