View Source Infusionsoft.Endpoints.XML.File (Infusionsoft v0.8.1)

Provides the raw endpoints to Infusionsoft's XML API for File actions.

Summary

Functions

rename_a_file(file_id, file_name, token, app \\ nil)

@spec rename_a_file(integer(), String.t(), String.t(), nil | String.t()) ::
  {:ok, integer()} | {:error, String.t()}

https://developer.infusionsoft.com/docs/xml-rpc/#file-rename-a-file

replace_a_file(file_id, base_64_encoded_data, token, app \\ nil)

@spec replace_a_file(integer(), String.t(), String.t(), nil | String.t()) ::
  {:ok, integer()} | {:error, String.t()}

https://developer.infusionsoft.com/docs/xml-rpc/#file-replace-a-file

retrieve_a_file(file_id, token, app \\ nil)

@spec retrieve_a_file(integer(), String.t(), nil | String.t()) ::
  {:ok, String.t()} | {:error, String.t()}

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

retrieve_download_url(file_id, token, app \\ nil)

@spec retrieve_download_url(integer(), String.t(), nil | String.t()) ::
  {:ok, String.t()} | {:error, String.t()}

https://developer.infusionsoft.com/docs/xml-rpc/#file-retrieve-a-file-download-url

upload_a_file(contact_id, file_name, base_64_encoded_data, token, app \\ nil)

@spec upload_a_file(integer(), String.t(), String.t(), String.t(), nil | String.t()) ::
  {:ok, integer()} | {:error, String.t()}

https://developer.infusionsoft.com/docs/xml-rpc/#file-upload-a-file