src/Sseffa/VideoApi/Services/Youtube.php
public function getVideoList($id)
    {
        $this->setId($id);

        $list = array();
        $data = $this->getData(str_replace('{key}', $this->key, $this->baseChannelUrl));

        if(!isset($data->items))
        {
            throw new \Exception("Video channel not found");
        }

        foreach($data->items as $value)
        {
            $list[] = $this->getVideoDetail($value->contentDetails->videoId);
        }

        return $list;
    }
public function getVideoList($id)
    {
        $this->setId($id);

        $list = array();
        $data = $this->getData(str_replace('{key}', $this->key, $this->baseChannelUrl));

        if(!isset($data->items))
        {
            throw new \Exception("Video channel not found");
        }

        foreach($data->items as $value)
        {
            $list[] = $this->getVideoDetail($value->contentDetails->videoId);
        }

        return $list;
    }
public function getVideoList ( $ id ) { $ this -> setId ( $ id ) ; $ list = array ( ) ; $ data = $ this -> getData ( str_replace ( '{key}' , $ this -> key , $ this -> baseChannelUrl ) ) ; if ( ! isset ( $ data -> items ) ) { throw new \ Exception ( "Video channel not found" ) ; } foreach ( $ data -> items as $ value ) { $ list [ ] = $ this -> getVideoDetail ( $ value -> contentDetails -> videoId ) ; } return $ list ; }
Get Video List
@param string $id
@return array
@throws \Exception
Get Video List