From 597d82c5db53b8b7a2de5b950af5bd606e1474b7 Mon Sep 17 00:00:00 2001 From: Marty Hummel <71525323+marty-optum@users.noreply.github.com> Date: Wed, 16 Feb 2022 15:58:07 -0500 Subject: [PATCH] Update README.md (#360) Add line to capture response_body --- 3-transport/lessons/4-geofences/README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/3-transport/lessons/4-geofences/README.md b/3-transport/lessons/4-geofences/README.md index 2fdf1d2..0891b67 100644 --- a/3-transport/lessons/4-geofences/README.md +++ b/3-transport/lessons/4-geofences/README.md @@ -416,10 +416,11 @@ Earlier in this lesson you used curl to query a geofence to see if a point was l The items in the `params` dictionary will match the key value pairs you used when calling the web API via curl. -1. Add the following line of code to call the web API: +1. Add the following lines of code to call the web API: ```python response = requests.get(url, params=params) + response_body = json.loads(response.text) ``` This calls the URL with the parameters, and gets back a response object.