MakePlans API

Introduction

The API is REST-based and supports input/output of JSON and XML.

Authentication

All usage of the API requires authentication with http-basic. The username is an API-key and the password is empty. The API-key is available from 'Setup -> Account' in the menu when logged in as an administrator.

Examples

List all resources:

curl -u APIKEY: -H "Accept:application/json" -H "Content-Type: application/json" -X GET http://ACCOUNT.makeplans.net/manage/resources.json

To use XML replace application/json with application/xml and resources.json with resources.xml

New booking

curl -u APIKEY: -H "Accept:application/json" -H "Content-Type: application/json" -X POST http://ACCOUNT.makeplans.net/manage/bookings.json -d "{'booking': {'service_id': 14, 'booked_from' : '02.05.2010 12:00:00', 'booked_to' : '02.05.2010 13:00:00', 'person_attributes' : { 'email' : 'espen@inspired.no'} } }"

Parameters:

Field Required Datatype Example
Service_Id Yes Integer 14
Resource_Id No Integer 20
Booked_from Yes Dato 20.05.2010 12:00:00
Booked_to Yes Dato 20.05.2010 14:00:00
E-mail Yes String espen@inspired.no
Name No String Espen Antonsen