Documentation ¶
Overview ¶
Package rtm provides a client functionality for Remember the Milk api.
Index ¶
- type Auth
- type AuthService
- type Chunk
- type Client
- type ErrorResponse
- type GetTokenResult
- type HTTP
- type List
- type Lists
- type ListsService
- type Task
- type TasksService
- func (s *TasksService) Add(timeline string, name string) ([]Task, *Transaction, error)
- func (s *TasksService) AddTags(task Task, timeline string, tags string) ([]Transaction, error)
- func (s *TasksService) Complete(task Task, timeline string) ([]Transaction, error)
- func (s *TasksService) Delete(task Task, timeline string) ([]Transaction, error)
- func (s *TasksService) GetList(listID string, filter string, lastSync string) ([]Task, error)
- func (s *TasksService) SetDueDate(task Task, timeline string, due string) ([]Transaction, error)
- func (s *TasksService) Uncomplete(task Task, timeline string) ([]Transaction, error)
- type TimelinesService
- type Transaction
- type TransactionsService
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthService ¶
type AuthService struct {
HTTP *HTTP
}
func (*AuthService) GetFrob ¶
func (s *AuthService) GetFrob() (string, error)
type Client ¶
type Client struct { HTTP *HTTP Auth AuthService Timelines TimelinesService Lists ListsService Tasks TasksService Transactions TransactionsService }
func (*Client) SetBaseURL ¶
type ErrorResponse ¶
func (*ErrorResponse) Error ¶
func (err *ErrorResponse) Error() string
type GetTokenResult ¶
type GetTokenResult struct {
Rsp getTokenResultContent
}
type HTTP ¶
func (*HTTP) VerifyResponse ¶
func (c *HTTP) VerifyResponse(err error, stat string, resp ErrorResponse) error
type ListsService ¶
type ListsService struct {
HTTP *HTTP
}
func (*ListsService) Add ¶
func (s *ListsService) Add(name string, timeline string) (List, Transaction, error)
func (*ListsService) Delete ¶
func (s *ListsService) Delete(list List, timeline string) (List, Transaction, error)
func (*ListsService) GetList ¶
func (s *ListsService) GetList() ([]List, error)
type Task ¶
type Task struct { ID string Created string Modified string Name string Source string URL string LocationID string `json:"location_id"` Tags interface{} Participants []string Notes []string Chunks []Chunk `json:"task"` ListID string // This field is not included in the API response, and should be manually set. }
type TasksService ¶
type TasksService struct {
HTTP *HTTP
}
func (*TasksService) Add ¶
func (s *TasksService) Add(timeline string, name string) ([]Task, *Transaction, error)
func (*TasksService) AddTags ¶
func (s *TasksService) AddTags(task Task, timeline string, tags string) ([]Transaction, error)
func (*TasksService) Complete ¶
func (s *TasksService) Complete(task Task, timeline string) ([]Transaction, error)
func (*TasksService) Delete ¶
func (s *TasksService) Delete(task Task, timeline string) ([]Transaction, error)
func (*TasksService) SetDueDate ¶
func (s *TasksService) SetDueDate(task Task, timeline string, due string) ([]Transaction, error)
func (*TasksService) Uncomplete ¶
func (s *TasksService) Uncomplete(task Task, timeline string) ([]Transaction, error)
type TimelinesService ¶
type TimelinesService struct {
HTTP *HTTP
}
func (*TimelinesService) Create ¶
func (s *TimelinesService) Create() (string, error)
type Transaction ¶
type TransactionsService ¶
type TransactionsService struct {
HTTP *HTTP
}
func (*TransactionsService) Undo ¶
func (s *TransactionsService) Undo(timeline string, transaction Transaction) error
Click to show internal directories.
Click to hide internal directories.