Skip to content

thevops/raindrop-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Expose selected Raindrop.io API endpoints

Resources

Stars

Watchers

Forks

Packages

No packages published