Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 44 additions & 0 deletions src/VK/Actions/Groups.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down Expand Up @@ -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.
*
Expand Down Expand Up @@ -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.
*
Expand Down