teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

1

APIキー書きっぱなしでした。

2019/07/04 02:47

投稿

narusei
narusei

スコア12

title CHANGED
File without changes
body CHANGED
@@ -50,7 +50,7 @@
50
50
  f = "./test_client.json"
51
51
  scope = "https://www.googleapis.com/auth/youtube.force-ssl"
52
52
  flow = client.flow_from_clientsecrets(f, scope)
53
- flow.user_agent = "AIzaSyAs6x1K73fTQXP3iWUzf-clVro0yb6TmRc"
53
+ flow.user_agent = "APIキー"
54
54
  credentials = tools.run_flow(flow, Storage(credentials_path))
55
55
 
56
56
  http = credentials.authorize(httplib2.Http())