public function sbSetDefaults($futureShowPaused = null, $status = null,
                                  $flattenFolders = null, $initial = null, $archive = null)
    {
        $uri = 'sb.setdefaults';
        $uriData = [];
        if ( $futureShowPaused ) { $uriData['future_show_paused'] = $futureShowPaused; }
        if ( $status ) { $uriData['status'] = $status; }
        if ( $flattenFolders ) { $uriData['flatten_folders'] = $flattenFolders; }
        if ( $initial ) { $uriData['initial'] = $initial; }
        if ( $archive ) { $uriData['archive'] = $archive; }

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

        return $response->getBody()->getContents();
    }
public function sbSetDefaults($futureShowPaused = null, $status = null,
                                  $flattenFolders = null, $initial = null, $archive = null)
    {
        $uri = 'sb.setdefaults';
        $uriData = [];
        if ( $futureShowPaused ) { $uriData['future_show_paused'] = $futureShowPaused; }
        if ( $status ) { $uriData['status'] = $status; }
        if ( $flattenFolders ) { $uriData['flatten_folders'] = $flattenFolders; }
        if ( $initial ) { $uriData['initial'] = $initial; }
        if ( $archive ) { $uriData['archive'] = $archive; }

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

        return $response->getBody()->getContents();
    }
public function sbSetDefaults ( $ futureShowPaused = null , $ status = null , $ flattenFolders = null , $ initial = null , $ archive = null ) { $ uri = 'sb.setdefaults' ; $ uriData = [ ] ; if ( $ futureShowPaused ) { $ uriData [ 'future_show_paused' ] = $ futureShowPaused ; } if ( $ status ) { $ uriData [ 'status' ] = $ status ; } if ( $ flattenFolders ) { $ uriData [ 'flatten_folders' ] = $ flattenFolders ; } if ( $ initial ) { $ uriData [ 'initial' ] = $ initial ; } if ( $ archive ) { $ uriData [ 'archive' ] = $ archive ; } try { $ response = $ this -> _request ( [ 'uri' => $ uri , 'type' => 'get' , 'data' => $ uriData ] ) ; } catch ( \ Exception $ e ) { throw new InvalidException ( $ e -> getMessage ( ) ) ; } return $ response -> getBody ( ) -> getContents ( ) ; }
Set default settings for SickRage.

@param int|null $futureShowPaused
--- 0: exclude paused shows on coming ep
--- 1: include paused shows on coming ep
@param string|null $status wanted, skipped, archived, ignored
@param int|null $flattenFolders
--- 0: use season folders if part of rename string
--- 1: do not use season folders
@param string|null $initial multiple types can be passed when delimited by |
--- sdtv, sddvd, hdtv, rawhdtv, fullhdtv, hdwebdl, fullhdwebdl, hdbluray, fullhdbluray, unknown
@param string|null $archive multiple types can be passed when delimited by |
--- sddvd, hdtv, rawhdtv, fullhdtv, hdwebdl, fullhdwebdl, hdbluray, fullhdbluray
@return string
@throws InvalidException
Set default settings for SickRage .