Invites a user to a community. Notification settings and the blacklist are honoured. The recipient sees the invite in Replies and (unless disabled) as a live notification; push uses type group_invite. On the site they can accept or decline it.
| Parameter | Type | Required | Description |
|---|---|---|---|
group_id |
integer | yes | Community id (positive). |
user_id |
integer | yes | User being invited. |
curl -s -X POST 'https://durovloh.net/api.php' \ -d 'method=groups.invite' \ -d 'access_token=USER_TOKEN'