public function getList($optionalArgs = [])
    {
        $response = $this->client->fetch(
            $this->uri,
            $optionalArgs
        );

        $endpoints = [];

        foreach ($response->getContent()['objects'] as $endpoint) {
            $newEndpoint = new Endpoint($this->client, $endpoint, $this->pathParams['authId']);

            array_push($endpoints, $newEndpoint);
        }
        return new ResourceList($this->client, $response->getContent()['meta'], $endpoints);
    }
public function getList($optionalArgs = [])
    {
        $response = $this->client->fetch(
            $this->uri,
            $optionalArgs
        );

        $endpoints = [];

        foreach ($response->getContent()['objects'] as $endpoint) {
            $newEndpoint = new Endpoint($this->client, $endpoint, $this->pathParams['authId']);

            array_push($endpoints, $newEndpoint);
        }
        return new ResourceList($this->client, $response->getContent()['meta'], $endpoints);
    }
public function getList ( $ optionalArgs = [ ] ) { $ response = $ this -> client -> fetch ( $ this -> uri , $ optionalArgs ) ; $ endpoints = [ ] ; foreach ( $ response -> getContent ( ) [ 'objects' ] as $ endpoint ) { $ newEndpoint = new Endpoint ( $ this -> client , $ endpoint , $ this -> pathParams [ 'authId' ] ) ; array_push ( $ endpoints , $ newEndpoint ) ; } return new ResourceList ( $ this -> client , $ response -> getContent ( ) [ 'meta' ] , $ endpoints ) ; }
This method lets you get details of all endpoints. This is pretty useful
in use-cases where you want statuses of your endpoints and whether they
have been registered using a SIP client.
@param array $optionalArgs
@return ResourceList
This method lets you get details of all endpoints . This is pretty useful in use - cases where you want statuses of your endpoints and whether they have been registered using a SIP client .