summaryrefslogtreecommitdiff
path: root/lib/php-youtube-api/src/Constants.php
blob: 3f52e6e942c9d2474af6cf469382390c27d13c92 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?php

namespace Madcoda\Youtube;

/**
 * Laravel users should use this class to access these constants
 */
class Constants
{

    //order in search api
    const ORDER_DATE = 'date';
    const ORDER_RATING = 'rating';
    const ORDER_RELEVANCE = 'relevance';
    const ORDER_TITLE = 'title';
    const ORDER_VIDEOCOUNT = 'videoCount';
    const ORDER_VIEWCOUNT = 'viewCount';

    //eventType
    const EVENT_TYPE_LIVE = 'live';
    const EVENT_TYPE_COMPLETED = 'completed';
    const EVENT_TYPE_UPCOMING = 'upcoming';

    //type in search api
    const SEARCH_TYPE_CHANNEL = 'channel';
    const SEARCH_TYPE_PLAYLIST = 'playlist';
    const SEARCH_TYPE_VIDEO = 'video';
}