All URIs are relative to https://api.cloudbeds.com
| Method | HTTP request | Description |
|---|---|---|
| addon_controller_get_addons | GET /addons/v1/addons | Retrieve property add-ons |
AddonsResponseSchema addon_controller_get_addons(x_property_id, limit=limit, offset=offset, filters=filters, accept_language=accept_language)
Retrieve property add-ons
Fetches list of Add-ons with basic information for a specific property
- OAuth Authentication (default):
import cloudbeds_pms
from cloudbeds_pms.models.addons_response_schema import AddonsResponseSchema
from cloudbeds_pms.models.query_parameter_dynamic_filter_schema import QueryParameterDynamicFilterSchema
from cloudbeds_pms.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://api.cloudbeds.com
# See configuration.py for a list of all supported configuration parameters.
configuration = cloudbeds_pms.Configuration(
host = "https://api.cloudbeds.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
configuration.access_token = os.environ["ACCESS_TOKEN"]
# Enter a context with an instance of the API client
with cloudbeds_pms.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = cloudbeds_pms.AddonsApi(api_client)
x_property_id = '1,2,3' # str | A numeric, comma-separated string representing the property IDs, sent in the header.
limit = 100 # int | The maximum number of items to return in the response. Default is 100. (optional) (default to 100)
offset = 0 # int | The number of items to skip before starting to collect the result set. Used for pagination. (optional) (default to 0)
filters = cloudbeds_pms.QueryParameterDynamicFilterSchema() # QueryParameterDynamicFilterSchema | This parameter should be formatted as a list of strings separated by ; (optional)
accept_language = 'accept_language_example' # str | The preferred language(s) for localized strings (e.g., en-US) (optional)
try:
# Retrieve property add-ons
api_response = api_instance.addon_controller_get_addons(x_property_id, limit=limit, offset=offset, filters=filters, accept_language=accept_language)
print("The response of AddonsApi->addon_controller_get_addons:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling AddonsApi->addon_controller_get_addons: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| x_property_id | str | A numeric, comma-separated string representing the property IDs, sent in the header. | |
| limit | int | The maximum number of items to return in the response. Default is 100. | [optional] [default to 100] |
| offset | int | The number of items to skip before starting to collect the result set. Used for pagination. | [optional] [default to 0] |
| filters | QueryParameterDynamicFilterSchema | This parameter should be formatted as a list of strings separated by ; | [optional] |
| accept_language | str | The preferred language(s) for localized strings (e.g., en-US) | [optional] |
- Content-Type: Not defined
- Accept: application/json, application/problem+json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Successful response | - |
| 400 | Bad Request - Invalid input parameters | - |
| 401 | Unauthorized - Invalid or missing authentication | - |
| 403 | Forbidden - Insufficient permissions | - |
| 500 | Internal Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]