Here it is an example of sending token.
import base64
import xmlrpclib
import sys
def main():
global server
addr = '192.168.222.149'
port = '8080'
proto='http://'
serverurl = proto + addr + ':' + port + '/das/xmlrpc'
print serverurl
server=xmlrpclib.Server(serverurl)
r = server.das.sendToken('77004280', False, 'SMTP')
##Use 'SMS' to send token by SMS
print r
return
if __name__ == '__main__':
main()
No comments:
Post a Comment