diff --git a/src/VK/Actions/Groups.php b/src/VK/Actions/Groups.php index fb1f8d4..2a32830 100644 --- a/src/VK/Actions/Groups.php +++ b/src/VK/Actions/Groups.php @@ -81,6 +81,23 @@ public function addAddress($access_token, array $params = []) { return $this->request->post('groups.addAddress', $access_token, $params); } + /** + * Add callback server to community. + * + * @param string $access_token + * @param array $params + * - @var integer group_id + * - @var string url + * - @var string title + * - @var string secret_key + * @throws VKApiException + * @throws VKClientException + * @return mixed + */ + public function addCallbackServer($access_token, array $params = []) { + return $this->request->post('groups.addCallbackServer', $access_token, $params); + } + /** * Allows to add a link to the community. * @@ -437,6 +454,21 @@ public function getCallbackConfirmationCode($access_token, array $params = []) { return $this->request->post('groups.getCallbackConfirmationCode', $access_token, $params); } + /** + * Returns callback servers information. + * + * @param string $access_token + * @param array $params + * - @var integer group_id + * - @var string server_ids + * @return mixed + * @throws VKApiException + * @throws VKClientException + */ + public function getCallbackServers($access_token, array $params = []) { + return $this->request->post('groups.getCallbackServers', $access_token, $params); + } + /** * Returns [vk.com/dev/callback_api|Callback API] notifications settings. * @@ -598,6 +630,18 @@ public function getSettings($access_token, array $params = []) { return $this->request->post('groups.getSettings', $access_token, $params); } + /** + * Returns community token permissions. + * + * @param string $access_token + * @throws VKApiException + * @throws VKClientException + * @return mixed + */ + public function getTokenPermissions($access_token) { + return $this->request->post('groups.getTokenPermissions', $access_token); + } + /** * Allows to invite friends to the community. *