diff options
author | emkael <emkael@tlen.pl> | 2025-04-08 02:24:30 +0200 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2025-04-08 02:24:30 +0200 |
commit | af150891df3b90fda846941d62ea76616f42a6ab (patch) | |
tree | 6363926d7f4a2fe09dc4d1b763b67fbb8d949c09 /lib/php-youtube-api/src/Constants.php | |
parent | af2da903d47550cdf1d7eb2d7b5e5b972d847958 (diff) |
Diffstat (limited to 'lib/php-youtube-api/src/Constants.php')
-rw-r--r-- | lib/php-youtube-api/src/Constants.php | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/lib/php-youtube-api/src/Constants.php b/lib/php-youtube-api/src/Constants.php new file mode 100644 index 0000000..3f52e6e --- /dev/null +++ b/lib/php-youtube-api/src/Constants.php @@ -0,0 +1,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'; +} |