Documentation ¶
Overview ¶
Package rtm provides access to Remember The Milk API v2.
Index ¶
- type Args
- type AuthInfo
- type AuthInfoUser
- 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 DateTime
- type Error
- type List
- type ListsService
- type MethodInfo
- type Note
- type Perms
- type Priority
- type ReflectionService
- type Task
- type TaskSeries
- type TasksAddParams
- type TasksDeleteParams
- type TasksGetListParams
- type TasksService
- func (t *TasksService) Add(ctx context.Context, timeline string, params *TasksAddParams) (string, *TaskSeries, error)
- func (t *TasksService) Delete(ctx context.Context, timeline string, params *TasksDeleteParams) error
- func (t *TasksService) GetList(ctx context.Context, params *TasksGetListParams) (map[string][]TaskSeries, error)
- type TestService
- type TimelinesService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthInfo ¶
type AuthInfo struct { Token string Perms Perms User AuthInfoUser }
type AuthInfoUser ¶
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 Debugf func(format string, args ...any) // contains filtered or unexported fields }
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) Call ¶
Call calls the given method with arguments and returns response body or error.
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 DateTime ¶
DateTime wraps time.Time with ISO 8601 (like `2006-01-02T15:04:05Z`) JSON encoding and decoding.
func (DateTime) MarshalJSON ¶
MarshalJSON implements json.Marshaler.
func (*DateTime) UnmarshalJSON ¶
UnmarshalJSON implements json.Unmarshaler.
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 TaskSeries ¶
type TasksAddParams ¶
type TasksDeleteParams ¶
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) (string, *TaskSeries, error)
https://www.rememberthemilk.com/services/api/methods/rtm.tasks.add.rtm
func (*TasksService) Delete ¶
func (t *TasksService) Delete(ctx context.Context, timeline string, params *TasksDeleteParams) error
https://www.rememberthemilk.com/services/api/methods/rtm.tasks.delete.rtm
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
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 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