Skip to content

Instantly share code, notes, and snippets.

@talhasyed
Created June 28, 2010 15:58
Show Gist options
  • Save talhasyed/456005 to your computer and use it in GitHub Desktop.
Save talhasyed/456005 to your computer and use it in GitHub Desktop.
require 'soap/wsdlDriver'
class Akamai
WSDL_URL = "https://ccuapi.akamai.com/ccuapi-dotnet.wsdl"
# To debug, put @soap_client.wiredump_file_base = "log"
def self.purge(*urls)
@soap_client = SOAP::WSDLDriverFactory.new(WSDL_URL).create_rpc_driver
# with/without email notification
#
response = @soap_client.purgeRequest("thescore-username", "@ttili0", "", ["[email protected]"], urls)
response = @soap_client.purgeRequest("thescore-username", "@ttili0", "", [""], urls)
#
# response.resultCode code should match /[12]\d\d/
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment