代码拉取完成,页面将自动刷新
PHP SDK for Mobile Tencent Analytics HTML5
composer require freyo/mta-h5
<?php
use Freyo\MtaH5\Application;
include __DIR__ . '/vendor/autoload.php';
$config = [
'app_id' => 'your-app-id',
'secret_key' => 'your-secret-key',
];
$app = new Application($config);
$app->trend->query($startDate, $endDate);
$app->trend->realtime();
$app->trend->heartbeat();
$app->user->realtime($page = 1);
$app->user->compare($startDate, $endDate);
$app->user->portrait($startDate, $endDate);
$app->device->query($startDate, $endDate, $typeId, $typeContents = []);
$app->device->operator($startDate, $endDate, $typeIds);
$app->device->area($startDate, $endDate, $typeIds);
$app->device->province($startDate, $endDate, $typeIds);
$app->page->realtime();
$app->page->offline($startDate, $endDate, $page = 1);
$app->page->query($startDate, $endDate, $urls);
$app->page->depth($startDate, $endDate);
$app->page->speed($startDate, $endDate, $typeContents, $type);
$app->custom->query($startDate, $endDate, $custom);
$app->source->query($startDate, $endDate, $urls);
$app->source->land($startDate, $endDate, $urls);
$app->source->leave($startDate, $endDate, $urls);
$app->adtag->query($startDate, $endDate, $adTags);
Laravel 5.5+ uses Package Auto-Discovery, so doesn't require you to manually add the ServiceProvider.
$app = app('mta-h5');
The MIT License (MIT). Please see License File for more information.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
1. 开源生态
2. 协作、人、软件
3. 评估模型