Skip to content

Commit

Permalink
Fixup the remaining references to timeline.json.
Browse files Browse the repository at this point in the history
  • Loading branch information
Lukasa committed Sep 20, 2014
1 parent 082c8d0 commit 466a70f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/user/quickstart.rst
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ We can read the content of the server's response. Consider the GitHub timeline
again::

>>> import requests
>>> r = requests.get('https://github.com/timeline.json')
>>> r = requests.get('https://api.github.com/events')
>>> r.text
u'[{"repository":{"open_issues":0,"url":"https://github.com/...

Expand Down Expand Up @@ -134,7 +134,7 @@ JSON Response Content
There's also a builtin JSON decoder, in case you're dealing with JSON data::

>>> import requests
>>> r = requests.get('https://github.com/timeline.json')
>>> r = requests.get('https://api.github.com/events')
>>> r.json()
[{u'repository': {u'open_issues': 0, u'url': 'https://github.com/...

Expand All @@ -150,7 +150,7 @@ In the rare case that you'd like to get the raw socket response from the
server, you can access ``r.raw``. If you want to do this, make sure you set
``stream=True`` in your initial request. Once you do, you can do this::

>>> r = requests.get('https://github.com/timeline.json', stream=True)
>>> r = requests.get('https://api.github.com/events', stream=True)
>>> r.raw
<requests.packages.urllib3.response.HTTPResponse object at 0x101194810>
>>> r.raw.read(10)
Expand Down

0 comments on commit 466a70f

Please sign in to comment.