Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Export script and OpenAPI doc for Supernormal.com

NotificationsYou must be signed in to change notification settings

thatapicompany/supernormal.com-api-exporter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

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.

Author

Prerequisites

To run this script, you need:

  • Python 3 installed (Check withpython --version orpython3 --version)
  • AnAPI Bearer token for authentication - this comes from your Browser after logging into your account

Running locally via a virtual environment

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.

Finding your Bearer Token

  1. Log into your Supernormal account
  2. Open the Developer Tools in your browser (usually by pressing F12)
  3. Go to the 'Network' tab
  4. Refresh the page
  5. Look for a request toapi.supernormal.com in the list of requests - or one calleduser
  6. Click on the request and look for theAuthorization header in the request headers
  7. Copy the value of theAuthorization header (it should start withBearer) and paste it into the script when prompted

Bearer Example Screenshot

Example Screenshot

Posts Example Screenshot

UseCases

  • 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.

License

MIT - aka do what you want with this code. Have fun!

About

Export script and OpenAPI doc for Supernormal.com

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp