12,964
回編集
(ページの作成:「== 概要 == * 大量のデータを扱う場合 *: gspread-pandas *: <br> * 細かい書式設定が必要な場合 *: gspread *: Google Sheets API <br><br> == サービスアカウントキー == サービスアカウントキーは、Google Cloud Platformで発行されるサービスアカウントの認証情報が含まれるJSONファイルである。<br> <br> 以下に示す手順で取得することができる。<br> <br> # Google Cloud Platform (GCP)…」) |
|||
71行目: | 71行目: | ||
scope = ['https://spreadsheets.google.com/feeds', | scope = ['https://spreadsheets.google.com/feeds', | ||
'https://www.googleapis.com/auth/drive'] | 'https://www.googleapis.com/auth/drive'] | ||
credentials = ServiceAccountCredentials.from_json_keyfile_name('< | credentials = ServiceAccountCredentials.from_json_keyfile_name('<サービスアカウントキー>', scope) | ||
gc = gspread.authorize(credentials) | gc = gspread.authorize(credentials) | ||