ad4m-client

Crates.ioad4m-client
lib.rsad4m-client
version0.10.0-rc7
sourcesrc
created_at2022-11-22 16:08:16.00677
updated_at2024-08-09 14:10:00.923408
descriptionClient library wrapping AD4M's GraphQL interface
homepagehttps://ad4m.dev
repositoryhttps://github.com/perspect3vism/ad4m
max_upload_size
id720931
size127,763
Nicolas Luck (lucksus)

documentation

https://docs.ad4m.dev

README

AD4M client library in Rust

This is a library for interacting with the AD4M executor / agent, analogous to https://www.npmjs.com/package/@coasys/ad4m.

Usage

use ad4m_client::Ad4mClient;

let executor_url = "http://localhost:4000".to_string();
let cap_token = read_capability_token_from_file();

let ad4m_client = Ad4mClient::new(executor_url, cap_token);

println!("{:?}", ad4m_client.agent.me()?);

Until documentation will be added, have a look at the AD4M cli code for a full usage example: https://github.com/perspect3vism/ad4m/tree/main/cli.

Commit count: 4470

cargo fmt