videos.editVideo

Description

Edits or creates a site video

Authentication

This method requires authentication with ‘write’ permission.

API Version

Version 1&2

Required parameters

  • video_id – required to edit an existing video
  • video – required to create a new video

Optional parameters

  • title
  • recorded
  • shared
  • ss_key
  • interest_key
  • subinterest_key

Example response

<?xml version="1.0"?>
<response status="ok" time="Tue, 22 Apr 2008 16:51:59 -0500">
    <videos count="1">
        <video>
            <video_id>134</video_id>
        </video>

    </videos>
</response>

videos.deleteVideo

Description

Deletes a site video

Authentication

This method requires authentication with ‘write’ permission.

API Version

Version 1&2

Required parameters

  • user_id
  • video_id

Optional parameters

  • None

Example response

<?xml version="1.0"?>
<response status="ok" time="Tue, 22 Apr 2008 16:52:19 -0500">
    <videos count="1">
        <video>
            <status>
                <![CDATA[ok]]>

            </status>
        </video>
    </videos>
</response>

videos.getList

Description

Returns a list of site videos

Authentication

This method requires authentication without user credentials.

API Version

Version 1&2

Required parameters

  • None

Optional parameters

  • video_id
  • user_id
  • link
  • title
  • views
  • total_ratings
  • uploaded
  • recorded
  • ss_key
  • interest_key
  • subinterest_key

Example response

<?xml version="1.0"?>
<response status="ok" time="Tue, 22 Apr 2008 16:50:18 -0500">
    <videos count="2" total="49">
        <video>
            <video_id>50</video_id>
            <user_id>3</user_id>

            <link>
                <![CDATA[http://smallworld.vo.llnwd.net/o18/corp/soccer_bloopers_300-448x336.flv]]>
            </link>
            <title>
                <![CDATA[Great Soccer Bloopers]]>
            </title>

            <views>10</views>
            <total_ratings>2</total_ratings>
            <uploaded>
                <![CDATA[Fri, 14 Sep 2007 11:14:29 -0500]]>
            </uploaded>

            <recorded>
                <![CDATA[Fri, 14 Sep 2007 00:00:00 -0500]]>
            </recorded>
            <thumbnail>
                <![CDATA[http://smallworld.vo.llnwd.net/o18/corp/soccer_bloopers_tmb/0000.jpg]]>
            </thumbnail>

        </video>
        <video>
            <video_id>55</video_id>
            <user_id>3</user_id>
            <link>

                <![CDATA[http://smallworld.vo.llnwd.net/o18/corp/violent_soccer_300-448x336.flv]]>
            </link>
            <title>
                <![CDATA[Violence on the Field]]>
            </title>
            <views>10</views>

            <total_ratings>1</total_ratings>
            <uploaded>
                <![CDATA[Fri, 14 Sep 2007 13:30:06 -0500]]>
            </uploaded>
            <recorded>

                <![CDATA[Fri, 14 Sep 2007 00:00:00 -0500]]>
            </recorded>
            <thumbnail>
                <![CDATA[http://smallworld.vo.llnwd.net/o18/corp/violent_soccer_tmb/0000.jpg]]>
            </thumbnail>
        </video>

    </videos>
</response>

videos.getComments

Description

Returns video comments specified by a date, user id, or video id

Authentication

This method requires authentication without user credentials.

Required parameters

  • start_date, user_id or video_id

Optional parameters

  • end_date :
    the end date if searching for comments in a specified range

Example response

<?xml version="1.0"?>
<response status="ok" time="Wed, 08 Apr 2009 09:51:53 -0500" p="0.13329291343689">
    <video_comments count="1">
        <video_comment>
            <item_0>
                <id>1</id>
                <modified><![CDATA[2009-03-27 11:30:00]]></modified>
                <videoId>2</videoId>
                <userId>3</userId>
                <rating>0</rating>
                <subject></subject>
                <comment><![CDATA[asdfasdfafds]]></comment>
            </item_0>
            <item_1>
                <id>2</id>
                <modified><![CDATA[2009-03-27 11:30:04]]></modified>
                <videoId>2</videoId>
                <userId>3</userId>
                <rating>0</rating>
                <subject></subject>
                <comment><![CDATA[asfdasfd]]></comment>
            </item_1>
        </video_comment>
    </video_comments>
</response>