Notice: Undefined index: code in /home/rr810359/kanagawa-ku.com/public_html/wp-content/themes/kanak20200227/page-oauth-google-participation.php on line 12

Warning: file_get_contents(https://accounts.google.com/o/oauth2/token): failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request in /home/rr810359/kanagawa-ku.com/public_html/wp-content/themes/kanak20200227/page-oauth-google-participation.php on line 29

Warning: file_get_contents(https://www.googleapis.com/oauth2/v1/userinfo?): failed to open stream: HTTP request failed! HTTP/1.0 401 Unauthorized in /home/rr810359/kanagawa-ku.com/public_html/wp-content/themes/kanak20200227/page-oauth-google-participation.php on line 43
GoogleのOAuth2.0を使ってプロフィールを取得