Git Product home page Git Product logo

twistexport's Introduction

TwistExport

Simple script to export Twist Data

This README is true and correct as of 14th June 2020.
All future incompatibilities should be blamed on the passage of time.
DISCLAIMER: I am not associated with Twist (or Doist), other than having tried to use the product and wanting to export the data when it did not work out.

SOME BACKGROUND:

This set of scripts helps you to export your Twist Data by connecting to the the Twist API and retrieving a set of JSON files that contain your workspaces, channels, groups, threads and messages.

This script was written by a rank amateur, who learnt to code in python less than 24 hours before these words were written. Although the lack of skill is laughable, also remember: USE WITH CAUTION.

These scripts have been written and tested with Python 3.8.3, however I don't foresee that things will break in other versions. If you do find bugs with other versions, they are not bugs.

HOW TO USE:

In order to use these scripts follow these steps in precisely this order:

  1. Create an integration in the Twist. When creating this, ensure that you have selected "General Integration". (Please go through the Twist Help for how to do this, this README has limited real estate.)

  2. Now in the integration settings on the Twist site, go to the OAuth section and find the token marked as "OAuth2 test token".

If you are unable to execute steps 1 & 2, don't email me, just work harder at it.

  1. Copy that token and paste it into the auth_key string in an oauth_key.txt file. You will need to create this file and it should contain only one line, which is the token.

DISCLAIMER: This is a workaround that uses the Twist integration testing option. This will use the permissions on the basis of your user scope in Twist (you is the person who is reading and enduring this arduous instruction set).

From the Twist blurb: "To get started quickly with your app development, you can use the test token to your own account without going through the authorization process. The test token will have the full scope access."

BE CAREFUL, DO NOT EXPOSE THIS TOKEN.

  1. Install the "requests" and "requests_oauthlib" python modules. Usually this means running the command "pip3 install requests requests_oauthlib". Then run this command in the scripts folder: "python3 run.py"

Enjoy!

Vinod

twistexport's People

Contributors

vinodbollini avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.