mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-22 15:25:19 +00:00
add invites example
This commit is contained in:
@@ -1,40 +1,6 @@
|
||||
Manage and send user and group invites
|
||||
|
||||
# Invites Service
|
||||
|
||||
The invites services allows you to create and manage invites. Example usage:
|
||||
The invites services allows you to create and manage invites for users and groups by providing invite codes.
|
||||
|
||||
```bash
|
||||
> micro invites create --group_id=myawesomegroup --email=john@doe.com
|
||||
{
|
||||
"invite": {
|
||||
"id": "fb3a3552-3c7b-4a18-a1f8-08ab56940862",
|
||||
"group_id": "myawesomegroup",
|
||||
"email": "john@doe.com",
|
||||
"code": "86285587"
|
||||
}
|
||||
}
|
||||
|
||||
> micro invites list --group_id=fb3a3552-3c7b-4a18-a1f8-08ab56940862
|
||||
{
|
||||
"invites": [
|
||||
{
|
||||
"id": "fb3a3552-3c7b-4a18-a1f8-08ab56940862",
|
||||
"group_id": "myawesomegroup",
|
||||
"email": "john@doe.com",
|
||||
"code": "86285587"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
> micro invites read --code=86285587
|
||||
{
|
||||
"invite": {
|
||||
"id": "fb3a3552-3c7b-4a18-a1f8-08ab56940862",
|
||||
"group_id": "myawesomegroup",
|
||||
"email": "john@doe.com",
|
||||
"code": "86285587"
|
||||
}
|
||||
}
|
||||
|
||||
> micro invites delete --id=fb3a3552-3c7b-4a18-a1f8-08ab56940862
|
||||
{}
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user