wunderground v0.0.6 Wunderground.API.Response

Ensures correct JSON encoding.

Link to this section Summary

Types

t()

The Wunderground.API.Response struct

Link to this section Types

Link to this type error()
error() :: %{description: String.t, type: String.t}
Link to this type t()
t() :: %Wunderground.API.Response{error: Wunderground.API.Error.t, features: map, termsofService: String.t, version: String.t}

The Wunderground.API.Response struct.

Example

%Wunderground.API.Response{
  "features" => %{"forecast" => 1},
  "termsofService" => "http://www.wunderground.com/weather/api/d/terms.html",
  "version" => "0.1",
  "error" => %Wunderground.API.Error{
    "description" => "No cities match your search query",
    "type" => "querynotfound"
  }
}