HttpClient
Methods
__init__()
request()
Make an HTTP request to the Datagrok API.
Parameters
| Name | Type | Description |
|---|---|---|
| method | str | HTTP method to use (e.g., "GET", "POST", "PUT", "DELETE"). |
| endpoint | str | API endpoint path, relative to the base URL. |
| headers | dict of str to str, optional | Optional headers to include or override for this request. **kwargs : Any Additional arguments to pass to requests.request (e.g., params, json, data, files, etc.). |
Returns
| Type | Description |
|---|---|
| requests.Response | The response returned by the API. Raises Exception If the API returns an error or if the response is not successful |