BigQuery v0.0.13 BigQuery.Resource

Summary

Functions

BigQuery really doesn’t like if when you try to POST a JSON object that has null values, but doesn’t seem to mind missing fields. So this is just a little helper function to remove any fields with a nil value from a map/struct

Types

headers()
headers() :: [{String.t, String.t}]
response()
response() :: %{status_code: integer, body: String.t, headers: headers}

Functions

build_query_string(params)
build_query_string([{String.t | atom, any}]) :: String.t
clean_up_map(map)
clean_up_map(map) :: map

BigQuery really doesn’t like if when you try to POST a JSON object that has null values, but doesn’t seem to mind missing fields. So this is just a little helper function to remove any fields with a nil value from a map/struct.

delete(url, headers \\ [], opts \\ [timeout: timeout()])
delete(String.t, [{String.t, String.t}], [{:timeout, integer}]) ::
  {:ok, response} |
  {:error, String.t}
get(url, headers \\ [], opts \\ [timeout: timeout()])
get(String.t, headers, [{:timeout, integer}]) ::
  {:ok, response} |
  {:error, String.t}
post(url, body \\ nil, headers \\ [], opts \\ [timeout: timeout()])
post(String.t, any, [{String.t, String.t}], [{:timeout, integer}]) ::
  {:ok, response} |
  {:error, String.t}
timeout()