We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 62cfdb9 commit b32b9f6Copy full SHA for b32b9f6
1 file changed
python/quickstart_web.py
@@ -91,21 +91,12 @@ def oauth2callback():
91
92
return flask.redirect(flask.url_for('index'))
93
94
-def print_response(response):
95
- if response:
96
- return flask.jsonify(**response)
97
- else:
98
- return ('This request does not return a response. For these samples, ' +
99
- 'this is generally true for requests that delete resources, ' +
100
- 'such as <code>playlists.delete()</code>, but it is also ' +
101
- 'true for some other methods, such as <code>videos.rate()</code>.')
102
-
103
def channels_list_by_username(client, **kwargs):
104
response = client.channels().list(
105
**kwargs
106
).execute()
107
108
- return print_response(response)
+ return flask.jsonify(**response)
109
110
111
if __name__ == '__main__':
0 commit comments