Loading

适用于 Laravel 的腾讯云API SDK

laravel-tencent-cloud

This is a tencent cloud expansion for the laravel

环境需求

  • PHP >= 7.0

Installation

composer require larva/laravel-tencent-cloud -vv

for Laravel

This service provider must be registered.

// config/app.php

'providers' => [
    '...',
    Larva\TencentCloud\TencentCloudServiceProvider::class,
];

Use

try {
	$cdn = TencentCloud::get('cdn');
	$cdn->RefreshObjectCaches([
		'ObjectPath' => [
			'http://www.baidu.com',
		],
		'ObjectType' => 'File'
	]);
} catch (\Exception $e) {
	print_r($e->getMessage());
}
posted @ 2020-04-02 08:45  方圆百里找对手  阅读(618)  评论(0编辑  收藏  举报