portal_api_wrapper v0.5.0 QuoteApiWrapper

Documentation for QuoteApiWrapper

Link to this section Summary

Functions

Request that a bucket be quoted

Link to this section Functions

Link to this function

init_quote(config, payload, token \\ "")

Request that a bucket be quoted

  • config is a map with metadata
  • payload is a map with data (depends on bucket type)

returns one of:

  • {:ok, result} where result is a string
  • {:error, code, message} response had non 200 code
  • {:error, _} request failed, no response

Quote needs: %{

quoteId: "id_of_bucket",
type: int, #(0 = address, 1 = ip, 2 = zip, 3 = digital canvas)
callbackURI: "string", # (The endpoint that we have to receive quotes)
s3_location: %{
  s3_bucket: "string", (S3 Bucket where file is located)
  s3_key: "string", (S3 Key where file is located)
},
columns: %{
  address_1: int,
  city: int,
  state: int,
  zip: int
}

}