public function getScales($computerId)
    {
        $endPointUrl = $this->apiurl."/computer/";
        $endPointUrl.= $computerId;
        $endPointUrl.= '/scales';

        $response = $this->curlGet($endPointUrl);


        if ($response->getStatusCode() != '200') {
            throw new \RuntimeException(
                sprintf(
                    'HTTP Error (%d): %s',
                    $response->getStatusCode(),
                    $response->getStatusMessage()
                )
            );
        }

        return Entity::makeFromResponse("PrintNode\Scale", json_decode($response->getContent()));
    }
public function getScales($computerId)
    {
        $endPointUrl = $this->apiurl."/computer/";
        $endPointUrl.= $computerId;
        $endPointUrl.= '/scales';

        $response = $this->curlGet($endPointUrl);


        if ($response->getStatusCode() != '200') {
            throw new \RuntimeException(
                sprintf(
                    'HTTP Error (%d): %s',
                    $response->getStatusCode(),
                    $response->getStatusMessage()
                )
            );
        }

        return Entity::makeFromResponse("PrintNode\Scale", json_decode($response->getContent()));
    }
public function getScales ( $ computerId ) { $ endPointUrl = $ this -> apiurl . "/computer/" ; $ endPointUrl .= $ computerId ; $ endPointUrl .= '/scales' ; $ response = $ this -> curlGet ( $ endPointUrl ) ; if ( $ response -> getStatusCode ( ) != '200' ) { throw new \ RuntimeException ( sprintf ( 'HTTP Error (%d): %s' , $ response -> getStatusCode ( ) , $ response -> getStatusMessage ( ) ) ) ; } return Entity :: makeFromResponse ( "PrintNode\Scale" , json_decode ( $ response -> getContent ( ) ) ) ; }
Gets scales relative to a computer.
@param string $computerId id of computer to find scales
@return Entity[]
Gets scales relative to a computer .