Paidy.URI (paidy v0.2.2)

Paidy URI helpers to encode nested dictionaries as query_params.

Link to this section Summary

Functions

Takes a map and turns it into proper query values.

Link to this section Functions

Link to this function

encode_query(list)

Takes a map and turns it into proper query values.

Example

card_data = %{ card: %{

number: 424242424242,
exp_year: 2014

} }

Paidy.URI.encode_query(card) # card[number]=424242424242&card[exp_year]=2014