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

Method get_access_token

src/bcf/bcf/v3/bcfapi.py:60–67  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

58 self.redirect_subdir = redirect_subdir
59
60 def get_access_token(self) -> str:
61 if self.access_token and self.access_token_expires_on > time.time():
62 return self.access_token
63 elif self.refresh_token and self.refresh_token_expires_on > time.time():
64 self.get_refresh_token()
65 else:
66 self.login()
67 return self.access_token
68
69 def get_auth_methods(self) -> list[Any]:
70 resp = requests.get(f"{self.baseurl}foundation/1.0/auth")

Callers 9

getMethod · 0.45
postMethod · 0.45
putMethod · 0.45
deleteMethod · 0.45
update_projectMethod · 0.45
get_snippetMethod · 0.45
update_snippetMethod · 0.45
create_documentMethod · 0.45
get_documentMethod · 0.45

Calls 2

get_refresh_tokenMethod · 0.95
loginMethod · 0.95

Tested by

no test coverage detected