Expand description
Mattermost API wrapper.
For the full Mattermost API information, see their docs.
To start, create an instance of the AuthenticationData
struct, passing in either a login_id and password (likely
email and password), or a personal access token. Pass this
struct instance along with the URL of the target Mattermost
instance to Mattermost::new
.
§Example
use mattermost_api::prelude::*;
let auth = AuthenticationData::from_password("you@example.com", "password");
let mut api = Mattermost::new("https://your-mattermost-instance.com", auth).unwrap();
api.store_session_token().await.unwrap();
let team_info = api.get_team("Best-Team-Ever").await.unwrap();
Modules§
- client
- Client struct and functions for interacting with the REST API.
- errors
- Errors
- models
- Struct models for API requests and responses.
- prelude
- Module for easy imports.
- socket
- Websocket client and trait for interacting with the websocket API.
Enums§
- Value
- Re-exported since websocket events have untyped data for now Represents any valid JSON value.