Return video information in API for videos
Reported by Mark Paschal | March 12th, 2011 @ 11:58 AM
The API does not yet return video specific information for videos. For example, in the friend shake, a video may appear as:
{
"description": null,
"height": 360,
"name": "http://www.youtube.com/watch?v=6JVpy0L5z7s",
"original_image_url": "http://mlkshk.com/r/XSM",
"permalink_page": "http://mlkshk.com/p/XSM",
"title": "Minamisanriku footage",
"user_id": 2,
"user_name": "andre",
"width": 480
}
Per #71, I might expect the same video specific information as would be present in an oEmbed video:
{
"description": null,
"height": 360,
"html": "<iframe class=\"youtube-player\" type=\"text/html\" width=\"550\" height=\"339\" src=\"http://www.youtube.com/embed/6JVpy0L5z7s?rnd=0.374508428366&autoplay=0\" frameborder=\"0\"></iframe>",
"name": "http://www.youtube.com/watch?v=6JVpy0L5z7s",
"original_image_url": "http://mlkshk.com/r/XSM",
"permalink_page": "http://mlkshk.com/p/XSM",
"thumbnail_height": 480,
"thumbnail_url": "http://mlkshk.com/r/XSM",
"thumbnail_width": 640,
"title": "Minamisanriku footage",
"type": "video",
"user_id": 2,
"user_name": "andre",
"width": 480
}
(That is, type, html, and thumbnail_*.)
Comments and changes to this ticket
-
Mark Paschal March 16th, 2011 @ 04:07 PM
As with #71, it's fine to treat a video as a
link
object here too:{ "description": null, "height": 360, "permalink_page": "http://mlkshk.com/p/XSM", "title": "Minamisanriku footage", "type": "link", "url": "http://www.youtube.com/watch?v=6JVpy0L5z7s", "user_id": 2, "user_name": "andre", "width": 480 }
-
Andre Torrez March 16th, 2011 @ 04:15 PM
- State changed from new to open
I'm rewriting this part right now so that /api/sharedfile/1 and /api/friends return either a single object or a list of objects that are identical. Poor planning on my part means that it was generating the sharedfile object twice depending if it was a single request or in a group.
We're rolling out Friend Finding in the next hour or so, so I'm going to help with that. This code I'm writing will be live tomorrow for sure.
-
Mark Paschal April 1st, 2011 @ 09:00 PM
Is the refactoring still left to do? The API includes "url" data in the friend shake already, so this could be complete.
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
MLKSHK it's fun for the whole family.