ApiBaseGetAsyncT Method
Sends a GET request to the specified URL.
Namespace: GenerativeAI.CoreAssembly: GenerativeAI (in GenerativeAI.dll) Version: 2.0.2+aa51399cad6d90cc71158d589a6268608b3c1893
protected Task<T> GetAsync<T>(
string url,
CancellationToken cancellationToken = default
)
- url String
- The full URL of the API endpoint.
- cancellationToken CancellationToken (Optional)
- Token to propagate notification that the operation should be canceled.
- T
- The type to deserialize the response into.
TaskTThe deserialized object from the response.