Page History
...
List of methods available in FlockOS
- chatchannels.sendMessageaddMembers
- groupschannels.getInfocreategroups
- channels.getMembersgetInfo
- groupschannels.list
- channels.listMembers
- channels.removeMembers
- chat.sendMessage
- chat.fetchMessages
- roster.listContacts
- users.getInfo
- users.getPublicProfile
Anchor | ||||
---|---|---|---|---|
|
...
To call a method, an app will need to pass a an authentication token for the user on behalf of whom the method is being called. This can either be the user (either a normal user or a bot).
For normal users, you receive this user token in the app.install event.
For a bot, you can see the token in the developer dashboard once after you enable it.
This token is passed as the token
parameter in the HTTP request that calls the method.
...
Error Code | HTTP Status | Description | Additional Attributes | |
---|---|---|---|---|
InvalidRequestData | 400 | The request was malformed | ||
InvalidParameter | 400 | A parameter for the method call is missing or invalid |
| |
MissingUserToken | 400 | Missing user token in the method request | ||
InvalidUserToken | InvalidToken | 403 | An invalid user authentication token was sent with the request | |
AppDisabled | 403 | App has been disabled for this user |
| |
NoSuchMethod | 404 | The method named in the request URL does not exist | ||
HTTPMethodNotAllowed | 405 | An HTTP method other than POST was used | ||
RequestTimeout | 408 | A timeout occured before the server could receive the complete request from the app | ||
TooManyRequests | 429 | Rate limit reached | ||
InternalServerError | 500 | An unexpected condition was encountered | ||
ServiceUnavailable | 503 | The API service is unavailable at this time |