Z-Wave-Me / home-automation

Z-Way Home Automation engine

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

api/v1/profiles does not show username. api/v1/profiles/id does

ardevd opened this issue · comments

So, while not necessarily a bug, it's a major annoyance.

Say you want to map a username with a user id. Currently, you cant just call /profiles and read out the user name. You seemingly have to iterate through all the user id's and check the login field on each one and check if it's the right one.

Is there a better solution?

Thanks!

Nevermind. I discovered the /sessions API which provides everything I need. Thanks