PHP 클래스 App\services\YouTube

파일 보기 프로젝트 열기: phanan/koel 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( string $key = null, Client $client = null ) Construct an instance of YouTube service.
enabled ( ) : boolean Determine if our application is using YouTube.
search ( string $q, string $pageToken = '', integer $perPage = 10 ) : object | false Search for YouTube videos by a query string.
searchVideosRelatedToSong ( Song $song, string $pageToken = '' ) : object | false Search for YouTube videos related to a song.

메소드 상세

__construct() 공개 메소드

Construct an instance of YouTube service.
public __construct ( string $key = null, Client $client = null )
$key string The YouTube API key
$client GuzzleHttp\Client The Guzzle HTTP client

enabled() 공개 메소드

Determine if our application is using YouTube.
public enabled ( ) : boolean
리턴 boolean

searchVideosRelatedToSong() 공개 메소드

Search for YouTube videos related to a song.
public searchVideosRelatedToSong ( Song $song, string $pageToken = '' ) : object | false
$song app\models\Song
$pageToken string
리턴 object | false