users

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	URI = "/api/1.0/users/%s"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Response

type Response struct {
	Data User `json:"data,omitempty"`
}

type User

type User struct {
	ID           string `json:"gid,omitempty"`
	ResourceType string `json:"resource_type,omitempty"`
	Name         string `json:"name,omitempty"`
	Email        string `json:"email,omitempty"`

	Photo      map[string]string `json:"photo,omitempty"`
	Workspaces []struct {
		ID           string `json:"gid,omitempty"`
		ResourceType string `json:"resource_type,omitempty"`
		Name         string `json:"name,omitempty"`
	} `json:"workspaces,omitempty"`
}

func (User) Get

func (u User) Get(paToken string) (*User, error)

Jump to

Keyboard shortcuts

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