Infusionsoft v0.2.0 Infusionsoft.Endpoints.XML.Contacts View Source

Provides the raw endpoints to Infusionsoft’s XML API for Contacts.

A few endpoints that are available in the API documentation have not been implemented, but the function names have been included in comments.

Link to this section Summary

Functions

https://developer.infusionsoft.com/docs/xml-rpc/#contact-add-a-tag-to-a-contact

https://developer.infusionsoft.com/docs/xml-rpc/#contact-create-a-contact

https://developer.infusionsoft.com/docs/xml-rpc/#contact-create-a-contact-and-check-for-duplicates

https://developer.infusionsoft.com/docs/xml-rpc/#contact-link-contacts

https://developer.infusionsoft.com/docs/xml-rpc/#contact-list-linked-contacts

https://developer.infusionsoft.com/docs/xml-rpc/#contact-merge-two-contacts

https://developer.infusionsoft.com/docs/xml-rpc/#contact-remove-a-tag-from-a-contact

https://developer.infusionsoft.com/docs/xml-rpc/#contact-retrieve-a-contact

https://developer.infusionsoft.com/docs/xml-rpc/#contact-search-for-a-contact-by-an-email-address

https://developer.infusionsoft.com/docs/xml-rpc/#contact-unlink-contacts

https://developer.infusionsoft.com/docs/xml-rpc/#contact-update-a-contact

Link to this section Functions

Link to this function add_tag(contact_id, tag_id, token, app \\ nil) View Source
add_tag(integer(), integer(), String.t(), nil | String.t()) ::
  {:ok, true | false} | {:error, String.t()}

https://developer.infusionsoft.com/docs/xml-rpc/#contact-add-a-tag-to-a-contact

Link to this function create(data, token, app \\ nil) View Source
create(map(), String.t(), nil | String.t()) ::
  {:ok, integer()} | {:error, String.t()}

https://developer.infusionsoft.com/docs/xml-rpc/#contact-create-a-contact

Link to this function create_with_dupe_check(data, check_type, token, app \\ nil) View Source
create_with_dupe_check(map(), String.t(), atom(), nil | String.t()) ::
  {:ok, integer()} | {:error, String.t()}

https://developer.infusionsoft.com/docs/xml-rpc/#contact-create-a-contact-and-check-for-duplicates

Link to this function link(contact_id_1, contact_id_2, link_type_id, token, app \\ nil) View Source
link(integer(), integer(), integer(), String.t(), nil | String.t()) ::
  {:ok, true | false} | {:error, String.t()}

https://developer.infusionsoft.com/docs/xml-rpc/#contact-link-contacts

Link to this function list_linked_contacts(id, token, app \\ nil) View Source
list_linked_contacts(integer(), String.t(), nil | String.t()) ::
  {:ok, list()} | {:error, String.t()}

https://developer.infusionsoft.com/docs/xml-rpc/#contact-list-linked-contacts

Link to this function merge(id, id_duplicate, token, app \\ nil) View Source
merge(integer(), integer(), String.t(), nil | String.t()) ::
  {:ok, integer()} | {:error, String.t()}

https://developer.infusionsoft.com/docs/xml-rpc/#contact-merge-two-contacts

Link to this function remove_tag(contact_id, tag_id, token, app \\ nil) View Source
remove_tag(integer(), integer(), String.t(), nil | String.t()) ::
  {:ok, true | false} | {:error, String.t()}

https://developer.infusionsoft.com/docs/xml-rpc/#contact-remove-a-tag-from-a-contact

Link to this function retrieve(id, fields, token, app \\ nil) View Source
retrieve(integer(), [String.t()], String.t(), nil | String.t()) ::
  {:ok, map()} | {:error, String.t()}

https://developer.infusionsoft.com/docs/xml-rpc/#contact-retrieve-a-contact

Link to this function search_by_email(email, fields, token, app \\ nil) View Source
search_by_email(String.t(), list(), String.t(), nil | String.t()) ::
  {:ok, [map()]} | {:error, String.t()}

https://developer.infusionsoft.com/docs/xml-rpc/#contact-search-for-a-contact-by-an-email-address

Link to this function unlink(contact_id_1, contact_id_2, link_type_id, token, app \\ nil) View Source
unlink(integer(), integer(), integer(), String.t(), nil | String.t()) ::
  {:ok, true | false} | {:error, String.t()}

https://developer.infusionsoft.com/docs/xml-rpc/#contact-unlink-contacts

Link to this function update(id, data, token, app \\ nil) View Source
update(integer(), map(), String.t(), nil | String.t()) ::
  {:ok, integer()} | {:error, String.t()}

https://developer.infusionsoft.com/docs/xml-rpc/#contact-update-a-contact