getChannelFromURL() public method

Get the channel object by supplying the URL of the channel page
public getChannelFromURL ( string $youtube_url ) : object
$youtube_url string
return object Channel object
コード例 #1
0
 public function testGetChannelFromURL()
 {
     $channel = $this->youtube->getChannelFromURL('http://www.youtube.com/user/Google');
     $this->assertEquals('UCK8sQmJBp8GCxrOtXWBpyEA', $channel->id);
     $this->assertEquals('Google', $channel->snippet->title);
 }