Skip to content

MGPelloni/cloudbeds

Repository files navigation

Cloudbeds

The Cloudbeds plugin allows users to connect their WordPress website to their Cloudbeds data using the Cloudbeds API.

PHP version WP version GitHub release CI status License: GPL v3 semantic-release: angular

Installation

Download the Cloudbeds plugin and install it on your WordPress site. Once the plugin is activated, navigate to "Settings -> Cloudbeds" within the WordPress administration bar. Follow the API integration instructions on the page to connect to Cloudbeds.

After the integration is complete, developers can interact with the API utilizing cloudbeds_api_get and cloudbeds_api_post with the name of the endpoint as the first parameter. Additional arguments can be added as the second parameter.

For example, you can utilize the cloudbeds_api_get function to retrieve and print room types:

$room_types = cloudbeds_api_get('getRoomTypes');

if ($room_types) {
    foreach ($room_types as $room_type) {
        echo esc_html($room_type['roomTypeName']);
    }
}

CLI Commands

  • wp cloudbeds data retrieves all stored data relevant to accessing Cloudbeds.
  • wp cloudbeds new-token will request a new access token from Cloudbeds.
  • wp cloudbeds reset will delete all Cloudbeds plugin data.

About

WordPress integration utilizing the Cloudbeds API.

Topics

Resources

License

Stars

Watchers

Forks

Contributors

Languages