GET /assets/metrics/:metricId

Description

Get a metric/metric state/metric item image. The image is returned as a PNG.

Resource URL

https://api.playlyfe.com/assets/metrics/:metricId

Method

GET

Scopes

player, game, debug

Parameters

LocationParameter NameDefault ValueDescription
Querysize0Size of image. Available sizes are 'original', 'large', 'medium', 'small', 'icon'
QuerystateState name of which to return image. Only valid for metrics of type 'state'
QueryitemItem name of which to return image. Only valid for metrics of type 'set'

Example

Request
GET https://api.playlyfe.com/assets/metrics/karma?size=icon
Response
Binary Image Data of 'karma' metric
Request
GET https://api.playlyfe.com/assets/metrics/weapons?item=Excalibur&size;=large
Response
Binary Image Data of 'Excalibur' item in 'weapons' metric