Skip to content

Instantly share code, notes, and snippets.

@kyleries
Created December 1, 2015 17:58
Show Gist options
  • Save kyleries/66420d5114032c59d612 to your computer and use it in GitHub Desktop.
Save kyleries/66420d5114032c59d612 to your computer and use it in GitHub Desktop.
Example TSL score response
{
"collection": {
"version": "3.148.1",
"href": "http://localhost:3000/tsl_scores",
"links": [
{
"rel": "root",
"href": "http://localhost:3000/"
},
{
"rel": "self",
"href": "http://localhost:3000/tsl_scores/search?event_id=1"
}
],
"commands": [
{
"rel": "send_push",
"href": "http://localhost:3000/tsl_scores/send_push",
"data": [
{
"name": "device_token",
"value": null
},
{
"name": "event_id",
"value": null
},
{
"name": "firebase_id",
"value": null
},
{
"name": "game_state",
"value": null
},
{
"name": "member_id",
"value": null
},
{
"name": "opponent_name",
"value": null
},
{
"name": "score_for",
"value": null
},
{
"name": "score_against",
"value": null
},
{
"name": "sport_score_style",
"value": null
},
{
"name": "team_id",
"value": null
},
{
"name": "team_name",
"value": null
},
{
"name": "timestamp",
"value": null
}
]
}
],
"items": [
{
"href": "http://localhost:3000/tsl_scores",
"data": [
{
"name": "event_id",
"value": 1
},
{
"name": "team_id",
"value": 1
},
{
"name": "user_id",
"value": 1
},
{
"name": "firebase_id",
"value": "-JzQKeWSY5-uva_MULM-"
},
{
"name": "opponent_name",
"value": "opponent1"
},
{
"name": "score_against",
"value": 1
},
{
"name": "score_for",
"value": 1
},
{
"name": "team_name",
"value": "team1"
},
{
"name": "created_at",
"value": 1442493934524
}
],
"links": [
{
"rel": "user",
"href": "http://localhost:3000/users/1"
}
]
},
{
"href": "http://localhost:3000/tsl_scores",
"data": [
{
"name": "event_id",
"value": 1
},
{
"name": "team_id",
"value": 1
},
{
"name": "user_id",
"value": 1
},
{
"name": "firebase_id",
"value": "-JzQKf1YS4YEgY4C0idR"
},
{
"name": "opponent_name",
"value": "opponent1"
},
{
"name": "score_against",
"value": 1
},
{
"name": "score_for",
"value": 1
},
{
"name": "team_name",
"value": "team1"
},
{
"name": "created_at",
"value": 1442493935842
}
],
"links": [
{
"rel": "user",
"href": "http://localhost:3000/users/1"
}
]
},
{
"href": "http://localhost:3000/tsl_scores",
"data": [
{
"name": "event_id",
"value": 1
},
{
"name": "team_id",
"value": 1
},
{
"name": "user_id",
"value": 1
},
{
"name": "firebase_id",
"value": "-JzQKfUjIblBvpMkFoxX"
},
{
"name": "opponent_name",
"value": "opponent1"
},
{
"name": "score_against",
"value": 1
},
{
"name": "score_for",
"value": 1
},
{
"name": "team_name",
"value": "team1"
},
{
"name": "created_at",
"value": 1442493937723
}
],
"links": [
{
"rel": "user",
"href": "http://localhost:3000/users/1"
}
]
},
{
"href": "http://localhost:3000/tsl_scores",
"data": [
{
"name": "event_id",
"value": 1
},
{
"name": "team_id",
"value": 1
},
{
"name": "user_id",
"value": 1
},
{
"name": "firebase_id",
"value": "-JzQKgRZp08oSzWoi2VD"
},
{
"name": "opponent_name",
"value": "opponent1"
},
{
"name": "score_against",
"value": 1
},
{
"name": "score_for",
"value": 1
},
{
"name": "team_name",
"value": "team1"
},
{
"name": "created_at",
"value": 1442493941607
}
],
"links": [
{
"rel": "user",
"href": "http://localhost:3000/users/1"
}
]
},
{
"href": "http://localhost:3000/tsl_scores",
"data": [
{
"name": "event_id",
"value": 1
},
{
"name": "team_id",
"value": 1
},
{
"name": "user_id",
"value": 1
},
{
"name": "firebase_id",
"value": "-K3vf8IPRhYCrNU0IJQw"
},
{
"name": "opponent_name",
"value": "opponent0"
},
{
"name": "score_against",
"value": 0
},
{
"name": "score_for",
"value": 0
},
{
"name": "team_name",
"value": "team0"
},
{
"name": "created_at",
"value": 1442493934516
}
],
"links": [
{
"rel": "user",
"href": "http://localhost:3000/users/1"
}
]
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment