habitrpg-todo-sync icon indicating copy to clipboard operation
habitrpg-todo-sync copied to clipboard

API-Version 2

Open kronn opened this issue 9 years ago • 5 comments

While poking around in the code, I noticed that HabitRPG has updated it's API-version and deprecated version 1. Your tool is built for V1.

Adding a task still works, but the extra fields you use for identifying already added tasks are no longer present.

Do you have any idea on how to match existing/already synced tasks against a running sync?

I would be glad to help/revive this project at least to the point where it's working for me.

kronn avatar May 17 '15 17:05 kronn

I have to correct my analysis: the hts_external_* are set upon creation but not returned upon querying the list of existing tasks somehow.

Simply switchtig to /api/v2/ (and renaming of paths) lead to duplicate addition of tasks.

kronn avatar May 17 '15 18:05 kronn

Unfortunately, yeah...it's pretty old. Thanks for your pull request; would you like to simply be a committer so I'm not a bottleneck? Then you can merge your PRs too.

wizonesolutions avatar May 27 '15 16:05 wizonesolutions

Cool, thanks.

Seems like I should read up on the HabitRPG APIv2 and install a local version of that, now. :-)

kronn avatar May 28 '15 08:05 kronn

You may be interested in https://github.com/kusold/habitrpg-api

It's an attempt to capture any changes to the habitrpg api so that only one person needs to make any necessary changes. It runs integration tests through travisci https://travis-ci.org/kusold/habitrpg-api

kusold avatar May 28 '15 16:05 kusold

Oh nice. I will definitely take a look how I can use this in the upgrade process.

kronn avatar May 28 '15 18:05 kronn