public function future($sort = 'date', $type = 'missed|today|soon|later', $paused = null)
    {
        $uri = 'future';
        $uriData = [
            'sort' => $sort,
            'type' => $type
        ];
        if ( $paused ) { $uriData['paused'] = $paused; }

        try {
            $response = $this->_request(
                [
                    'uri' => $uri,
                    'type' => 'get',
                    'data' => $uriData
                ]
            );
        } catch (\Exception $e) {
            throw new InvalidException($e->getMessage());
        }

        return $response->getBody()->getContents();
    }
public function future($sort = 'date', $type = 'missed|today|soon|later', $paused = null)
    {
        $uri = 'future';
        $uriData = [
            'sort' => $sort,
            'type' => $type
        ];
        if ( $paused ) { $uriData['paused'] = $paused; }

        try {
            $response = $this->_request(
                [
                    'uri' => $uri,
                    'type' => 'get',
                    'data' => $uriData
                ]
            );
        } catch (\Exception $e) {
            throw new InvalidException($e->getMessage());
        }

        return $response->getBody()->getContents();
    }
public function future ( $ sort = 'date' , $ type = 'missed|today|soon|later' , $ paused = null ) { $ uri = 'future' ; $ uriData = [ 'sort' => $ sort , 'type' => $ type ] ; if ( $ paused ) { $ uriData [ 'paused' ] = $ paused ; } try { $ response = $ this -> _request ( [ 'uri' => $ uri , 'type' => 'get' , 'data' => $ uriData ] ) ; } catch ( \ Exception $ e ) { throw new InvalidException ( $ e -> getMessage ( ) ) ; } return $ response -> getBody ( ) -> getContents ( ) ; }
Display the upcoming episodes for the shows currently added in the users' database.

@param string $sort date, network, name
@param string $type missed, today, soon, later - multiple types can be passed when delimited by |
--- missed - show's date is older than today
--- today - show's date is today
--- soon - show's date greater than today but less than a week
--- later - show's date greater than a week
@param int|null $paused 0: do not show paused 1: show paused
--- if not set then the user's default setting in SickRage is used
@return string
@throws InvalidException
Display the upcoming episodes for the shows currently added in the users database .