Created
June 28, 2010 15:58
-
-
Save talhasyed/456005 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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