pjf / WebService-HabitRPG

Access the HabitRPG API from Perl
8 stars 5 forks source link

Score Habit broken after API changes #39

Closed eshapard closed 7 years ago

eshapard commented 7 years ago

They changed servers or something and the API is picky about how you body parameters. This broke a program I wrote.

Running hrpg from the command line (hrpg + "task name"), It seems to score a task but always says "Looks like an item dropped!", and HP, XP, and GP are always +0.00.

The task, of course, remains incomplete on Habitica.

In the Aspiring Comrades guild/forum Alys wrote the following which might be of help:

Everyone, changes have happened to the servers that Habitica uses which have resulted in the API's score route now needing a body parameter, which can be an empty string. For example, it's necessary to add -d "" as shown below. Ideally, we'll try to make it so that the new requirement stops being necessary since it's a breaking change, but I don't know at the moment if that will be possible.

hoelzro commented 7 years ago

@eshapard Thanks for the report - I have an idea on how to fix this, and I'll take care of it sometime this weekend.

hoelzro commented 7 years ago

This is fixed in version 0.30 of the module!

eshapard commented 7 years ago

You rock!

On Sat, Sep 2, 2017 at 8:51 AM, Rob Hoelz notifications@github.com wrote:

This is fixed in version 0.30 of the module!

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/pjf/WebService-HabitRPG/issues/39#issuecomment-326752354, or mute the thread https://github.com/notifications/unsubscribe-auth/AF5-Kv_0-4yCWdOSHOKNDStKtU_F05_2ks5seXmXgaJpZM4PKWju .