Sha256: 14d4ede416a691e88c79d6bacacde3f675e0821c43e990aaf754fddf25f05267
Contents?: true
Size: 556 Bytes
Versions: 21
Compression:
Stored size: 556 Bytes
Contents
module Attributes def add_attribute(constituent_id, attribute_id, value, options = {}) parameters = { 'Keyword' => { 'Id' => attribute_id, }, 'Constituent' => { 'Id' => constituent_id, }, 'Value' => value, 'UpdatedDateTime' => DateTime.now.to_s, } options.merge!(basic_auth: @auth, headers: @headers) options.merge!(:body => parameters.to_json) response = self.class.post(base_api_endpoint('CRM/Attributes'), options) JSON.parse(response.body) end end
Version data entries
21 entries across 21 versions & 1 rubygems