checkService(); $requestItem->applyUrlTemplate(self::$GROUPS_PATH); $userIds = $requestItem->getUsers(); if (count($userIds) < 1) { throw new \InvalidArgumentException("No userId(s) specified"); } return $this->service->getPersonGroups($userIds[0], $requestItem->getGroup(), $requestItem->getToken()); } /** * * @param RequestItem $requestItem * @throws SocialSpiException */ public function handleDelete(RequestItem $requestItem) { throw new SocialSpiException("You can't delete groups.", ResponseError::$BAD_REQUEST); } /** * * @param RequestItem $requestItem * @throws SocialSpiException */ public function handlePut(RequestItem $requestItem) { throw new SocialSpiException("You can't update groups.", ResponseError::$NOT_IMPLEMENTED); } /** * * @param RequestItem $requestItem * @throws SocialSpiException */ public function handlePost(RequestItem $requestItem) { throw new SocialSpiException("You can't add groups.", ResponseError::$NOT_IMPLEMENTED); } }