URL: /items/:item_id/insights
Model response:
{
"students": {| [ | |
| { | |
| "likes_count": 0, | |
| "description_length": 17, | |
| "id": "56c4d70ac46988f0268b4567", | |
| "draft_item": { | |
| "likes_count": 0, | |
| "description_length": 32, | |
| "id": "56c4d70bc46988f0268b4570", | |
| "description": "<p>cvxcvcvxcv kljkjkkoi kjjk</p>", |
| [ | |
| { | |
| "id": "56c5ce3cc4698829688b456b", | |
| "user": { | |
| "privacy_level": "organization", | |
| "is_invitation_pending": false, | |
| "id": "569cd667c469883d3c8b4568", | |
| "notification_identities": [], | |
| "name": "Chan", | |
| "biography": "sdfsdffvxc", |
| // MODIFIED: add check for this.opts.convertVideoLinks | |
| if (this.opts.convertVideoLinks && (html.match(this.opts.regexps.linkyoutube) || html.match(this.opts.regexps.linkvimeo))) | |
| { | |
| html = this.linkify.convertVideoLinks(html); | |
| } | |
| // MODIFIED: add check for this.opts.convertImageLinks | |
| else if (this.opts.convertVideoLinks && html.match(this.opts.regexps.linkimage)) | |
| { | |
| html = this.linkify.convertImages(html); | |
| } |
| [ | |
| { | |
| "id": "56c5ce42c469882b688b4567", | |
| "user": { | |
| "privacy_level": "organization", | |
| "is_invitation_pending": false, | |
| "id": "569cd667c469883d3c8b4568", | |
| "notification_identities": [], | |
| "name": "Chan", | |
| "biography": "sdfsdffvxc", |
Uploadcare provides the ability for users to upload files from any cloud storage provider. Uploadcare also provides other functionality such as cropping images.
For now we will use the storage of Uploadcare, this will probably change in the future. To protect the files we will use a custom CDN with signed URLs, you can read more about this in their knowledge base.
In the future we might want to use our own storage to store the attachments the user uploads with Uploadcare. Uploadcare would provide us with a temporary link (valid for 24 hours) to the file.
| { | |
| "likes_count":0, | |
| "description_length":11, | |
| "id":"56bc4618c46988ed038b4567", | |
| "description":"<p>testhhjhhj</p>", | |
| "created_date":"2016-02-11T09:28:08+0100", | |
| "last_modified_date":"2016-02-11T09:28:08+0100", | |
| "post_date":"2016-02-11T09:28:08+0100", | |
| "publish_date":"2016-02-11T09:28:08+0100", | |
| "privacy_level":"organization", |
| { | |
| "likes_count":0, | |
| "description_length":4, | |
| "id":"56bb41cfc46988297e8b4568", | |
| "description":"test dqwdqwwd", | |
| "created_date":"2016-02-10T14:57:35+0100", | |
| "last_modified_date":"2016-02-10T14:57:35+0100", | |
| "post_date":"2016-02-10T14:57:35+0100", | |
| "publish_date":"2016-02-10T14:57:35+0100", | |
| "privacy_level":"organization", |
| spray = -> | |
| for i in [0..10] | |
| dot = new Layer | |
| width: 10 | |
| height: 10 | |
| borderRadius: "50%" | |
| backgroundColor: Color.random() | |
| dot.center() | |
| dot.placeBehind heart |
| blink = -> | |
| ring = new Layer | |
| width: 160 | |
| height: 160 | |
| borderRadius: "50%" | |
| borderColor: "#f1c40f" | |
| borderWidth: 10 | |
| backgroundColor: "transparent" | |
| scale: 0 | |