Skip to content

Latest commit

 

History

History
87 lines (57 loc) · 2.69 KB

File metadata and controls

87 lines (57 loc) · 2.69 KB

cloudbeds_fiscal_document.FeaturesApi

All URIs are relative to http://localhost:8700

Method HTTP request Description
get_property_features GET /fiscal-document/v1/property/features Get enabled features for the current user and property

get_property_features

Dict[str, bool] get_property_features(x_property_id)

Get enabled features for the current user and property

Returns a map of feature flags enabled for the authenticated user in the context of the current property.

Example

  • Bearer (JWT) Authentication (bearerAuth):
import cloudbeds_fiscal_document
from cloudbeds_fiscal_document.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to http://localhost:8700
# See configuration.py for a list of all supported configuration parameters.
configuration = cloudbeds_fiscal_document.Configuration(
    host = "http://localhost:8700"
)

# 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.

# Configure Bearer authorization (JWT): bearerAuth
configuration = cloudbeds_fiscal_document.Configuration(
    access_token = os.environ["BEARER_TOKEN"]
)

# Enter a context with an instance of the API client
with cloudbeds_fiscal_document.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = cloudbeds_fiscal_document.FeaturesApi(api_client)
    x_property_id = 56 # int | Property id

    try:
        # Get enabled features for the current user and property
        api_response = api_instance.get_property_features(x_property_id)
        print("The response of FeaturesApi->get_property_features:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling FeaturesApi->get_property_features: %s\n" % e)

Parameters

Name Type Description Notes
x_property_id int Property id

Return type

Dict[str, bool]

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 Map of enabled features -

[Back to top] [Back to API list] [Back to Model list] [Back to README]