Don't like ads? PRO users don't see any ads ;-)
Guest

[sample][py]Ideone api

By: tastypear on Jun 1st, 2012  |  syntax: Python  |  size: 0.47 KB  |  hits: 30  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. from SOAPpy import WSDL
  2. wsdlObject = WSDL.Proxy('http://ideone.com/api/1/service.wsdl')
  3. srcCode = r"""
  4. #include<iostream>
  5. int main() {
  6.         std::cout<<"hello world"
  7.    return 0;
  8. }"""
  9.  
  10. link = wsdlObject.createSubmission('tastypear','choppermask',srcCode,1,'',True,True)
  11. for item in link['item']:
  12.         print item
  13. print link
  14.  
  15. status = wsdlObject.getSubmissionDetails('tastypear','choppermask','MzMMK',False,False,True,False,True)
  16. for item in status['item']:
  17.         print item