diff --git a/Linkdata/Client/LinkdataClient.php b/Linkdata/Client/LinkdataClient.php index 229f51d..58e1523 100644 --- a/Linkdata/Client/LinkdataClient.php +++ b/Linkdata/Client/LinkdataClient.php @@ -245,4 +245,19 @@ private function getUrlFilters(?array $filters) } return $urlFilters; } + + /** + * @throws ClientHydraException + */ + public function getUserTags(string $userId): array + { + try { + return $this->getAdapter()->makeRequest( + 'GET', + \sprintf('/v2/users/%s/tags', $userId) + )->getContent(); + } catch (ClientHydraException $e) { + return []; + } + } }