添加网站文件
This commit is contained in:
14
vendor/yly-openapi/yly-openapi-sdk/Demo/init.php
vendored
Normal file
14
vendor/yly-openapi/yly-openapi-sdk/Demo/init.php
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
|
||||
include dirname(__DIR__) . '/Lib/Autoloader.php';
|
||||
use App\Config\YlyConfig;
|
||||
|
||||
$grantType = 'client_credentials'; //'client_credentials' 自有型应用; 'authorization_code' 开放型应用
|
||||
define('GRANTTYPE', $grantType);
|
||||
|
||||
|
||||
$clientId = ''; //应用id
|
||||
$clientSecret = ''; //应用密钥
|
||||
|
||||
|
||||
$config = new YlyConfig($clientId, $clientSecret);
|
||||
Reference in New Issue
Block a user