public function getEndpointsByTech($tech)
    {
        $uri = "endpoints/$tech";
        try {
            $response = $this->client->getEndpoint()->get($uri);
        } catch (RequestException $e) {
            $this->processRequestException($e);
        }

        $endpoints = [];
        foreach (\GuzzleHttp\json_decode($response->getBody()) as $endpoint) {
            $endpoints[] = new Endpoint($this->client, $endpoint);
        }

        return $endpoints;
    }
public function getEndpointsByTech($tech)
    {
        $uri = "endpoints/$tech";
        try {
            $response = $this->client->getEndpoint()->get($uri);
        } catch (RequestException $e) {
            $this->processRequestException($e);
        }

        $endpoints = [];
        foreach (\GuzzleHttp\json_decode($response->getBody()) as $endpoint) {
            $endpoints[] = new Endpoint($this->client, $endpoint);
        }

        return $endpoints;
    }
public function getEndpointsByTech ( $ tech ) { $ uri = "endpoints/$tech" ; try { $ response = $ this -> client -> getEndpoint ( ) -> get ( $ uri ) ; } catch ( RequestException $ e ) { $ this -> processRequestException ( $ e ) ; } $ endpoints = [ ] ; foreach ( \ GuzzleHttp \ json_decode ( $ response -> getBody ( ) ) as $ endpoint ) { $ endpoints [ ] = new Endpoint ( $ this -> client , $ endpoint ) ; } return $ endpoints ; }
List available endoints for a given endpoint technology.

@param string $tech Technology of the endpoints (sip,iax2,...)
@return \phparia\Resources\Endpoint[]
@throws NotFoundException
List available endoints for a given endpoint technology .