ex: test-api
()
| 111 | "test-api", short_help="Make an authenticated GET request to an API endpoint" |
| 112 | ) |
| 113 | def api_get(): |
| 114 | """ |
| 115 | ex: test-api |
| 116 | """ |
| 117 | api_endpoint = get_api_endpoint() |
| 118 | api = ApiClient(endpoint_url=api_endpoint) |
| 119 | api.set_access_token(get_access_token()) |
| 120 | organizations = api.get_list_organizations() |
| 121 | print(organizations) |
| 122 | |
| 123 | |
| 124 | @codecarbon.command("login", short_help="Login to CodeCarbon") |
nothing calls this directly
no test coverage detected
searching dependent graphs…