var clientId = '準備したClientID'; var apiKey = '準備したAPI key'; // とりあえず、怖いので、カレンダーを読むだけの設定 // https://www.googleapis.com/auth/plus.meは不要かも。。 var scopes = ['https://www.googleapis.com/auth/plus.me', 'https://www.googleapis.com/auth/calendar.readonly']; function handleClientLoad() { // 予めAPI Consoleで設定したAPIキーを設定 gapi.client.setApiKey(apiKey); // すでに認証済みかの確認をする。 window.setTimeout(checkAuth,1); } function
