WP Manifestindependent plugin directory
manifest / events / make-booking-api

Make Santa Fe Reservations API

A WordPress plugin that creates endpoints to create and manage bookings at a customer level

★ 1stars

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/mindsharelabs/make-booking-api/archive/refs/heads/main.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

A WordPress plugin that establishes API endpoints for managing reservations at a customer level.

Returning Users (or existing website users)

Endpoint: /wp-json/experience/v1/login

Example Post

fetch('https://makesantafe.org/wp-json/experience/v1/login', {
  method: 'POST',
  headers: {
    Accept: 'application/json',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    clientID: [clientID],//constant defined in app that matches API constant
    email: [user_email],//email address that user used to signup with
    password: [user_password],//password chosen by user
  }),
})

Example Return

{
    "success": true,
    "message": "Success!",
    "user_key": "[key associated with the user]"
}

Updating User Information

Endpoint: /wp-json/experience/v1/userprofile_update

Example Post

fetch('https://makesantafe.org/wp-json/experience/v1/userprofile_update', {
  method: 'POST',
  headers: {
    Accept: 'application/json',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    clientID: [clientID],//constant defined in app that matches API constant
    userKey: [userKey],//email address that user used to signup with
    options: [
      //TODO: Add options to update
    ]
  }),
})

Example Return

{
    //TODO: Returns the options and updated values
}

User Profile Screen

Endpoint: /wp-json/experience/v1/userprofile

Example Post

fetch('https://makesantafe.org/wp-json/experience/v1/userprofile', {
  method: 'POST',
  headers: {
    Accept: 'application/json',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    clientID: [clientID],//constant defined in app that matches API constant
    userKey: [userKey], //userKey returned during the login or account creation process
  }),
})

Example Return

{
    "userID": "4",
    "success": true,
    "name": "support@mindsharelabs.com",
    "user_meta": {
        //TODO: Update DOCS with proper return
    },
    "options": {
        //TODO: Update DOCS with proper return
    },
}