Esempio n. 1
0
 public function __construct($rawPost)
 {
     parent::__construct($rawPost);
     $this->channel = \Youtube::getChannelById($this->rawPost->snippet->channelId);
 }
Esempio n. 2
0
 public function getUploads()
 {
     $channel = \Youtube::getChannelById($this->channelId);
     $playlistId = $channel->contentDetails->relatedPlaylists->uploads;
     return $this->getPlaylistVideos($playlistId);
 }