Make Santa Fe Reservations API
A WordPress plugin that creates endpoints to create and manage bookings at a customer level
by Mindshare Labs, Inc · github.com/mindsharelabs/make-booking-api · website
★ 1stars
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/mindsharelabs/make-booking-api/archive/refs/heads/main.zipA 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
},
}