From a5b45edf2f02e5c91daf0ff779bd5e48cf098a15 Mon Sep 17 00:00:00 2001 From: Steve Berdy <86739818+steveberdy@users.noreply.github.com> Date: Fri, 16 Jul 2021 14:06:42 -0400 Subject: [PATCH] Update api.rst (#5877) --- docs/api.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/api.rst b/docs/api.rst index 93cc4f0d..83eb5878 100644 --- a/docs/api.rst +++ b/docs/api.rst @@ -127,7 +127,7 @@ API Changes :: import requests - r = requests.get('https://github.com/timeline.json') + r = requests.get('https://api.github.com/events') r.json() # This *call* raises an exception if JSON decoding fails * The ``Session`` API has changed. Sessions objects no longer take parameters. @@ -156,7 +156,7 @@ API Changes :: # in 0.x, passing prefetch=False would accomplish the same thing - r = requests.get('https://github.com/timeline.json', stream=True) + r = requests.get('https://api.github.com/events', stream=True) for chunk in r.iter_content(8192): ...