質問編集履歴
2
追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -273,3 +273,13 @@
|
|
273
273
|
|
274
274
|
|
275
275
|
```
|
276
|
+
|
277
|
+
|
278
|
+
|
279
|
+
|
280
|
+
|
281
|
+
また、今後、他のユーザーがauth認証をする際にはこれらのスクリプトでできるのでしょうか?
|
282
|
+
|
283
|
+
|
284
|
+
|
285
|
+
現時点であまりイメージが湧いていなく、大丈夫か心配です。
|
1
追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -204,6 +204,8 @@
|
|
204
204
|
|
205
205
|
|
206
206
|
|
207
|
+
こちらだとブラウザで許可リクエストなどが出てきて、.google-api.yamlが生成されるのですが、中身が空っぽのため、その後の認証(コメントアウトしてる部分)に失敗します・・・。
|
208
|
+
|
207
209
|
|
208
210
|
|
209
211
|
```
|
@@ -244,6 +246,30 @@
|
|
244
246
|
|
245
247
|
|
246
248
|
|
247
|
-
|
249
|
+
#File.open("./.google-api.yaml", "w"){|f|
|
250
|
+
|
248
|
-
|
251
|
+
# x = {
|
252
|
+
|
253
|
+
# "mechanism" => "oauth_2",
|
254
|
+
|
255
|
+
# "scope" => "https://www.googleapis.com/auth/calendar",
|
256
|
+
|
257
|
+
# "client_id" => client_secrets.client_id,
|
258
|
+
|
259
|
+
# "client_secret" => client_secrets.client_secret,
|
260
|
+
|
261
|
+
# "access_token" => client.authorization.access_token,
|
262
|
+
|
263
|
+
# "refresh_token" => client.authorization.refresh_token
|
264
|
+
|
265
|
+
# }
|
266
|
+
|
267
|
+
# f.puts(x.to_yaml)
|
268
|
+
|
269
|
+
#}
|
270
|
+
|
271
|
+
|
272
|
+
|
273
|
+
|
274
|
+
|
249
|
-
```
|
275
|
+
```
|