MCPcopy Create free account
hub / github.com/mlco2/codecarbon / set_access_token

Method set_access_token

codecarbon/core/api_client.py:75–80  ·  view source on GitHub ↗

This method sets the access token to be used for the API. Args: token (str): access token to be used for the API

(self, token: str)

Source from the content-addressed store, hash-verified

73 return headers
74
75 def set_access_token(self, token: str):
76 """This method sets the access token to be used for the API.
77 Args:
78 token (str): access token to be used for the API
79 """
80 self.access_token = token
81
82 def check_auth(self):
83 """

Callers 5

show_configFunction · 0.95
api_getFunction · 0.95
loginFunction · 0.95
configFunction · 0.95

Calls

no outgoing calls

Tested by 1