User blog comment:LadyAlys/HabitRPG Unofficial User Data Display/@comment-103.246.106.9-20150922104219/@comment-24150802-20150927044935

I'm sorry I haven't replied sooner; I didn't get a notification that this was here.

I'm afraid that what you are trying to do can't be made to work. The way a browser works for a webpage when the page contains JavaScript, is that the browser displays the HTML portion of the page and then the browser's JavaScript engine executes the JavaScript code. Curl does not have a JavaScript engine, so all it can do is download the raw HTML and raw JavaScript code - it can't execute that code to make the JavaScript run. For the Data Display Tool, almost all of its content is produced on the fly by JavaScript, which means that when you download it with curl, you get almost nothing except the raw JavaScript code. In particular, the authentication is handled by JavaScript ajax calls, which means that supplying your UUID and Token to a curl command won't have any effect - there's no way that the ajax call can be made without a JavaScript engine.

However what you can do with curl is issue commands directly to Habitica's API, which is what the DDT's JavaScript code does. So you can't use the DDT itself, but you can use the API to do the same thing that the DDT does. There's some documentation on the API's page, and you might be able to get some other ideas from the DDT's source code (you're welcome to take whatever you can from it).