Skip to content

motopress/hotel-booking-rest-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

To work with the MotoPress Hotel Booking REST API, you must go through authentication.
The following authentication methods are supported:

  • Basic Auth
  • OAuth 1

To authenticate, you are required to have two access tokens:

  • consumer_key
  • consumer_secret

You can create access tokens in the administrator dashboard: Accommodation > Settings > Advanced

In the REST API responses, you can see response-related links. For the better REST API usability and performance, some links can be embeddable resources.

To get an extended response with embedded resources in the request, add the GET parameter _embed.

Specify the list of IDs required for embedding links separated by commas.

Or add _embed = true to embed all related resources.

Try it out

  1. Follow this link and click the Start Free Trial button to create your demo site.
  2. Confirm the creation of your site via email.
  3. Log in to your demo.
  4. Create access tokens in the administration dashboard: Accommodation > Settings > Advanced.
  5. Navigate to Hotel Booking REST API documentation.
  6. Fill in the demo-id field using a part of URL value of your created demo site.
    For example if your demo URL is hbdemo.getmotopress.com/z8p5rxxxx7xfeck/wp-admin, then demo-id is z8p5rxxxx7xfeck.
  7. To log in, click the Authorize button and use the consumer_key and consumer_secret credentials.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published