MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / list_members

Function list_members

atomic-teams/src/member.rs:19–28  ·  view source on GitHub ↗

List all members of an organization. # Arguments `client` — Authenticated storage client. `org_slug` — URL-safe slug of the organization.

(
    client: &StorageClient,
    org_slug: &str,
)

Source from the content-addressed store, hash-verified

17/// * `client` — Authenticated storage client.
18/// * `org_slug` — URL-safe slug of the organization.
19pub async fn list_members(
20 client: &StorageClient,
21 org_slug: &str,
22) -> TeamsResult<Vec<OrgMemberInfo>> {
23 let path = format!("/orgs/{org_slug}/members");
24 client
25 .get(&path)
26 .await
27 .map_err(|e| map_remote_error(e, format!("org {org_slug}")))
28}
29
30/// Add a member to an organization.
31///

Callers 1

executeMethod · 0.85

Calls 2

map_remote_errorFunction · 0.85
getMethod · 0.65

Tested by

no test coverage detected