View Source Infusionsoft.Endpoints.XML.Data (Infusionsoft v0.8.1)
Provides the raw endpoints to Infusionsoft's XML API for Data actions.
Summary
Functions
This function is not mapped to any Infusionsoft API endpoint. Instead, it is a helper
to recurse on query_a_data_table/6
and get the full number of records instead of one page.
Functions
@spec count_records(String.t(), map(), String.t(), nil | String.t()) :: {:ok, integer()} | {:error, String.t()}
https://developer.infusionsoft.com/docs/xml-rpc/#data-count-a-data-table-s-records
@spec create_a_record(String.t(), map(), String.t(), nil | String.t()) :: {:ok, integer()} | {:error, String.t()}
https://developer.infusionsoft.com/docs/xml-rpc/#data-create-a-record
@spec create_custom_field( String.t(), String.t(), String.t(), integer(), String.t(), nil | String.t() ) :: {:ok, integer()} | {:error, String.t()}
https://developer.infusionsoft.com/docs/xml-rpc/#data-create-a-custom-field
@spec delete_a_record(String.t(), integer(), String.t(), nil | String.t()) :: {:ok, boolean()} | {:error, String.t()}
https://developer.infusionsoft.com/docs/xml-rpc/#data-delete-a-record
@spec find_by_field( String.t(), String.t(), String.t(), [String.t()], String.t(), nil | String.t(), keyword() ) :: {:ok, list()} | {:error, String.t()}
https://developer.infusionsoft.com/docs/xml-rpc/#data-find-a-record-by-matching-a-specific-field
Available options: page - defaults to 0 limit - defaults to 1000
@spec query_a_data_table( String.t(), map(), [String.t()], String.t(), nil | String.t(), keyword() ) :: {:ok, [map()]} | {:error, any()}
https://developer.infusionsoft.com/docs/xml-rpc/#data-query-a-data-table
Available options: page - defaults to 0 limit - defaults to 1000 order_by - defualts to Id ascending - defaults to false
@spec query_all_from_table( String.t(), map(), [String.t()], String.t(), nil | String.t(), keyword() ) :: {:ok, list()} | {:error, String.t()}
This function is not mapped to any Infusionsoft API endpoint. Instead, it is a helper
to recurse on query_a_data_table/6
and get the full number of records instead of one page.
https://developer.infusionsoft.com/docs/xml-rpc/#data-query-a-data-table
Available options: order_by - defualts to Id ascending - defaults to false
@spec retrieve_a_record( String.t(), integer(), [String.t()], String.t(), nil | String.t() ) :: {:ok, map()} | {:error, String.t()}
https://developer.infusionsoft.com/docs/xml-rpc/#data-retrieve-a-record
@spec retrieve_application_setting( String.t(), String.t(), String.t(), nil | String.t() ) :: {:ok, String.t()} | {:error, String.t()}
https://developer.infusionsoft.com/docs/xml-rpc/#data-retrieve-application-setting
@spec retrieve_appointments_ical(integer(), String.t(), nil | String.t()) :: {:ok, String.t()} | {:error, String.t()}
https://developer.infusionsoft.com/docs/xml-rpc/#data-retrieve-an-appointment-s-icalendar-file
@spec update_a_custom_field(integer(), map(), String.t(), nil | String.t()) :: {:ok, boolean()} | {:error, String.t()}
https://developer.infusionsoft.com/docs/xml-rpc/#data-update-a-custom-field
@spec update_a_record(String.t(), integer(), map(), String.t(), nil | String.t()) :: {:ok, integer()} | {:error, String.t()}
https://developer.infusionsoft.com/docs/xml-rpc/#data-update-a-record
@spec validate_a_users_credentials( String.t(), String.t(), String.t(), nil | String.t() ) :: {:ok, integer() | String.t()} | {:error, String.t()}
https://developer.infusionsoft.com/docs/xml-rpc/#data-validate-a-user-s-credentials