15 lines
562 B
PHP
Executable File
15 lines
562 B
PHP
Executable File
<?php
|
|
define("CALLBACK_URL", "https://chiro-canto.ortion.xyz/api/v1/oauth2/oauth2client.php");
|
|
define("AUTH_URL", "https://chiro-canto.ortion.xyz/api/v1/oauth2/authorize");
|
|
define("ACCESS_TOKEN_URL", "https://chiro-canto.ortion.xyz/api/v1/oauth2/token");
|
|
define("CLIENT_ID", "wsdfdcjdfvsfdvqwdi86Ubdf0");
|
|
define("CLIENT_SECRET", "g2OKQ9isj2pcaextQdjx5xW3KoAa");
|
|
define("SCOPE", ""); // optional
|
|
|
|
$url = AUTH_URL."?"
|
|
."response_type=code"
|
|
."&client_id".urlencode(CLIENT_ID)
|
|
."&scope=".urlencode(SCOPE)
|
|
."&redirect_uri".urlencode(CALLBACK_URL)
|
|
;
|
|
?>
|