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

Method _get_deprecated

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

Source from the content-addressed store, hash-verified

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"}
528 old_baseurl = "https://bs-dd-api-prototype.azurewebsites.net/"
529 if is_auth_required:
530 headers["Authorization"] = "Bearer " + self.get_access_token()
531 return requests.get(f"{old_baseurl}{endpoint}", timeout=10, headers=headers, params=params or None).json()
532
533 def post(self):
534 pass # TODO

Callers 9

ClassificationMethod · 0.95
CountryMethod · 0.95
DomainMethod · 0.95
LanguageMethod · 0.95
PropertyMethod · 0.95
PropertyValueMethod · 0.95
ReferenceDocumentMethod · 0.95
SearchListMethod · 0.95

Calls 2

get_access_tokenMethod · 0.95
getMethod · 0.45

Tested by

no test coverage detected