src/SecucardConnect/Client/ProductService.php
public function get($id)
    {
        if (empty($id)) {
            throw new \Exception('cannot load object with empty id');
        }

        $params = new RequestParams(RequestOps::GET, $this->resourceMetadata, $id);
        $jsonResponse = $this->request($params);

        if ($jsonResponse == false) {
            throw new Exception('Error retrieving data');
        }

        $inst = $this->createResourceInst($jsonResponse, $this->resourceMetadata->resourceClass);

        $this->postProcess($inst);

        return $inst;
    }
public function get($id)
    {
        if (empty($id)) {
            throw new \Exception('cannot load object with empty id');
        }

        $params = new RequestParams(RequestOps::GET, $this->resourceMetadata, $id);
        $jsonResponse = $this->request($params);

        if ($jsonResponse == false) {
            throw new Exception('Error retrieving data');
        }

        $inst = $this->createResourceInst($jsonResponse, $this->resourceMetadata->resourceClass);

        $this->postProcess($inst);

        return $inst;
    }
public function get ( $ id ) { if ( empty ( $ id ) ) { throw new \ Exception ( 'cannot load object with empty id' ) ; } $ params = new RequestParams ( RequestOps :: GET , $ this -> resourceMetadata , $ id ) ; $ jsonResponse = $ this -> request ( $ params ) ; if ( $ jsonResponse == false ) { throw new Exception ( 'Error retrieving data' ) ; } $ inst = $ this -> createResourceInst ( $ jsonResponse , $ this -> resourceMetadata -> resourceClass ) ; $ this -> postProcess ( $ inst ) ; return $ inst ; }
Method to get object identified by id

@param string $id
@return BaseModel
@throws ApiError
@throws AuthError
@throws ClientError
@throws GuzzleException
@throws Exception
Method to get object identified by id