Documentation
¶
Index ¶
- Constants
- type Client
- func (c *Client) Backups(ctx context.Context) (json.RawMessage, error)
- func (c *Client) BatchDelete(ctx context.Context, collectionID int64, search string, ids []int64) (json.RawMessage, error)
- func (c *Client) BatchUpdate(ctx context.Context, collectionID int64, body map[string]any) (json.RawMessage, error)
- func (c *Client) Bytes(ctx context.Context, method, path string, query url.Values, body any) ([]byte, string, error)
- func (c *Client) Cache(ctx context.Context, id int64) ([]byte, string, error)
- func (c *Client) CleanCollections(ctx context.Context) (json.RawMessage, error)
- func (c *Client) CollectionCovers(ctx context.Context, search string) (json.RawMessage, error)
- func (c *Client) Collections(ctx context.Context, children bool) ([]Collection, error)
- func (c *Client) Create(ctx context.Context, body map[string]any) (Raindrop, error)
- func (c *Client) CreateBackup(ctx context.Context) ([]byte, string, error)
- func (c *Client) CreateCollection(ctx context.Context, title string, parentID int64) (json.RawMessage, error)
- func (c *Client) Delete(ctx context.Context, id int64) (json.RawMessage, error)
- func (c *Client) DeleteCollection(ctx context.Context, id int64) (json.RawMessage, error)
- func (c *Client) DeleteTags(ctx context.Context, collectionID int64, tags []string) (json.RawMessage, error)
- func (c *Client) Do(ctx context.Context, method, path string, query url.Values, body any, out any) error
- func (c *Client) DownloadBackup(ctx context.Context, id, format string) ([]byte, string, error)
- func (c *Client) ExpandCollections(ctx context.Context, expanded bool) (json.RawMessage, error)
- func (c *Client) Export(ctx context.Context, collectionID int64, format, search, sort string) ([]byte, string, error)
- func (c *Client) Filters(ctx context.Context, collectionID int64, search string) (Filters, error)
- func (c *Client) Get(ctx context.Context, id int64) (Raindrop, error)
- func (c *Client) Highlights(ctx context.Context, collectionID int64, page, perPage int) (json.RawMessage, error)
- func (c *Client) ImportFile(ctx context.Context, filePath string) (json.RawMessage, error)
- func (c *Client) JoinCollection(ctx context.Context, collectionID int64, token string) (json.RawMessage, error)
- func (c *Client) List(ctx context.Context, opts ListOptions) ([]Raindrop, int64, error)
- func (c *Client) MergeCollections(ctx context.Context, to int64, ids []int64) (json.RawMessage, error)
- func (c *Client) Multipart(ctx context.Context, method, path string, query url.Values, ...) (json.RawMessage, error)
- func (c *Client) ParseURL(ctx context.Context, link string) (json.RawMessage, error)
- func (c *Client) Raw(ctx context.Context, method, path string, query url.Values, body any) (json.RawMessage, error)
- func (c *Client) RawBytes(ctx context.Context, method, path string, query url.Values, body any) ([]byte, string, error)
- func (c *Client) RemoveCollaborator(ctx context.Context, collectionID, userID int64) (json.RawMessage, error)
- func (c *Client) RenameTags(ctx context.Context, collectionID int64, tags []string, replace string) (json.RawMessage, error)
- func (c *Client) Share(ctx context.Context, collectionID int64, emails []string, role string) (json.RawMessage, error)
- func (c *Client) Sharing(ctx context.Context, collectionID int64) (json.RawMessage, error)
- func (c *Client) SortCollections(ctx context.Context, sort string) (json.RawMessage, error)
- func (c *Client) Stats(ctx context.Context) (UserStats, error)
- func (c *Client) Suggest(ctx context.Context, link string) (json.RawMessage, error)
- func (c *Client) Tags(ctx context.Context, collectionID int64) ([]Tag, error)
- func (c *Client) URLsExist(ctx context.Context, urls []string) (json.RawMessage, error)
- func (c *Client) Unshare(ctx context.Context, collectionID int64) (json.RawMessage, error)
- func (c *Client) Update(ctx context.Context, id int64, body map[string]any) (Raindrop, error)
- func (c *Client) UpdateCollaborator(ctx context.Context, collectionID, userID int64, role string) (json.RawMessage, error)
- func (c *Client) UpdateCollection(ctx context.Context, id int64, body map[string]any) (json.RawMessage, error)
- func (c *Client) UpdateUser(ctx context.Context, body map[string]any) (json.RawMessage, error)
- func (c *Client) UploadCollectionCover(ctx context.Context, id int64, filePath string) (json.RawMessage, error)
- func (c *Client) UploadRaindropCover(ctx context.Context, id int64, filePath string) (json.RawMessage, error)
- func (c *Client) UploadRaindropFile(ctx context.Context, filePath string, collectionID int64) (json.RawMessage, error)
- func (c *Client) User(ctx context.Context) (json.RawMessage, error)
- type Collection
- type Count
- type Filters
- type ListOptions
- type Raindrop
- type Ref
- type Tag
- type UserStats
Constants ¶
View Source
const DefaultBaseURL = "https://api.raindrop.io/rest/v1"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) BatchDelete ¶
func (*Client) BatchUpdate ¶
func (*Client) CleanCollections ¶
func (*Client) CollectionCovers ¶
func (*Client) Collections ¶
func (*Client) CreateBackup ¶
func (*Client) CreateCollection ¶
func (*Client) DeleteCollection ¶
func (*Client) DeleteTags ¶
func (*Client) DownloadBackup ¶
func (*Client) ExpandCollections ¶
func (*Client) Highlights ¶
func (*Client) ImportFile ¶
func (*Client) JoinCollection ¶
func (*Client) MergeCollections ¶
func (*Client) RemoveCollaborator ¶
func (*Client) RenameTags ¶
func (*Client) SortCollections ¶
func (*Client) UpdateCollaborator ¶
func (*Client) UpdateCollection ¶
func (*Client) UpdateUser ¶
func (*Client) UploadCollectionCover ¶
func (*Client) UploadRaindropCover ¶
func (*Client) UploadRaindropFile ¶
type Collection ¶
type ListOptions ¶
type Raindrop ¶
type Raindrop struct {
ID int64 `json:"_id"`
Title string `json:"title"`
Link string `json:"link"`
Domain string `json:"domain"`
Excerpt string `json:"excerpt"`
Note string `json:"note"`
Type string `json:"type"`
Tags []string `json:"tags"`
Important bool `json:"important"`
Collection Ref `json:"collection"`
Created string `json:"created"`
LastUpdate string `json:"lastUpdate"`
}
Click to show internal directories.
Click to hide internal directories.