The Cloudbeds plugin allows users to connect their WordPress website to their Cloudbeds data using the Cloudbeds API.
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']);
}
}wp cloudbeds dataretrieves all stored data relevant to accessing Cloudbeds.wp cloudbeds new-tokenwill request a new access token from Cloudbeds.wp cloudbeds resetwill delete all Cloudbeds plugin data.