core / com.vmadalin.core.network.services / MarvelService / getCharacter

getCharacter

@GET("/v1/public/characters/{id}") abstract suspend fun getCharacter(@Path("id") id: Long, @Query("apikey") apiKey: String, @Query("hash") hash: String, @Query("ts") timestamp: String): BaseResponse<CharacterResponse>

Fetches a single character resource. It is the canonical URI for any character resource provided by the API.

Parameters

id - A single character id.

apiKey - A unique identifier used to authenticate all calling to an API.

hash - A md5 digest of the ts parameter, private API key and public.

timestamp - A digital current record of the time.

Return
Response for single character resource.