src/Material/Material.php
public function lists($type, $offset = 0, $count = 20)
    {
        $params = [
            'type' => $type,
            'offset' => intval($offset),
            'count' => min(20, $count),
        ];

        return $this->parseJSON('json', [self::API_LISTS, $params]);
    }
public function lists($type, $offset = 0, $count = 20)
    {
        $params = [
            'type' => $type,
            'offset' => intval($offset),
            'count' => min(20, $count),
        ];

        return $this->parseJSON('json', [self::API_LISTS, $params]);
    }
public function lists ( $ type , $ offset = 0 , $ count = 20 ) { $ params = [ 'type' => $ type , 'offset' => intval ( $ offset ) , 'count' => min ( 20 , $ count ) , ] ; return $ this -> parseJSON ( 'json' , [ self :: API_LISTS , $ params ] ) ; }
List materials.

example:

{
"total_count": TOTAL_COUNT,
"item_count": ITEM_COUNT,
"item": [{
"media_id": MEDIA_ID,
"name": NAME,
"update_time": UPDATE_TIME
},
// more...
]
}

@param string $type
@param int    $offset
@param int    $count

@return array
List materials .