Created
May 10, 2012 15:02
-
-
Save bluewhalelabs/2653728 to your computer and use it in GitHub Desktop.
Slidechute Asset Data
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
| // ----------------------------------------------------------- | |
| // Sample Upload Data | |
| // ----------------------------------------------------------- | |
| // time - Timestamp for the upload | |
| // moderated - Boolean indicating if upload was moderated | |
| // asset - Array of Asset Hashes | |
| // ----------------------------------------------------------- | |
| { | |
| time: 1335624522.467072, // Timestamp | |
| moderated: false, // Boolean indicating if the asset has been published | |
| assets: [ // Array of Asset Objects | |
| { | |
| 'id': 1945745, // Chute Asset ID | |
| 'created_at': "2012-04-28T14:48:42Z", // Asset creation time | |
| 'updated_at': "2012-04-28T14:48:42Z", // Asset last updated time | |
| 'is_portrait': true, // Boolean indicating if the asset is in portrait or landscape | |
| 'is_published': true, // Boolean indicating if the asset is published to the Chute | |
| 'name': "", // Caption of the asset | |
| 'service': null, // Service the asset comes from. Possible values are null, instagram, twitter | |
| 'source': "uploaded", // Indicates the source the asset came from. Possible values are uploaded, facebook, flickr, picasa, instagram | |
| 'source_id': null, // Remote ID of the source object (when imported from a stream) | |
| 'source_url': "http://uploader-media.g...728009storify_video.png", // Original photo URL (when imported from a 3rd party service) | |
| 'url': "http://media.getchute.com/media/8aaZcdmw", // Chute URL for the asset (provides resizing, analytics, and more). Preferred. | |
| 'height': 276, // Height in pixels (available only for uploads) | |
| 'width': 443, // Width in pixels (available only for uploads) | |
| 'user': { | |
| 'id': 249, // Chute User ID | |
| 'avatar' "http://graph.facebook.com/503180032/picture?type=square", // URL for user avatar | |
| 'name' "Gregarious Narain", // Name of the user (may be blank) | |
| 'username' "Gregarious Narain" // Username of the user (may be blank) | |
| } | |
| ] | |
| } | |
| // ----------------------------------------------------------- | |
| // Sample Upload Callback | |
| // ----------------------------------------------------------- | |
| // element - element which spawned the action | |
| // data - hash of data processing data: | |
| // ----------------------------------------------------------- | |
| function(element, data) { | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment