#72 open
Mark Paschal

Return video information in API for videos

Reported by Mark Paschal | 2011-03-12 11:58:11 UTC

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

    Mark Paschal 2011-03-16 16:07:53 UTC

    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

    Andre Torrez 2011-03-16 16:15:35 UTC

    • 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

    Mark Paschal 2011-04-01 21:00:06 UTC

    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.

New ticket Create new ticket

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.

Shared Ticket Bins

People watching this ticket

Tags

Pages