Sha256: 86bd55152e1bc2e5121c69578ca92c663c1ab996b84b759d1cec399aa406bcce
Contents?: true
Size: 559 Bytes
Versions: 75
Compression:
Stored size: 559 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) response = self.class.post(base_api_endpoint('CRM/Attributes'), options) JSON.parse(response.body) end end
Version data entries
75 entries across 75 versions & 1 rubygems