<a rel="nofollow" target="blank" title="Link: null">Repetier</a> said:
Demo asks for user/password if required instead of using api key. If you have no users no key or user is required - all have full access then.
The link it self is not correct - you need to urlencode the json string or parts get interpreted wrong.
For tthe payload you can use https://jsonlint.com/ to verify the json syntax is correct. For me it looks correct so demo should work if you are authenticated or do not need authentication.
Thanks again for the reply.
I am still having hard time to make it work. I think I am authenticated. When I call userlist, I am getting this response. { "loginRequired": true, "users": [ { "apikey": "blahblah-9ae7-4860-8748-a79edb5a6064", "id": 1, "login": "ss2432", "permissions": 1023, "uuid": "" } ] }
The strange thing is when I tried Action with a command login and the right JSON payload to double-check if I am authenticated. I am getting this. { "error": "Login or password invalid!"}
It's weird because I can retrieve the information with the userlist?
But when I tried to operate the printer with babystep, the response I am getting is {"ok":false}
I am expecting true but the reason I am getting false is I assume I still have an authentication problem?
Probably stupid question... the username and password are the credential for the Repetier-server account?
Update event list continues to print this line which I assume normal. { "data": { "O": 0, "S": 0, "T": -20, "id": 0, "t": 1598550770860 }, "event": "temp", "printer": "deltaHyperreal" } }
Do you have any idea why it's not working? loginRequired should be false in case I am already logged in?
I am confused...
Thanks for your prompt reply! Please let me know!