Skip to content
v3.0.0

Machine

No. 009 Machine 1 endpoint

Suspending calls

Every PokeApi.get() snippet below is suspend — see Suspending calls for what that means and the getBlocking alternative.

Machine

The class Machine can be used to get data from the /machine/{id or name} endpoint.

val machine = PokeApi.get<Machine>(id = 1)