class Jemquarie::Expiry
Public Instance Methods
credentials_expiry()
click to toggle source
# File lib/jemquarie/expiry.rb, line 7 def credentials_expiry response = @client.call(:generate_xml_extract, :message => create_message) return parse_expiry_response(response) if response.success? {:error => "An error has occured, please try again later"} end
Private Instance Methods
create_message()
click to toggle source
# File lib/jemquarie/expiry.rb, line 15 def create_message { :string => hash_key(Jemquarie.api_key), # base64 encoded of the sha1 hashed api key :string0 => Jemquarie.app_key, :string1 => hash_key(@username), :string2 => hash_key(@password), :string3 => 'Authentication Expiry', :string4 => 'V1.0', :strings => '' } end