Documentation ¶
Index ¶
Constants ¶
View Source
const Endpoint = "/me"
View Source
const MeWithRelatedData = "/me?with_related_data=true"
View Source
const ResetEndpoint = "/reset_token"
View Source
const SignupEndpoint = "/signups"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type User ¶
type User struct { Id uint64 `json:"id"` ApiToken string `json:"api_token"` Email string `json:"email"` FullName string `json:"fullname"` Timezone string `json:"timezone"` Clients gtclient.Clients `json:"clients"` Projects gtproject.Projects `json:"projects"` Workspaces gtworkspace.Workspaces `json:"workspaces"` }
Toggl User Definition
type UserClient ¶
type UserClient struct {
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(thc *gthttp.TogglHttpClient) *UserClient
Return a UserClient. An error is also returned when some configuration option is invalid
thc,err := gtoggl.NewClient("token") uc,err := guser.NewClient(thc)
func (*UserClient) Create ¶
func (c *UserClient) Create(email, password, timezone string) (*User, error)
func (*UserClient) ResetToken ¶
func (c *UserClient) ResetToken() (string, error)
type UserCreate ¶
type UserUpdate ¶
Click to show internal directories.
Click to hide internal directories.