I'm trying to call getRoomInfo from python but it throws an exception.
My code looks something like:
account = "%s/%s" % (lccsSettings.HOST, lccsSettings.ACCOUNT)
am = accountmanager(account)
am.login(lccsSettings.USER, lccsSettings.PASSWORD)
am.getRoomInfo( 'leakrunnyauk' ) # leakrunnyauk is the name of the room
It gets a response of:
<result>
<status code="error" subcode="not-active"/>
</result>
I'm probably doing something silly, any idea what it might be?
-sandy
Views
Replies
Total Likes
Nothing silly. It's telling you that the room is currently not running.
What type of informations are you trying to query ?
Views
Replies
Total Likes
Oh, I had assumed that as long as the room exists ( which it does) that it would return the salient data.
For example, dateCreated, bytesUp, bytesDown, etc...all make sense even when a room isn't currently in use.
I'm trying to get the usercount, so I can just assume it's 0 if it throws the exception.
Thanks,
-sandy
Views
Replies
Total Likes
Yes, room not running == 0 users in the room
Currently getRoomInfo returns live data (and actually, dateCreated is the
date the room started, not when you executed createRoom).