Skip to content
scjalliancePublic

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

egnyte

Generic Go client for the Egnyte Public API. Policy-free: you name the fields, you interpret the values. Built for SCJ's identity-sync; suitable for general use. Read-only user directory access.

Install

go get github.com/scjalliance/egnyte

Quick start

c, err := egnyte.New(egnyte.Config{Domain: "acme", ClientID: id, ClientSecret: secret})
if err != nil { /* ... */ }
if err := c.Authenticate(ctx, username, password); err != nil { /* ... */ }

users, err := c.ListAllUsers(ctx) // paginates transparently
// one user:
u, err := c.GetUser(ctx, 12345)

Errors are typed — *egnyte.APIError carries the HTTP status and, when present, the X-Mashery-Error-Code.

Docs

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages