- Notifications
You must be signed in to change notification settings - Fork0
thatapicompany/supernormal.com-api-exporter
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
This script fetches all posts from the Supernormal API and saves them as a JSON file.
At time of creation there was no support for this via the Official Supernormal API, so this script was created to fill that gap.
We have also intocluded the OpenAPI spec doc we have created by reverse engineering the Supernormal API. This is a work in progress and may not be 100% accurate.
- Aden Forshaw - ThatAPICompany.com
- Blog post with more details and ideas to use the API for:Exporting data from Supernormal
To run this script, you need:
- Python 3 installed (Check with
python --version
orpython3 --version
) - AnAPI Bearer token for authentication - this comes from your Browser after logging into your account
python3 -m pip install --user virtualenvpython3 -m venv envsource env/bin/activatepip install -r requirements.txtpython3 export_posts.py
You will be asked for a Bearer token. Get it from your browser 'network' tab after logging into your Supernormal account and then Paste it in and press enter.
The script will then fetch all posts and save them to a file calledposts.json
.All Posts will be saved in a folder calledposts
as individual JSON files, and all the tasks from the posts will be saved in a folder calledtasks
as individual JSON files.
- Log into your Supernormal account
- Open the Developer Tools in your browser (usually by pressing F12)
- Go to the 'Network' tab
- Refresh the page
- Look for a request to
api.supernormal.com
in the list of requests - or one calleduser
- Click on the request and look for the
Authorization
header in the request headers - Copy the value of the
Authorization
header (it should start withBearer
) and paste it into the script when prompted
- Exporting all posts to a JSON file
- Exporting all tasks to a JSON file
- Exporting all posts to individual JSON files
Once you've exported all the data you could import it into any platforms not currently setup as integrations inside of Supernormal.
This could be:
- Exporting all the Tasks to a CSV file for further analysis
- Microsoft Teams for notifications
- Gitlab for tracking tasks
- Google Sheets for reporting
- Zendesk for customer support
- Use the refresh token flow to create a long running script that fetches new posts every hour
Sure Zapier could do some of this, but this script is free and you can run it on your own server.
MIT - aka do what you want with this code. Have fun!
About
Export script and OpenAPI doc for Supernormal.com
Resources
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
Packages0
Uh oh!
There was an error while loading.Please reload this page.