apellis / ankiconnect-client-rs

Rust client for the AnkiConnect API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ankiconnect-client

A Rust client for AnkiConnect. The currently supported API version is 6.

Examples

Create a client

extern crate ankiconnect_client;
use ankiconnect_client::AnkiConnectClient;

let client = AnkiConnectClient::new("localhost", 8765);

Get API version

// create a client as above

println!("host API version: {}", client.version()?);

Get deck names

// create a client as above

for deck_name in client.deck_names()? {
    println!("found deck with name: {}", deck_name);
}

License

This project is licensed under the MIT License. See the LICENSE file.

About

Rust client for the AnkiConnect API

License:MIT License


Languages

Language:Rust 100.0%