go-sdk

module
v0.0.0-...-f090156 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 12, 2024 License: MIT

README

Eolymp Golang SDK

E-Olymp Golang SDK provides development kit for interacting with E-Olymp API.

Usage

Install package using following command:

go get github.com/eolymp/go-sdk

Create client object and send a request:

cognito := cognitopb.NewCognito(http.DefaultClient) // decorate client to inject authentication details

user, err := cognito.DescribeUser(context.Background(), &cognitopb.DescribeUserInput{UserId: "1234"})
if err != nil {
    panic(err)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL