extube v4.0.0 Extube.Redtube View Source

Redtube API Wrapper.

For more information on the hubtraffic Redtube API, see here

https://www.hubtraffic.com/resources/api?site_id=2

Link to this section Summary

Functions

Retrieves all available categories

Retrieves all deleted videos

Retrieves all tags available

Retrieves additional information about specific video by id parameter

Retrieves embed code for specific video by video_id parameter, which is useful to automatically embed videos

Retrieves state of a specific video specified by is_video_active parameter, which is useful in order to keep your embedded videos up to date

Queries the hubtraffic API to search for videos given a map of parameters. Parameters right now include the following

Link to this section Functions

Retrieves all available categories.

Link to this function get_deleted_videos(page) View Source

Retrieves all deleted videos.

Parameters:

page (Required) Integer

Link to this function get_tags_list(starts_with) View Source

Retrieves all tags available.

Parameters:

list a-z for tag starting letter, 0 for other.

Link to this function get_video_by_id(video_id, thumbsize \\ "medium") View Source

Retrieves additional information about specific video by id parameter.

Parameters:

video_id (Required) Integer

thumbsize (Optional) If set, provides additional thumbnails in different formats. Possible values are small,medium,large,small_hd,medium_hd,large_hd

Link to this function get_video_embed_code(video_id) View Source

Retrieves embed code for specific video by video_id parameter, which is useful to automatically embed videos.

Parameters:

video_id (Required) Integer

Link to this function is_video_active(video_id) View Source

Retrieves state of a specific video specified by is_video_active parameter, which is useful in order to keep your embedded videos up to date.

Parameters:

video_id (Required) Integer

Link to this function search_videos(params \\ %{thumbsize: "medium"}) View Source

Queries the hubtraffic API to search for videos given a map of parameters. Parameters right now include the following:

:category (Optional)

:page (Optional) Integer / default 1

:search (Optional) String / search query string

:period (Optional - works only when ‘ordering’ parameter is used!) If set, the returned XML output will deliver videos from a period, based on the selected value. Possible values are: weekly, monthly, alltime.

:thumbsize (Optional) If set, provides additional thumbnails in different formats. Possible values are: medium, small, big, all, medium1, medium2.