Пример #1
0
 def test_create_webhook(self):
     webhook = Webhook()
     room = Room.get(session, name=roomname)
     webhook.targetUrl ='http://foo.net/api/v1'
     webhook.filter = 'roomId={}'.format(room.id)
     webhook.name = 'python sdk testing webhook'
     webhook.resource = 'messages'
     webhook.event = 'created'
     webhook = webhook.create(session)
     self.assertIsInstance(webhook, Webhook)