Skip to content

Getting Started

Please follow the installation procedure and then run the following. You will need to fill in your own API token (YOUR_API_TOKEN). Documentation on creating an API token can be found here.

import ubiops

configuration = ubiops.Configuration()
configuration.api_key['Authorization'] = 'YOUR_API_TOKEN'

# Defining host is optional and default to https://api.ubiops.com/v2.1
configuration.host = "https://api.ubiops.com/v2.1"

client = ubiops.ApiClient(configuration)
api = ubiops.CoreApi(client)

print(api.service_status())

# Close the connection
client.close()