diff --git a/src/Events/Events.php b/src/Events/Events.php index ad3cec5..0a8aa0b 100644 --- a/src/Events/Events.php +++ b/src/Events/Events.php @@ -324,10 +324,7 @@ public function updateExtraDatas($eventKey, $extraDatas) */ public function retrieveObjectInfo($eventKey, $objectLabel) { - $res = $this->client->get(UriTemplate::expand('/events/{key}/objects/{object}', ["key" => $eventKey, "object" => $objectLabel])); - $json = \GuzzleHttp\json_decode($res->getBody()); - $mapper = SeatsioJsonMapper::create(); - return $mapper->map($json, new EventObjectInfo()); + return $this->retrieveObjectInfos($eventKey, [$objectLabel])[$objectLabel]; } /**