Created
April 3, 2018 00:45
-
-
Save noriyukitakei/73df9e9c01435f4f5f05dd69aebcf3a1 to your computer and use it in GitHub Desktop.
アクセストークン発行
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// データベースの接続情報などを定義している共通処理をrequireします。 | |
require_once __DIR__.'/server.php'; | |
// アクセストークンを取得するためのリクエストを検証し、正しければ、アクセストークンを発行します。 | |
$server->handleTokenRequest(OAuth2\Request::createFromGlobals())->send(); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment