Versions in this module Expand all Collapse all v0 v0.2.1 Oct 10, 2026 v0.2.0 Oct 10, 2026 Changes in this version + func ValidateCreateItems(items []CreateItem) error + type APIError struct + Message string + RetryAfter string + StatusCode int + func (e *APIError) Error() string type Client + func (c *Client) CollectionTree(ctx context.Context) ([]CollectionPath, error) + func (c *Client) CreateMany(ctx context.Context, items []CreateItem) ([]Raindrop, error) + type CollectionPath struct + Count int64 + Depth int + ID int64 + ParentID int64 + Path string + Title string + func BuildCollectionTree(items []Collection) ([]CollectionPath, error) + type CreateItem struct + Collection *Ref + Excerpt string + Important *bool + Link string + Note string + PleaseParse *struct{} + Tags []string + Title string v0.1.0 May 12, 2026 Changes in this version + const DefaultBaseURL + type Client struct + func NewClient(baseURL, token string) *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 struct + Color string + Count int64 + ID int64 + Parent *Ref + Public bool + Title string + View string + type Count struct + Count int64 + type Filters struct + Broken Count + Duplicates Count + Important Count + NoTag Count + Result bool + Tags []Tag + Types []Tag + type ListOptions struct + CollectionID int64 + Nested bool + Page int + PerPage int + Search string + Sort string + type Raindrop struct + Collection Ref + Created string + Domain string + Excerpt string + ID int64 + Important bool + LastUpdate string + Link string + Note string + Tags []string + Title string + Type string + type Ref struct + ID int64 + type Tag struct + Count int64 + ID string + type UserStats struct + Items []struct{ ... } + Meta struct{ ... } + Result bool