Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/martapanc/Raindrop.io-digest


https://github.com/martapanc/Raindrop.io-digest

digest flask python raindrop rest-api

Last synced: about 1 month ago
JSON representation

Awesome Lists containing this project

README

        

# Digest for Raindrop.io

#### Raindrop API
Documentation: https://developer.raindrop.io/

Obtain authorization code (through browser):
```
curl --location --request GET 'https://raindrop.io/oauth/authorize?redirect_uri=http://localhost:5000&client_id='
```

Obtain token:
```
curl --location --request POST 'https://raindrop.io/oauth/access_token' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'code=' \
--data-urlencode 'client_id=' \
--data-urlencode 'client_secret=' \
--data-urlencode 'grant_type=authorization_code' \
--data-urlencode 'redirect_uri=http://localhost:5000'
```

Refresh token:
```
curl --location --request POST 'https://raindrop.io/oauth/access_token' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'client_id=' \
--data-urlencode 'client_secret=' \
--data-urlencode 'grant_type=refresh_token' \
--data-urlencode 'refresh_token='
```

#### Chromedriver
[Chromedriver download](http://chromedriver.storage.googleapis.com/index.html)

- Download the latest version of the executable and place it inside the project directory
- On Macintosh, right click and Open one first time to make sure it has the right permissions

#### MongoDB
Local Docker instance:
```
brew pull mongo
docker run -p 0.0.0.0:27017:27017 -d --name mongodb mongo
```

Mongo CLI:
```
brew tap mongodb/brew
brew install mongodb-community-shell
```
Resources:
- [CL cheatsheet](https://gist.github.com/bradtraversy/f407d642bdc3b31681bc7e56d95485b6)
- [PyMongo](https://api.mongodb.com/python/current/tutorial.html)