|
@@ -40,10 +40,11 @@ class Sample
|
|
|
return json_decode($access_token_data, true);
|
|
|
}
|
|
|
|
|
|
+ $config = config('app.dingtalk');
|
|
|
$client = self::createClient();
|
|
|
$getAccessTokenRequest = new GetAccessTokenRequest([
|
|
|
- "appKey" => "dingilnkljzq3a4chjrw",
|
|
|
- "appSecret" => "Dt-nHAw4G-dniS7P9VmbnQRIKHQfGIQNIVHVNVHOZMtLPcsIv4KJYk_AjBCRsaH4"
|
|
|
+ "appKey" => $config['appKey'],
|
|
|
+ "appSecret" => $config['appSecret']
|
|
|
]);
|
|
|
try {
|
|
|
$res = $client->getAccessToken($getAccessTokenRequest);
|