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
Location | Parameter Name | Default Value | Description |
---|---|---|---|
Query | size | 0 | Size of image. Available sizes are 'original', 'large', 'medium', 'small', 'icon' |
Query | state | State name of which to return image. Only valid for metrics of type 'state' | |
Query | item | Item 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