ynab: go.bmvs.io/ynab/api/user Index | Examples | Files

package user

import "go.bmvs.io/ynab/api/user"

Package user implements transaction user and services



Package Files

entity.go service.go

type Service Uses

type Service struct {
    // contains filtered or unexported fields

Service wraps YNAB user API endpoints

func NewService Uses

func NewService(c api.ClientReader) *Service

NewService facilitates the creation of a new user service instance

func (*Service) GetUser Uses

func (s *Service) GetUser() (*User, error)

GetUser fetches information about the authenticated user https://api.youneedabudget.com/v1#/User/getUser


c := ynab.NewClient("<valid_ynab_access_token>")
user, _ := c.User().GetUser()



type User Uses

type User struct {
    ID string `json:"id"`

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.