We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dbc0988 commit 78473e9Copy full SHA for 78473e9
PageSpeedInsights/main.py
@@ -1,11 +1,11 @@
1
#!/usr/local/bin/python3
2
# -*- coding: utf-8 -*-
3
'''PageSpeed Insights + Google Cloud Functions'''
4
-
+import os
5
from googleapiclient.discovery import build
6
7
# Access Token, generated from GCP Console Credentials page.
8
-API_KEY = ''
+API_KEY = os.getenv('GCP_API_KEY')
9
10
# For local development, setup http proxy as needed.
11
HTTP = None
@@ -41,7 +41,4 @@ def run(request):
41
proxy_info = httplib2.ProxyInfo(httplib2.socks.PROXY_TYPE_SOCKS5, '127.0.0.1', 1086)
42
)
43
44
- import os
45
- API_KEY = os.getenv('GCP_API_KEY')
46
47
run(_request)
0 commit comments