Skip to content

Latest commit

 

History

History
64 lines (36 loc) · 1.14 KB

README.md

File metadata and controls

64 lines (36 loc) · 1.14 KB

Raindrop API

Raindrop API docs: https://developer.raindrop.io/

Usage

Example code

Run:

RAINDROP_TOKEN=<my-token> RAINDROP_COLLECTION_ID=<number> npm run example

🏭 Raindrop

Methods

⚙️ addItem

Add a new link to a collection.

Method Type
addItem (item: RaindropItem) => Promise<boolean>

Parameters:

  • item: - The RaindropItem to add.

⚙️ removeItem

Remove a single raindrop (item).

Method Type
removeItem (itemId: string) => Promise<boolean>

Parameters:

  • itemId: - The id of the raindrop to remove.

⚙️ getFirstItemFromCollection

Get the first item from a collection.

Method Type
getFirstItemFromCollection (collectionId: string) => Promise<{ object: RaindropItem; msg: string; status: boolean; }>

Parameters:

  • collectionId: - The id of the collection.