Crate mattermost_api[][src]

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);
api.store_session_token().await.unwrap();
let team_info = api.get_team("Best-Team-Ever").await.unwrap();

Modules

Client struct and functions for interacting with the REST API.

Errors

Struct models for API requests and responses.

Module for easy imports.

Websocket client and trait for interacting with the websocket API.

Enums

Re-exported since websocket events have untyped data for now