presi/app-center-laravel
Composer 安装命令:
composer require presi/app-center-laravel
包简介
App Center Wrapper Laravel
README 文档
README
Introduction
This is a App Center wrapper library for Laravel. This packages is based on App Center API endpoints located at https://openapi.appcenter.ms, the main intention for this package is for simplified the consume and comunication with tools more used on dev mobile enviroment. You can set a configuration of your product and make calls to methods that envolving parameters and requirements for whole endpoints.
Well, before install this packages, you should make and register an app at https://appcenter.ms/, then you will be create an api token with access like "Full Access" or "Read only" for your apps
Installation
You'll need to require the package with Composer:
composer require presi/app-center-laravel
Then discovery packages are done, from the command line again, run
php artisan vendor:publish --provider="Presi\AppCenter\AppCenterServiceProvider"
to publish the default configuration file.
This will publish a configuration file named appcenter.php which includes your Api token and owner name
Configuration
For complete setup you need to fill in appcenter.php file that is found in your applications config directory.
owner_name is your Username and api_token which is located at settings account.
Usage
Read Analytics Events on App
You can retrive data of events with this code
$events = AppCenter::readEvents({{app-name}},\Carbon\Carbon::now()->subDays(7));
统计信息
- 总下载量: 950
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-03-30