What are the unique asset IDs in a given asset class have accomplished a given task?
*Endpoint: https://generate-text-mrwwgrktvq-ue.a.run.app/report-asset-class-sum
Description: Reports what unique asset IDs in a given class have completed a given action. In the example below, players (asset IDs) on a given team (asset class) that scored points are returned. Note in this example the table must be filtered for point scorers first before posting to the API.
Call structure:
The limit field is optional, and specifies a maximum number of asset IDs to include. If the amount exceeds the limit, the top amount as specified by the limit will be selected based on a descending sort of the value field.
curl -XPOST -d '
"post_body:"{
{
"metric_df": [
{
"value": 12,
"asset_id": "Ben Simmons",
"name": "points",
"asset_class":"the Sixers",
},
{
"value": 21,
"asset_id": "Tobias Harris",
"name": "points",
"asset_class":"the Sixers",
},
{
"value": 29,
"asset_id": "Joel Embiid",
"name": "points",
"asset_class":"the Sixers",
},
{
"value": 14,
"asset_id": "Seth Curry",
"name": "points",
"asset_class":"the Sixers",
},
{
"value": 11
"asset_id": "Danny Green",
"name": "points",
"asset_class":"the Sixers",
}
],
"key": ["api_token_here"],
"limit": 3
}
}' 'https://generate-text-mrwwgrktvq-ue.a.run.app/streak-sentence'
Sample API Response
The Sixers had points by Tobias Harris, Joel Embiid, and Seth Curry.