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

Method getClient

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

Source from the content-addressed store, hash-verified

385 return None
386
387 def getClient(self,profile):
388 apiAddress = self.getAPIaddress(profile)
389 apiKey = self.getAPIkey(profile)
390 caCert = self.getCert(profile)
391 bearer = None
392
393 if apiKey is None:
394 bearer = self.getBearerToken(profile)
395
396 return Algorithmia.client(api_key=apiKey,api_address=apiAddress,ca_cert=caCert,bearer_token = bearer)

Callers 2

mainFunction · 0.80
authMethod · 0.80

Calls 4

getAPIaddressMethod · 0.95
getAPIkeyMethod · 0.95
getCertMethod · 0.95
getBearerTokenMethod · 0.95

Tested by

no test coverage detected