Skip to content
This repository has been archived by the owner on May 11, 2021. It is now read-only.

Google APIを叩くためのOAuth2 トークンをスポットで取得するためのツール

License

Notifications You must be signed in to change notification settings

pinkumohikan/google-oauth2-token-kurekure

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Google OAuth2 Token Kure-kure

Google APIを叩くためのOAuth2 トークンがどうしても欲しいかたへ

ざっくり使い方

  1. Google API Console で使いたいAPIを有効にする & クライアントIDを発行
  2. このリポジトリをclone
  3. make .env したあと、1で発行したクライアントID + クライアントSecretを .env ファイルに書く
  4. make setup して依存モジュールをインストール
  5. 欲しい権限を bootstrap.php に書く
  6. make server してサーバを起動
  7. http://localhost:8000/ へアクセスして認可手続き
  8. コールバックで帰ってきたらaccess_tokenが表示される

動作環境

  • PHP 5.6以上

ライセンス

MIT

参考になりそうな資料

About

Google APIを叩くためのOAuth2 トークンをスポットで取得するためのツール

Topics

Resources

License

Stars

Watchers

Forks