Example #1
0
 /**
  * Get entity     
  * @param $id
  * @param array $fields
  * @return BaseEntity
  */
 public function get($id, $fields = [])
 {
     $getParams = [];
     if (!empty($fields)) {
         $getParams['fields'] = implode(',', $fields);
     }
     $metadata = $this->client->getRequestHandler()->send($this->path . '/' . $id, $getParams);
     return new static($this->client, $metadata);
 }