Google Calendar API を使用するアプリケーションを開発しました。
開発環境からテスト環境に移動したとき、Google API コンソールで新しいエントリを作成し、その情報を config.php にコピーしました。
// The application_name is included in the User-Agent HTTP header.
'application_name' => 'Google Calendar PHP Starter Application',
// OAuth2 Settings, you can get these keys at https://code.google.com/apis/console
'oauth2_client_id' => '517034425134-503uog3i6pfXk15qq6mjsfbi48sabd50o.apps.googleusercontent.com',
'oauth2_client_secret' => '4p4go-aRXVcGx4YxcgC2wgvyV',
'oauth2_redirect_uri' => 'http://mydomain/admin/calendar_events.php',
// The developer key, you get this at https://code.google.com/apis/console
'developer_key' => 'AIzaSyCm9tj17rd-OepTl5XFxMwI9SQMH2BoQkKI',
しかし、私はアクセスできません。私は得ています:
Uncaught exception 'Google_ServiceException' with message 'Error calling GET https://www.googleapis.com/calendar/v3/users/me/calendarList?key=AIzaSyCm9tj17rd-OepTl5XFxMwI9SQMH2BoQkKI: (403) Access Not Configured'
これがなぜなのかわかりません。私はコードが優れていることを知っています...私は彼らのAPIコンソールと私のconfig.phpの間で何かを同期する必要があるだけですよね?
何か案は?