lib/constantcontact/util/config.rb in constantcontact-1.2.0 vs lib/constantcontact/util/config.rb in constantcontact-1.3.2

- old
+ new

@@ -21,10 +21,11 @@ :clear_lists_activity => 'activities/clearlists', :remove_from_lists_activity => 'activities/removefromlists', :add_contacts_activity => 'activities/addcontacts', :account_verified_addresses => 'account/verifiedemailaddresses', + :account_info => 'account/info', :contact => 'contacts/%s', :contacts => 'contacts', :lists => 'lists', :list => 'lists/%s', @@ -129,21 +130,23 @@ :custom_field_15 => 'CUSTOM FIELD 15' }, # Errors to be returned for various exceptions :errors => { - :id_or_object => 'Only an id or %s object are allowed for this method.' + :id_or_object => 'Only an id or %s object are allowed for this method.', + :invalid_webhook => 'Invalid Webhook. The x-ctct-hmac-sha256 does not correspond to message encryption.', + :api_secret_missing => 'The api_secret is missing in explicit call or configuration.' } } - + class << self attr_accessor :props - + def configure yield props if block_given? end - + # Get a configuration property given a specified location, example usage: Config::get('auth.token_endpoint') # @param [String] index - location of the property to obtain # @return [String] def get(index) properties = index.split('.') @@ -165,6 +168,6 @@ end end end end -end \ No newline at end of file +end