lib/emarsys/data_objects/contact.rb
# Delete a contact. The given params are transformed to emarsys ids.
#
# @param key_id [Integer, String] internal id of key field
# @param key_value [Integer, String] value of internal id field
# @return [Hash]
# @example
#   Emarsys::Contact.update('app_id', 23, {:firstname => "Jon", :lastname => "Doe"})
#   Emarsys::Contact.update('3', 'john.doe@example.com', {'1' => "Jon", '2' => "Doe"}, true)
Delete a contact. The given params are transformed to emarsys ids.
Delete a contact . The given params are transformed to emarsys ids .
def delete(key_id:, key_value:, account: nil)
        path = "contact/delete"
        transformed_key_id = transform_key_id(key_id)
        post account, path, {'key_id' => transformed_key_id, transformed_key_id => key_value}
      end
def delete ( key_id : , key_value : , account : nil ) path = "contact/delete" transformed_key_id = transform_key_id ( key_id ) post account , path , { 'key_id' => transformed_key_id , transformed_key_id => key_value } end
Delete a contact.
Delete a contact .
None
Hash
key_id
internal id of key field
internal id of key field
key_value
value of internal id field
value of internal id field
account
<not_specific>
example
None