Commit c28f097a authored by Federico Sismondi's avatar Federico Sismondi

added example

parent bbdcd088
...@@ -269,7 +269,6 @@ if __name__ == '__main__': ...@@ -269,7 +269,6 @@ if __name__ == '__main__':
except KeyError as e: except KeyError as e:
AMQP_URL = "amqp://guest:guest@localhost/" AMQP_URL = "amqp://guest:guest@localhost/"
def callback_function(message_received): def callback_function(message_received):
print("Callback function received: \n\t" + repr(message_received)) print("Callback function received: \n\t" + repr(message_received))
...@@ -316,7 +315,12 @@ if __name__ == '__main__': ...@@ -316,7 +315,12 @@ if __name__ == '__main__':
con = pika.BlockingConnection(pika.URLParameters(AMQP_URL)) con = pika.BlockingConnection(pika.URLParameters(AMQP_URL))
channel = con.channel() channel = con.channel()
ui_request = MsgUiRequestConfirmationButton() # ui_request = MsgUiRequestConfirmationButton()
print("publishing .. %s" % repr(ui_request)) # print("publishing .. %s" % repr(ui_request))
ui_reply = amqp_request(con, ui_request, 'dummy_component') # ui_reply = amqp_request(con, ui_request, 'dummy_component')
print(repr(ui_reply)) # print(repr(ui_reply))
req = MsgUiRequestSessionConfiguration()
ui_reply = amqp_request(con, req,'dummy_component')
print(ui_reply.users)
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment