Documentation ¶
Index ¶
Constants ¶
View Source
const Endpoint = "/projects"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Project ¶
type Project struct { Id uint64 `json:"id"` WId uint64 `json:"wid"` CId uint64 `json:"cid"` Name string `json:"name"` IsPrivate *bool `json:"is_private,omitempty"` }
Toggl Project Definition
type ProjectClient ¶
type ProjectClient struct {
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(thc *gthttp.TogglHttpClient) *ProjectClient
Return a ProjectClient. An error is also returned when some configuration option is invalid
thc,err := gtoggl.NewClient("token") pc,err := gproject.NewClient(tc)
func (*ProjectClient) Delete ¶
func (tc *ProjectClient) Delete(id uint64) error
func (*ProjectClient) List ¶
func (tc *ProjectClient) List() (Projects, error)
Click to show internal directories.
Click to hide internal directories.