public function getStreamByUser($userIdendifier, $streamType = 'live')
    {
        if ($this->apiVersionIsGreaterThanV3() && !is_numeric($userIdendifier)) {
            throw new InvalidIdentifierException('user');
        }

        if (!$this->isValidStreamType($streamType)) {
            throw new InvalidStreamTypeException();
        }

        return $this->get(sprintf('streams/%s', $userIdendifier), ['stream_type' => $streamType]);
    }
public function getStreamByUser($userIdendifier, $streamType = 'live')
    {
        if ($this->apiVersionIsGreaterThanV3() && !is_numeric($userIdendifier)) {
            throw new InvalidIdentifierException('user');
        }

        if (!$this->isValidStreamType($streamType)) {
            throw new InvalidStreamTypeException();
        }

        return $this->get(sprintf('streams/%s', $userIdendifier), ['stream_type' => $streamType]);
    }
public function getStreamByUser ( $ userIdendifier , $ streamType = 'live' ) { if ( $ this -> apiVersionIsGreaterThanV3 ( ) && ! is_numeric ( $ userIdendifier ) ) { throw new InvalidIdentifierException ( 'user' ) ; } if ( ! $ this -> isValidStreamType ( $ streamType ) ) { throw new InvalidStreamTypeException ( ) ; } return $ this -> get ( sprintf ( 'streams/%s' , $ userIdendifier ) , [ 'stream_type' => $ streamType ] ) ; }
Get the stream information for a user

@param int|string $userIdentifier
@param string     $streamType
@throws InvalidIdentifierException
@throws InvalidStreamTypeException
@return array|json
Get the stream information for a user