src/interfaces/channels.php
public function show()
        {
            try {

                $result = FALSE;

                if (is_null($this->pestObject))
                    throw new Exception("PEST Object not provided or is null", 503);

                $uri = "/channels";
                $result = $this->pestObject->get($uri);

                return $result;


            } catch (Pest_NotFound $e) {
                $this->phpariObject->lasterror = $e->getMessage();
                $this->phpariObject->lasttrace = $e->getTraceAsString();

                return FALSE;
            } catch (Pest_BadRequest $e) {
                $this->phpariObject->lasterror = $e->getMessage();
                $this->phpariObject->lasttrace = $e->getTraceAsString();

                return FALSE;
            } catch (Exception $e) {
                $this->phpariObject->lasterror = $e->getMessage();
                $this->phpariObject->lasttrace = $e->getTraceAsString();

                return FALSE;
            }
        }
public function show()
        {
            try {

                $result = FALSE;

                if (is_null($this->pestObject))
                    throw new Exception("PEST Object not provided or is null", 503);

                $uri = "/channels";
                $result = $this->pestObject->get($uri);

                return $result;


            } catch (Pest_NotFound $e) {
                $this->phpariObject->lasterror = $e->getMessage();
                $this->phpariObject->lasttrace = $e->getTraceAsString();

                return FALSE;
            } catch (Pest_BadRequest $e) {
                $this->phpariObject->lasterror = $e->getMessage();
                $this->phpariObject->lasttrace = $e->getTraceAsString();

                return FALSE;
            } catch (Exception $e) {
                $this->phpariObject->lasterror = $e->getMessage();
                $this->phpariObject->lasttrace = $e->getTraceAsString();

                return FALSE;
            }
        }
public function show ( ) { try { $ result = FALSE ; if ( is_null ( $ this -> pestObject ) ) throw new Exception ( "PEST Object not provided or is null" , 503 ) ; $ uri = "/channels" ; $ result = $ this -> pestObject -> get ( $ uri ) ; return $ result ; } catch ( Pest_NotFound $ e ) { $ this -> phpariObject -> lasterror = $ e -> getMessage ( ) ; $ this -> phpariObject -> lasttrace = $ e -> getTraceAsString ( ) ; return FALSE ; } catch ( Pest_BadRequest $ e ) { $ this -> phpariObject -> lasterror = $ e -> getMessage ( ) ; $ this -> phpariObject -> lasttrace = $ e -> getTraceAsString ( ) ; return FALSE ; } catch ( Exception $ e ) { $ this -> phpariObject -> lasterror = $ e -> getMessage ( ) ; $ this -> phpariObject -> lasttrace = $ e -> getTraceAsString ( ) ; return FALSE ; } }
Get the current list of active channels

@return object|bool - false for a failure, JSON object for all other results
Get the current list of active channels