Documentation ¶
Overview ¶
Package gtoggl access to toggl REST API
Example:
import "github.com/dougEfresh/gtoggl.v8" func main() { tc, err := gtoggl.NewClient("token") if err == nil { panic(err) } timeentry, _:= tc.TimeentryClient.Get(1) }
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TogglClient ¶
type TogglClient struct { TogglHttpClient *gthttp.TogglHttpClient WorkspaceClient *gtworkspace.WorkspaceClient ProjectClient *gtproject.ProjectClient TClient *gtclient.TClient UserClient *gtuser.UserClient TimeentryClient *gttimeentry.TimeEntryClient }
Client is an Toggl REST client. Created by calling NewClient.
func NewClient ¶
func NewClient(key string, options ...gthttp.ClientOptionFunc) (*TogglClient, error)
Return a new TogglHttpClient . An error is also returned when some configuration option is invalid
tc,err := gtoggl.NewClient("token")
Click to show internal directories.
Click to hide internal directories.