View Source ActiveCampaign.Http (active_campaign v0.2.0)
The HTTP interface for interacting with the Active Campaign API.
Link to this section Summary
Functions
Encodes URL query params.
Link to this section Functions
Encodes URL query params.
This differs from URI.encode_query/2
in the following ways:
- It will encode nested maps
- It always assumes
:www_form
encoding - It assumes keys do not always need to be
:www_form
encoded - It assume there are no maps inside lists when the map has 0 or more than 1 element
examples
Examples
iex> iex> ActiveCampaign.Http.encode_query(%{a: %{b: :c}, d: :e})
"a[b]=c&d=e"
iex> ActiveCampaign.Http.encode_query(%{ids: [1, 2, 3]})
"ids[]=1&ids[]=2&ids[]=3"