Skip to main content

HttpClient

Methods

__init__()

request()

Make an HTTP request to the Datagrok API.

Parameters

NameTypeDescription
methodstrHTTP method to use (e.g., "GET", "POST", "PUT", "DELETE").
endpointstrAPI endpoint path, relative to the base URL.
headersdict of str to str, optionalOptional 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

TypeDescription
requests.ResponseThe response returned by the API. Raises Exception If the API returns an error or if the response is not successful

get()

post()

delete()

close()

__enter__()

__exit__()