import "go.bmvs.io/ynab/api/user"
Package user implements transaction user and services
type Service struct {
// contains filtered or unexported fields
}
Service wraps YNAB user API endpoints
func NewService(c api.ClientReader) *Service
NewService facilitates the creation of a new user service instance
GetUser fetches information about the authenticated user https://api.youneedabudget.com/v1#/User/getUser
Code:
c := ynab.NewClient("<valid_ynab_access_token>") user, _ := c.User().GetUser() fmt.Println(reflect.TypeOf(user))
Output:
*user.User
User represents an user
Package user imports 1 packages (graph) and is imported by 1 packages. Updated 2018-10-07. Refresh now. Tools for package owners.