src/Servers/Adapters/DigitalOcean.php
public function read($id = null)
    {
        if ($id === null) {
            $response = $this->client->request->get($this->apiEndpoint."/droplets");
        } else {
            $response = $this->client->request->get($this->apiEndpoint."/droplets/$id");
        }

        return $this->client->getBody($response);
    }
public function read($id = null)
    {
        if ($id === null) {
            $response = $this->client->request->get($this->apiEndpoint."/droplets");
        } else {
            $response = $this->client->request->get($this->apiEndpoint."/droplets/$id");
        }

        return $this->client->getBody($response);
    }
public function read ( $ id = null ) { if ( $ id === null ) { $ response = $ this -> client -> request -> get ( $ this -> apiEndpoint . "/droplets" ) ; } else { $ response = $ this -> client -> request -> get ( $ this -> apiEndpoint . "/droplets/$id" ) ; } return $ this -> client -> getBody ( $ response ) ; }
List details for an indexed server, or all servers if id is null.

@param integer $id
@return GuzzleResponse object | array of GuzzleResponse objects
List details for an indexed server or all servers if id is null .