diff --git a/src/VK/Actions/Apps.php b/src/VK/Actions/Apps.php index 6241b74..a688524 100755 --- a/src/VK/Actions/Apps.php +++ b/src/VK/Actions/Apps.php @@ -182,4 +182,20 @@ public function getLeaderboard(string $access_token, array $params = array()) { public function getScore(string $access_token, array $params = array()) { return $this->request->post('apps.getScore', $access_token, $params); } + + /** + * Returns the only is_allowed field (true or false). + * + * @param $access_token string + * @param $params array + * - integer user_id: + * + * @return mixed + * @throws VKClientException in case of network error + * @throws VKApiException in case of API error + * + */ + public function isNotificationsAllowed(string $access_token, array $params = array()) { + return $this->request->post('apps.isNotificationsAllowed', $access_token, $params); + } }