Skip to content

Instantly share code, notes, and snippets.

@ryansobol
Last active July 5, 2017 04:27
Show Gist options
  • Select an option

  • Save ryansobol/22c1198849818eb1ec2a8b39ad82c1d5 to your computer and use it in GitHub Desktop.

Select an option

Save ryansobol/22c1198849818eb1ec2a8b39ad82c1d5 to your computer and use it in GitHub Desktop.

Revisions

  1. ryansobol revised this gist Jul 5, 2017. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion response.json
    Original file line number Diff line number Diff line change
    @@ -43,7 +43,7 @@ X-Cache-Key: /data/2.5/weather?APPID=cc4654c8e15f6d08b13954b915a0d0b1&q=seattle
    "description": "light rain",
    "icon": "01n",
    "id": 800,
    "main": "Clear"
    "main": "Cloudy with light rain"
    }
    ],
    "wind": {
  2. ryansobol revised this gist Jul 5, 2017. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion response.json
    Original file line number Diff line number Diff line change
    @@ -40,7 +40,7 @@ X-Cache-Key: /data/2.5/weather?APPID=cc4654c8e15f6d08b13954b915a0d0b1&q=seattle
    "visibility": 16093,
    "weather": [
    {
    "description": "clear sky",
    "description": "light rain",
    "icon": "01n",
    "id": 800,
    "main": "Clear"
  3. ryansobol created this gist Jul 5, 2017.
    53 changes: 53 additions & 0 deletions response.json
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,53 @@
    HTTP/1.1 200 OK
    Access-Control-Allow-Credentials: true
    Access-Control-Allow-Methods: GET, POST
    Access-Control-Allow-Origin: *
    Connection: keep-alive
    Content-Length: 445
    Content-Type: application/json; charset=utf-8
    Date: Wed, 05 Jul 2017 04:22:10 GMT
    Server: openresty
    X-Cache-Key: /data/2.5/weather?APPID=cc4654c8e15f6d08b13954b915a0d0b1&q=seattle

    {
    "base": "stations",
    "clouds": {
    "all": 1
    },
    "cod": 200,
    "coord": {
    "lat": 47.61,
    "lon": -122.33
    },
    "dt": 1499227080,
    "id": 5809844,
    "main": {
    "humidity": 37,
    "pressure": 1015,
    "temp": 293.03,
    "temp_max": 296.15,
    "temp_min": 289.15
    },
    "name": "Seattle",
    "sys": {
    "country": "US",
    "id": 2949,
    "message": 0.005,
    "sunrise": 1499257124,
    "sunset": 1499314138,
    "type": 1
    },
    "visibility": 16093,
    "weather": [
    {
    "description": "clear sky",
    "icon": "01n",
    "id": 800,
    "main": "Clear"
    }
    ],
    "wind": {
    "deg": 300,
    "speed": 2.6
    }
    }