def list_participants_qos(self, **kwargs): util.require_keys(kwargs, "meeting_id") kwargs["meeting_id"] = util.encode_uuid(kwargs.get("meeting_id")) return self.get_request( "/metrics/meetings/{}/participants/qos".format(kwargs.get("meeting_id")), params=kwargs, )
def list(self, **kwargs): util.require_keys(kwargs, "meeting_id") kwargs["meeting_id"] = util.encode_uuid(kwargs.get("meeting_id")) return self.get_request( "/past_meetings/{}/instances".format(kwargs.get("meeting_id")), params=kwargs, )
def test_encode_with_double_slash(self): uuid = "i6fJBQh0Qz//grKretYGjg==" self.assertEqual(util.encode_uuid(uuid), "i6fJBQh0Qz%252F%252FgrKretYGjg%253D%253D")
def test_encode_with_leading_slash(self): uuid = "/6fJBQh0QzWCgrKretYGjg==" self.assertEqual(util.encode_uuid(uuid), "%252F6fJBQh0QzWCgrKretYGjg%253D%253D")
def test_encode_without_slash(self): uuid = "i6fJBQh0QzWCgrKretYGjg==" self.assertEqual(util.encode_uuid(uuid), "i6fJBQh0QzWCgrKretYGjg==")
def get_meeting(self, **kwargs): util.require_keys(kwargs, "meeting_id") kwargs["meeting_id"] = util.encode_uuid(kwargs.get("meeting_id")) return self.get_request("/metrics/meetings/{}".format( kwargs.get("meeting_id")), params=kwargs)
def past_get_participants(self, **kwargs): util.require_keys(kwargs, "uuid") kwargs["uuid"] = util.encode_uuid(kwargs.get("uuid")) return self.get_request( "/past_meetings/{}/participants".format(kwargs.get("uuid")), params=kwargs )