Skip to content

About use sheets API

nikomaru edited this page Mar 26, 2022 · 1 revision

pluginフォルダの中のRaceAssistフォルダにcredentials.jsonを入れます 最初の賭けが行われるとコンソールにOAuthの認証画面が開かれるのでスプレッドシートの所有者が認証してください

credentials.jsonの設定

基本はAPIのダウンロードしたものにclient_secretを追加し、redirect_urlsのlocalhostを自分のドメイン(IP)に置き換える

{
    "installed": {
        "client_id": "******.apps.googleusercontent.com",
        "project_id": "******",
        "auth_uri": "https://accounts.google.com/o/oauth2/auth",
        "token_uri": "https://oauth2.googleapis.com/token",
        "auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",
        "client_secret": "******",
        "redirect_uris": [
            "urn:ietf:wg:oauth:2.0:oob",
            "http://localhost"
        ]
    }
}
Clone this wiki locally