Skip to main content
Version: v1.0

get(_:)

Fetches and prints details of the model with the provided ID.

Declaration​

func get(_ modelID: String) async throws -> Model

Parameters​

modelID

The unique identifier of the model to fetch.

Discussion​

Note

ModelError if there are issues with API keys, URL construction, or decoding the response.

Note

NetworkingError if the network request fails with an invalid status code.