123456789101112131415161718192021222324252627 |
- url_root = 'http://192.168.1.1/chamilo'
- security_key= 'abcdef1234567890abcdef1234567890'
- from SOAPpy import SOAPProxy
- server = SOAPProxy(url_root+'/main/webservices/soap.php' )
- import hashlib
- import urllib2 as wget
- my_ip = wget.urlopen(url_root+'/main/webservices/testip.php').readlines()[0][:-1]
- secret_key = hashlib.sha1(my_ip+security_key).hexdigest()
|