User blog comment:LadyAlys/Android's Tasker app and HabitRPG's API/@comment-93.33.49.20-20140829233709

Awesome!

The only problem is that JavaScript in Tasker needs the global variables to be used with the function global.

http.setRequestHeader("x-api-user", global("HabitrpgUserid")); http.setRequestHeader("x-api-key", global("HabitrpgApIToken"));

With this simple fix works great. Thank you, is extremely useful combined with smart wear ;) Ax