https://github.com/martapanc/Raindrop.io-digest
https://github.com/martapanc/Raindrop.io-digest
digest flask python raindrop rest-api
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/martapanc/Raindrop.io-digest
- Owner: martapanc
- Created: 2020-08-25T21:19:53.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-09-10T23:31:57.000Z (over 4 years ago)
- Last Synced: 2024-08-14T07:09:47.705Z (8 months ago)
- Topics: digest, flask, python, raindrop, rest-api
- Language: Python
- Homepage:
- Size: 7.22 MB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- jimsghstars - martapanc/Raindrop.io-digest - (Python)
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)