filippo-toso/timeseries-insights
最新稳定版本:v1.0.1
Composer 安装命令:
composer require filippo-toso/timeseries-insights
包简介
A simple client library for Google Timeseries Insights Api
README 文档
README
A simple client library for Google Timeseries Insights Api
Requirements
- PHP 7.0+
Installing
Use Composer to install it:
composer require filippo-toso/timeseries-insights
Using It
use Google\Cloud\Timeseriesinsights\V1\TimeseriesInsightsControllerClient;
use Google\Cloud\Timeseriesinsights\V1\DataSet;
use Google\Cloud\Timeseriesinsights\V1\DataSource;
// The project ID from the credentials file downloaded from Google Console
define('PROJECT_ID', 'project-id');
$client = new TimeseriesInsightsControllerClient([
'credentials' => __DIR__ . '/credentials.json', // Your JSON credentials file downloaded from Google Console
]);
$datasets = $client->listDataSets('projects/' . PROJECT_ID);
print("List datasets: \r\n");
foreach ($datasets as $dataset) {
print($dataset->serializeToJsonString() . "\r\n");
}
统计信息
- 总下载量: 5
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-11-03