README
rtm
Go client for Remember The Milk API v2.
Note: this product uses the Remember The Milk API but is not endorsed or certified by Remember The Milk.
Methods
Documentation
Overview ¶
Package rtm provides access to Remember The Milk API v2.
Index ¶
- type Args
- type AuthInfo
- type AuthService
- type Client
- func (c *Client) Auth() *AuthService
- func (c *Client) AuthenticationURL(perms Perms, frob string) string
- func (c *Client) Call(ctx context.Context, method string, args Args) ([]byte, error)
- func (c *Client) Lists() *ListsService
- func (c *Client) Reflection() *ReflectionService
- func (c *Client) Tasks() *TasksService
- func (c *Client) Test() *TestService
- func (c *Client) Timelines() *TimelinesService
- type Duration
- type Error
- type List
- type ListsService
- type MethodInfo
- type Perms
- type Priority
- type ReflectionService
- type Task
- type TaskSeries
- type TasksAddParams
- type TasksGetListParams
- type TasksService
- type TestService
- type Time
- type TimelinesService
Constants ¶
Variables ¶
Functions ¶
Types ¶
type AuthService ¶
type AuthService struct {
// contains filtered or unexported fields
}
func (*AuthService) CheckToken ¶
func (a *AuthService) CheckToken(ctx context.Context) (*AuthInfo, error)
https://www.rememberthemilk.com/services/api/methods/rtm.auth.checkToken.rtm
func (*AuthService) GetFrob ¶
func (a *AuthService) GetFrob(ctx context.Context) (string, error)
https://www.rememberthemilk.com/services/api/methods/rtm.auth.getFrob.rtm
func (*AuthService) GetToken ¶
https://www.rememberthemilk.com/services/api/methods/rtm.auth.getToken.rtm
type Client ¶
type Client struct { APIKey string APISecret string AuthToken string HTTPClient *http.Client DebugLogger func(v ...interface{}) }
func (*Client) Auth ¶
func (c *Client) Auth() *AuthService
func (*Client) AuthenticationURL ¶
AuthenticationURL returns authentication URL for given permissions and frob (that can be empty). See https://www.rememberthemilk.com/services/api/authentication.rtm, "User authentication for web-based applications" and "User authentication for desktop applications".
func (*Client) Lists ¶
func (c *Client) Lists() *ListsService
func (*Client) Reflection ¶
func (c *Client) Reflection() *ReflectionService
func (*Client) Tasks ¶
func (c *Client) Tasks() *TasksService
func (*Client) Test ¶
func (c *Client) Test() *TestService
func (*Client) Timelines ¶
func (c *Client) Timelines() *TimelinesService
type Duration ¶
Duration wraps time.Duration with ISO 8601 (like `PT1H30M`) text encoding and decoding,
func (Duration) MarshalText ¶
MarshalText implements encoding.TextMarshaler.
func (*Duration) UnmarshalText ¶
UnmarshalText implements encoding.TextUnmarshaler.
type ListsService ¶
type ListsService struct {
// contains filtered or unexported fields
}
func (*ListsService) GetList ¶
func (l *ListsService) GetList(ctx context.Context) ([]List, error)
https://www.rememberthemilk.com/services/api/methods/rtm.lists.getList.rtm
type MethodInfo ¶
type ReflectionService ¶
type ReflectionService struct {
// contains filtered or unexported fields
}
func (*ReflectionService) GetMethodInfo ¶
func (r *ReflectionService) GetMethodInfo(ctx context.Context, method string) (*MethodInfo, error)
https://www.rememberthemilk.com/services/api/methods/rtm.reflection.getMethodInfo.rtm
func (*ReflectionService) GetMethods ¶
func (r *ReflectionService) GetMethods(ctx context.Context) ([]string, error)
https://www.rememberthemilk.com/services/api/methods/rtm.reflection.getMethods.rtm
type Task ¶
type Task struct { ID string `xml:"id,attr"` Due Time `xml:"due,attr"` HasDueTime bool `xml:"has_due_time,attr"` Added Time `xml:"added,attr"` Completed Time `xml:"completed,attr,omitempty"` // Deleted string `xml:"deleted,attr"` Priority Priority `xml:"priority,attr"` Estimate Duration `xml:"estimate,attr"` Start Time `xml:"start,attr"` HasStartTime bool `xml:"has_start_time,attr"` }
type TaskSeries ¶
type TaskSeries struct { ID string `xml:"id,attr"` Created Time `xml:"created,attr"` Modified Time `xml:"modified,attr"` Name string `xml:"name,attr"` Source string `xml:"source,attr"` URL string `xml:"url,attr"` LocationID string `xml:"location_id,attr"` // Tags []interface{} `json:"tags"` // Notes []interface{} `json:"notes"` Task []Task `xml:"task"` }
type TasksAddParams ¶
type TasksGetListParams ¶
type TasksService ¶
type TasksService struct {
// contains filtered or unexported fields
}
func (*TasksService) Add ¶
func (t *TasksService) Add(ctx context.Context, timeline string, params TasksAddParams) error
https://www.rememberthemilk.com/services/api/methods/rtm.tasks.add.rtm NOT STABLE YET
func (*TasksService) GetList ¶
func (t *TasksService) GetList(ctx context.Context, params *TasksGetListParams) (map[string][]TaskSeries, error)
https://www.rememberthemilk.com/services/api/methods/rtm.tasks.getList.rtm NOT STABLE YET
type TestService ¶
type TestService struct {
// contains filtered or unexported fields
}
func (*TestService) Echo ¶
https://www.rememberthemilk.com/services/api/methods/rtm.test.echo.rtm
func (*TestService) Login ¶
func (t *TestService) Login(ctx context.Context) error
https://www.rememberthemilk.com/services/api/methods/rtm.test.login.rtm
type Time ¶
Time wraps time.Time with ISO 8601 (like `2019-01-20T09:20:58Z`) text encoding and decoding.
func (Time) MarshalText ¶
MarshalText implements encoding.TextMarshaler.
func (*Time) UnmarshalText ¶
UnmarshalText implements encoding.TextUnmarshaler.
type TimelinesService ¶
type TimelinesService struct {
// contains filtered or unexported fields
}
func (*TimelinesService) Create ¶
func (t *TimelinesService) Create(ctx context.Context) (string, error)
https://www.rememberthemilk.com/services/api/methods/rtm.timelines.create.rtm