Skip to content

Instantly share code, notes, and snippets.

@tal
Created August 26, 2010 21:47
Show Gist options
  • Select an option

  • Save tal/552322 to your computer and use it in GitHub Desktop.

Select an option

Save tal/552322 to your computer and use it in GitHub Desktop.
require 'rubygems'
require 'soap/wsdlDriver'
wsdl_url = 'https://ccuapi.akamai.com/ccuapi-axis.wsdl'
user = '[email protected]'
pass = '...'
urls = ['http://staticcdn.omgpop.com/embed/v1/omgpop-external-embed.js']
driver = SOAP::WSDLDriverFactory.new(wsdl_url).create_rpc_driver
driver.options['protocol.http.ssl_config.verify_mode'] = OpenSSL::SSL::VERIFY_NONE
driver.options["protocol.http.basic_auth"] << [wsdl_url, user, pass]
result = driver.purgeRequest(user, pass, '', ['type=arl','action=remove'], urls)
puts result.inspect
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment