Module Import alias Import alias Import alias Assign NameStore Call AttributeLoad NameLoad attr Str Print Str Assign NameStore Str Assign NameStore Str Print Call AttributeLoad NameLoad attr NameLoad NameLoad Print Call AttributeLoad NameLoad attr Num Num Print Str Print Call AttributeLoad NameLoad attr Str Print Str Print Call AttributeLoad NameLoad attr Print Str Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Print NameLoad Print Str Print SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Num Index Str Print Str Print Str Print Str Print Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Print NameLoad Print Str Print Str Print Str Print Str
N/A N/A xmlrpclib N/A json N/A time N/A api N/A N/A xmlrpclib ServerProxy http://bradley:password@localhost:8442/ N/A Let's test the API first. N/A inputstr1 hello N/A inputstr2 world N/A N/A N/A api helloWorld inputstr1 inputstr2 N/A N/A N/A api add 2 3 N/A Let's set the status bar message. N/A N/A N/A api statusBar new status bar message N/A Let's list our addresses: N/A N/A N/A api listAddresses N/A Let's list our address again, but this time let's parse the json data into a Python data structure: N/A jsonAddresses N/A N/A json loads N/A N/A api listAddresses N/A jsonAddresses N/A Now that we have our address data in a nice Python data structure, let's look at the first address (index 0) and print its label: N/A N/A N/A N/A jsonAddresses N/A addresses N/A 0 N/A label N/A Uncomment the next two lines to create a new random address with a slightly higher difficulty setting than normal. N/A Uncomment these next four lines to create new deterministic addresses. N/A Let's now print all of our inbox messages: N/A N/A N/A api getAllInboxMessages N/A inboxMessages N/A N/A json loads N/A N/A api getAllInboxMessages N/A inboxMessages N/A Uncomment this next line to decode the actual message data in the first message: N/A Uncomment this next line in the code to delete a message N/A Uncomment these lines to send a message. The example addresses are invalid; you will have to put your own in. N/A Uncomment these lines to send a broadcast. The example address is invalid; you will have to put your own in.