Created
March 18, 2022 00:58
-
-
Save gallynaut/ba68ebeebcb57b21417482e1790d5a92 to your computer and use it in GitHub Desktop.
ESPN Job for Michigan at CSU 3/17/22
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"tasks": [ | |
{ | |
"httpTask": { | |
"url": "https://site.api.espn.com/apis/site/v2/sports/basketball/mens-college-basketball/scoreboard/401408581" | |
} | |
}, | |
{ | |
"conditionalTask": { | |
"attempt": [ | |
{ | |
"jsonParseTask": { | |
"path": "$.competitions[?(@.status.type.completed && @.id == \"401408581\")].competitors[?(@.winner && @.homeAway == \"home\")].id" | |
} | |
}, | |
{ "valueTask": { "value": 1 } } | |
], | |
"onFailure": [ | |
{ | |
"jsonParseTask": { | |
"path": "$.competitions[?(@.status.type.completed && @.id == \"401408581\")].competitors[?(@.winner && @.homeAway == \"away\")].id" | |
} | |
}, | |
{ "valueTask": { "value": 2 } } | |
] | |
} | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment