Last active
December 31, 2015 03:59
-
-
Save f0urfingeredfish/7930997 to your computer and use it in GitHub Desktop.
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
{ | |
//(String)UID of the chapter | |
"id":"g9ks32xhd9", | |
//(String)UID of the book | |
"book_slug":"this-is-my-book", | |
//(String) URL of chapter | |
"url":"", | |
//(Object) contains info about the author | |
"author":{ | |
"url":"http://dev3.storybird.com/members/nick/", | |
"username":"nick", | |
"avatar_url":"http://storybird.s3.amazonaws.com/avatars/nick.png" | |
}, | |
//(String) uid of the artist shop | |
"shop_slug":"", | |
//(String) art tag that we started from | |
"tag":"", | |
//(Integer) index of this chapter in book | |
"order": 0, | |
//(Array) list objects of chapters in book | |
"chapters":[ | |
{ | |
//(String)UID of the chapter | |
"id": "g9ks32xhd9", | |
//(Integer)order of chapter in book starts at 0 | |
"order": 0, | |
//(String) title of the chapter | |
"title": "The First Chapter", | |
//(String) URL to chapter | |
"url" : "" | |
} | |
], | |
//(Array) contains Objects of different type components | |
"components":[ | |
//EXAMPLE of a "cover" component | |
{ | |
//(String) a uid for every component | |
"id": "456x1239-308d-4fd6-ae74-bdfduiowwoqu90", | |
//(Integer) the order of component smaller number on top of page | |
"order":0, | |
//(String) type of component. Either "Header", "Text", "Artwork", "Divider". | |
"type": "cover", | |
//(String) | |
"text":"The First Chapter", | |
//(String) | |
"tagline":"This is my series tagline", | |
//(String hex value) | |
"color":"#ffffff", | |
//(String) this is the best format for the cover | |
"artwork_format":"square", | |
//(Object) normal artwork object with all its props, "id", formats" etc... | |
"artwork":{ | |
"id": "539e4626-308d-4fd6-ae74-bdfdec5b7f5f", | |
"formats":{ | |
"square":{ | |
"url":"http://storybird.s3.amazonaws.com/artwork/andymcnally/square/hungry-bot.jpeg" | |
} | |
} | |
} | |
}, | |
//EXAMPLE of a "title" component | |
{ | |
"id": "XXXX-308d-4fd6-ae74-XsdfXXX", | |
"order":1, | |
"type": "title", | |
"text":"This is the title of the chapter." | |
}, | |
//EXAMPLE of a "text" component | |
{ | |
"id": "XXXX-308d-4fd6-ae74-XXXX", | |
"order":2, | |
"type": "text", | |
"text":"This is the lead-in of my first chapter in my new book." | |
}, | |
//EXAMPLE of a "art" component | |
{ | |
"id": "AAAAA-308d-4fd6-ae74-AAAAA", | |
"order":3, | |
"type": "art", | |
"artwork":{ | |
"id": "539e4626-308d-4fd6-ae74-bdfdec5b7f5f", | |
"formats":{ | |
"square":{ | |
"url":"http://storybird.s3.amazonaws.com/artwork/andymcnally/square/hungry-bot.jpeg" | |
} | |
} | |
} | |
}, | |
//EXAMPLE of a "divider" component | |
{ | |
"id": "YYYYYY-308d-4fd6-ae74-YYYYY", | |
"order":4, | |
"type": "divider", | |
"style": "cm-divider-001" | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment