MCPcopy Index your code
hub / github.com/algorithmiaio/algorithmia-python / getBearerToken

Method getBearerToken

Algorithmia/CLI.py:359–366  ·  view source on GitHub ↗
(self,profile)

Source from the content-addressed store, hash-verified

357 return None
358
359 def getBearerToken(self,profile):
360 key = self.getconfigfile()
361 config_dict = toml.load(key)
362 if 'profiles' in config_dict and profile in config_dict['profiles'] and \
363 config_dict['profiles'][profile]['bearer_token'] != "":
364 return config_dict['profiles'][profile]['bearer_token']
365 else:
366 return None
367
368
369 def getAPIaddress(self, profile):

Callers 2

getClientMethod · 0.95
test_auth_tokenMethod · 0.80

Calls 2

getconfigfileMethod · 0.95
loadMethod · 0.80

Tested by 1

test_auth_tokenMethod · 0.64