Source code for pybricks.clusters
import json
import os
import requests
[docs]class ClustersApi(object):
"""The Clusters API"""
def __init__(self, hostname, token):
self.hostname = "%s/api/" % hostname
self.__headers = {'authorization': "Bearer %s" % token, "content-type": "application/scim+json",
"accept": "application/scim+json"}