public function getEndpoints()
    {
        $uri = 'endpoints';
        $response = $this->client->getEndpoint()->get($uri);

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

        return $endpoints;
    }
public function getEndpoints()
    {
        $uri = 'endpoints';
        $response = $this->client->getEndpoint()->get($uri);

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

        return $endpoints;
    }
public function getEndpoints ( ) { $ uri = 'endpoints' ; $ response = $ this -> client -> getEndpoint ( ) -> get ( $ uri ) ; $ endpoints = [ ] ; foreach ( \ GuzzleHttp \ json_decode ( $ response -> getBody ( ) ) as $ endpoint ) { $ endpoints [ ] = new Endpoint ( $ this -> client , $ endpoint ) ; } return $ endpoints ; }
List all endpoints.

@return Endpoint
List all endpoints .