MCPcopy Create free account
hub / github.com/IfcOpenShell/IfcOpenShell / get

Method get

src/bsdd/bsdd.py:520–524  ·  view source on GitHub ↗
(self, endpoint, params=None, is_auth_required=False)

Source from the content-addressed store, hash-verified

518 self.client_id = "4aba821f-d4ff-498b-a462-c2837dbbba70"
519
520 def get(self, endpoint, params=None, is_auth_required=False):
521 headers = {"User-Agent": "IfcOpenShell.bSDD.py/0.8.0"}
522 if is_auth_required:
523 headers["Authorization"] = "Bearer " + self.get_access_token()
524 return requests.get(f"{self.baseurl}{endpoint}", timeout=10, headers=headers, params=params or None).json()
525
526 def _get_deprecated(self, endpoint, params=None, is_auth_required=False):
527 headers = {"User-Agent": "IfcOpenShell.bSDD.py/0.8.0"}

Callers 15

SearchListOpenMethod · 0.95
UnitMethod · 0.95
get_dictionaryMethod · 0.95
get_classesMethod · 0.95
get_propertiesMethod · 0.95
get_classMethod · 0.95
get_class_relationsMethod · 0.95
get_class_propertiesMethod · 0.95
get_propertyMethod · 0.95
get_property_valueMethod · 0.95
search_textMethod · 0.95
search_in_dictionaryMethod · 0.95

Calls 1

get_access_tokenMethod · 0.95

Tested by

no test coverage detected