extube v4.0.0 Extube.Xtube View Source

Xtube API Wrapper.

For more information on the hubtraffic Xtube API, see here

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

Link to this section Summary

Functions

Retrieves all amateurs available

Retrieves all amateurs available with details (page url and amateurs’s thumb)

Retrieves all available categories

Retrieves all videos which are deleted during the last 2 weeks

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 amateurs available.

Link to this function get_amateur_list_detailed() View Source

Retrieves all amateurs available with details (page url and amateurs’s thumb).

Retrieves all available categories.

Retrieves all videos which are deleted during the last 2 weeks

Retrieves all tags available.

Link to this function get_video_by_id(video_id) View Source

Retrieves additional information about specific video by id parameter.

Parameters:

id (Required) Integer

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:

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:

id (Required) Integer

Link to this function search_videos(params \\ %{}) View Source

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

:category comma seperated, only categories from provided list, 10 different categories max

:search Text (Optional) - text is space separated

:ordering (Optional) - possible values are latest/mostviewed/rating

:period (Optional) - only work with ordering parameter. Possible values are lastweek/lastmonth/alltime

:tags String (Optional) - comma seperated, only tags from provided list, 50 different tags max

:user String (Optional) - comma seperated, 20 different user max