raindrop

package
v0.0.0-...-0133d04 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 1, 2022 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Overview

Package raindrop defines the API to connect with Raindrop.io.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API struct {
	// contains filtered or unexported fields
}

API responsibles to connect to Raindrop.io.

func NewAPI

func NewAPI(baseURL, token string) *API

NewAPI creates an instance of API.

func (*API) GetCollections

func (a *API) GetCollections(ctx context.Context) ([]*entity.Collection, error)

GetCollections gets all root collections from raindrop.io

func (*API) ParseURL

func (a *API) ParseURL(ctx context.Context, url string) (*entity.ParsedURL, error)

ParseURL parse an URL to get detailed information from raindrop.io.

func (*API) SaveRaindrop

func (a *API) SaveRaindrop(ctx context.Context, raindrop *entity.Raindrop) error

SaveRaindrop saves a raindrop bookmark to specific collection in raindrop.io.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL