src/Api/User/Csv.php
public function get($type): string
    {
        if (!in_array($type, self::$type, true)) {
            throw new \InvalidArgumentException('Invalid type parameter');
        }

        $content = (string)$this->client
            ->get(UserApi::generateUrl("csv/{$type}.csv"))
            ->getBody();

        return $content;
    }
public function get($type): string
    {
        if (!in_array($type, self::$type, true)) {
            throw new \InvalidArgumentException('Invalid type parameter');
        }

        $content = (string)$this->client
            ->get(UserApi::generateUrl("csv/{$type}.csv"))
            ->getBody();

        return $content;
    }
public function get ( $ type ) : string { if ( ! in_array ( $ type , self :: $ type , true ) ) { throw new \ InvalidArgumentException ( 'Invalid type parameter' ) ; } $ content = ( string ) $ this -> client -> get ( UserApi :: generateUrl ( "csv/{$type}.csv" ) ) -> getBody ( ) ; return $ content ; }
Get csv file

@param string $type
@return string
@throws \InvalidArgumentException
Get csv file