bitjson / couple-api

Unofficial Couple CLI and node library (incomplete)
MIT License
10 stars 4 forks source link

API spec? #1

Open gyaresu opened 9 years ago

gyaresu commented 9 years ago

Nice work.

I'm looking to recover our message history.

Did you have any luck discovering other API calls available?

Cheers.

bitjson commented 9 years ago

Thanks – haven't quite had time to fully explore everything, but you can check out the contents of the returned authObject for lots of good stuff.

To download your message history:

With the cli:

$ couple auth <email> <password>

Will return your identify() object. The api for the timeline looks like: [identify().apiHost]/timeline?authenticationToken=[identify().authToken]%3D&limit=100&order=desc

The endpoint seems to accept an unlimited limit, so it's currently possible to bulk download the full history as a JSON document.

bitjson commented 9 years ago

I'll continue to explore the API (using mitmproxy) and build out the client, CLI, and some documentation as time permits. I'd love to pull in contributions!

gyaresu commented 9 years ago

:+1:

gyaresu commented 9 years ago

I just pulled your latest commit. You've been busy! :)

Nice simObj. I started dummy accounts now that I've managed to make a backup of our history (including all media files). So thanks!

I'm a sysadmin who's moving into dev so I'm still learning but I'm going to keep working the next couple of days on integrating the download/archive feature into your app.

If you have any suggestions please don't hesitate to comment.

Maybe I'll get far enough along that you find it useful. https://github.com/gyaresu/couple-api/tree/download

Cheers Gareth