GrafeasGroup / tor_app

Official web app for making transcriptions easier! (WIP)
MIT License
3 stars 1 forks source link

Build wrapper for tor_api #24

Open itsthejoker opened 6 years ago

itsthejoker commented 6 years ago

Now that tor_api is (mostly) written, we need a python object wrapper that we can use to interact with it. Build a class object that can be imported that implements all methods of tor_api in a sane manner.

itsthejoker commented 6 years ago

Direct link to ToR_API: https://github.com/GrafeasGroup/tor_api

AC:

maps to something like `return requests.post(api_url+'/user/{}'.format(username), json={'api_key': self.api_key})

u = a.get_user('username')

return requests.post(api_url, json={'api_key': self.api_key})

stats = a.get_volunteer_stats()


...etc.

- all methods contained in one file (if possible)

Let's sit down and whiteboard this out as this will be a fairly complex class.