eject
From SmartBots Developers Docs
Revision as of 15:18, 29 June 2016 by Phil (Talk | contribs) (Created page with "{{DISPLAYTITLE: eject}} <onlyinclude>Ejects residents from the group.</onlyinclude> {{API Variables Table}} {{API HTTP Group Required Vars|eject}} {{API Variable Group|Inpu...")
Ejects residents from the group.
Variables
The following table shows input values (you send them with the API call) and returned output values.
Variable | Required | Description | |
---|---|---|---|
Input base: | |||
action | yes | = eject | |
apikey | yes | Your personal developer's API key. | |
secret | yes | Security code of the group you are using. | |
secret_sha1 | optional | The same as "secret" but hashed using SHA1 (useful if you don't want to keep plain customer's passwords) | |
Input: | |||
group | yes | the group name (must be listed with SmartBots!) | |
slkey | yes | the UUID of the resident | |
message | optional | the optional message to send along with invitation (can't contain international characters) | |
Output (plain text returned): | |||
OK | command completed successfully | ||
anything else | Request failed, the fail reason is returned |
Important
If you are using a custom role (other than "Everyone") you need an additional abilities for your bot. Read this for details.