Skip to content

Instantly share code, notes, and snippets.

@alwold
Last active August 29, 2015 13:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alwold/9801087 to your computer and use it in GitHub Desktop.
Save alwold/9801087 to your computer and use it in GitHub Desktop.
{
"status": "ok",
"menu": [
{
"order": 1,
"icon": "http://www.asu.edu/mobile/images/icon1.png",
"icon-background-position": "0 -50px",
"title": "My ASU",
"subtitle": "INFO",
"url": "https://my.asu.edu",
"target": "native",
"color": "0x00ff00"
},
{
"order": 2,
"icon": "http://www.asu.edu/mobile/images/icon1.png",
"icon-background-position": "0 0",
"title": "More stuff",
"subtitle": "STUFF",
"color": "0xff0000",
"menu": [
{
"order": 1,
"icon": "http://www.asu.edu/mobile/images/icon2.png",
"title": "Submenu thing",
"subtitle": "SUB",
"color": "0x0000ff",
"url": "http://www.example.com",
"target": "internal"
}
]
},
{
"order": 3,
"icon": "http://www.asu.edu/mobile/images/icon1.png",
"icon-background-position": "0 0",
"title": "Directory",
"subtitle": "PEOPLE",
"color": "0xbbbbbb",
"target": "app",
"url": "/directory"
}
],
"timestamp": "2014-03-26T23:12:00Z",
"lastUpdate": "2014-03-24T12:15:41Z"
}
@alwold
Copy link
Author

alwold commented Mar 27, 2014

  • Submenus are supported by putting a "menu" element inside a menu item instead of a url
  • Sprites are supported by adding optional icon-background-position (otherwise whole icon is shown)
  • We may need to add fields to specify the size of the icon for sprite support...
  • Timestamps show when file was loaded and when it was last modified
  • Timestamps are in ISO8601 format
  • target field specifies whether url should open in native browser, in-app browser (internal), or will be handled by the app itself (app)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment