View Source ExImaginary (ex_imaginary v0.1.0)
Provides functions to generate secure Imginary URLs.
Link to this section Summary
Functions
Generates a secure Imginary URL given
Link to this section Functions
Generates a secure Imginary URL given:
path- The URL path of the image operation.params- (optional) A map containing Imgaginary API parameters used to manipulate the image.config- (optional) A map containing Imganiry source config::host- The Imaginary host.:token- The token for API authorization.:url_signature_key- The url signature key used to verify the API url signature.Examples
iex> ExImaginary.url "/resize", %{nocrop: true, type: "jpeg", url: "https://raw.githubusercontent.com/mrdotb/i/master/mcdo.jpg"} "http://localhost:9000/resize?nocrop=true&type=jpeg&url=https%3A%2F%2Fraw.githubusercontent.com%2Fmrdotb%2Fi%2Fmaster%2Fmcdo.jpg" iex> ExImaginary.url "/thumbnail", %{url: "https://raw.githubusercontent.com/mrdotb/i/master/mcdo.jpg"} "http://localhost:9000/thumbnail?url=https%3A%2F%2Fraw.githubusercontent.com%2Fmrdotb%2Fi%2Fmaster%2Fmcdo.jpg"