File tree Expand file tree Collapse file tree 1 file changed +0
-3
lines changed Expand file tree Collapse file tree 1 file changed +0
-3
lines changed Original file line number Diff line number Diff line change 21
21
22
22
def get_authenticated_service ():
23
23
flow = InstalledAppFlow .from_client_secrets_file (CLIENT_SECRETS_FILE , SCOPES )
24
-
25
24
credentials = flow .run_console ()
26
-
27
25
return build (API_SERVICE_NAME , API_VERSION , credentials = credentials )
28
26
29
27
def channels_list_by_username (service , ** kwargs ):
@@ -40,7 +38,6 @@ def channels_list_by_username(service, **kwargs):
40
38
# When running locally, disable OAuthlib's HTTPs verification. When
41
39
# running in production *do not* leave this option enabled.
42
40
os .environ ['OAUTHLIB_INSECURE_TRANSPORT' ] = '1'
43
- #app.run('localhost', 8090, debug=True)
44
41
service = get_authenticated_service ()
45
42
channels_list_by_username (service ,
46
43
part = 'snippet,contentDetails,statistics' ,
You can’t perform that action at this time.
0 commit comments