https://github.com/codemotionapps/flask-api-example
https://github.com/codemotionapps/flask-api-example
Last synced: 11 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/codemotionapps/flask-api-example
- Owner: codemotionapps
- Created: 2019-12-30T13:30:56.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-01-02T14:19:07.000Z (about 6 years ago)
- Last Synced: 2025-01-03T22:15:59.024Z (about 1 year ago)
- Language: Python
- Size: 5.86 KB
- Stars: 2
- Watchers: 7
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This is a simple example of Ora's OAuth 2 API flow.
To test it out, you should firstly create an OAuth app in Ora: Here is a link to a help article that will help you with creating the app: https://help.ora.pm/article/79-getting-started-with-ora-public-api
While creating the OAuth app, you will need to provide a redirect_uri. The uri for this example is:
```
http://localhost:5001/redirect-uri
```
After you create the app, you will receive CLIENT_ID and CLIENT_SECRET. Put them in the `app/config.py` file.
To start the server you should run this commands:
```
cd flask-api-example
pip3 install -r requirements.txt
python3 app.py
```