Created
January 12, 2009 04:32
-
-
Save speedmax/45891 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
/* | |
Standarized Data API design in JSON object | |
we should also learn from google data API recommended attributes for | |
Events & activities | |
-http://base.google.com/base/api/itemTypeDocs?verticalName=events%20and%20activities&verticalLocale=en_US | |
Universal attributes | |
- http://base.google.com/base/api/universalAttributes?verticalLocale=en_US | |
*/ | |
items: [ | |
{ //event object | |
id: "ADF2341234" | |
title: "PERTH GLORY vs SYDNEY FC", | |
description: "This Sunday 19th October @ 2 PM, Perth Glory is looking to give the pretty boys of the league, Sydney, a run for their money." | |
type: "sports_event", | |
sports_class: "Football", | |
event_type: "A-leaque", | |
location : "Australia", | |
date_range: "20081108071306 20081108071306", | |
expiration_date: "2009-01-25T17:21:26Z", | |
website: "http://centrebet.com/cust?lang_choice=en&action=GoSports&ev_id=38630", | |
markets: [ | |
{ //market object | |
title: "Match Result" | |
outcomes: [ | |
{ | |
title: "PERTH GLORY", | |
fractionalodds: "1/1", | |
decimalodds: "2" | |
}, | |
{ | |
title: "Draw", | |
handicap: 2.5, | |
fractionalodds: "3/1", | |
decimalodds: "4" | |
} | |
] | |
} | |
] | |
} | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment