dav-m85/pebble-api-php
最新稳定版本:0.0.1
Composer 安装命令:
composer require dav-m85/pebble-api-php
包简介
README 文档
README
Library to interact with Pebble Timeline API.
Why should I use it ?
Because you love when ...
- It's tested code
- It can be installed with composer
- It follows semver
- It's already used in production
Installation
With composer installed
php composer.phar require dav-m85/pebble-api-php:dev-master
Usage
// Define a pin with an Array $pin = new PebbleApi\Pin("reservation-1395203", new \DateTime("2014-03-07T09:01:10.229Z"), array( "layout" => array( ... ) )); // Or using object oriented approach (still work in progress) $layout = new PebbleApi\Layout\GenericLayout(); $layout->setForegroundColor(PebbleApi\LayoutInterface::COLOR_BLUE); $pin = new PebbleApi\Pin("reservation-1395203", new \DateTime("2014-03-07T09:01:10.229Z"), $layout); $pin->setDuration(120); // Then spawn a client $client = new PebbleApi\Client(); // Create (or update) a pin $user = new PebbleApi\User($userToken); $client->put($user, $pin); // Delete a pin $client->delete($user, $pin); // Create a pin for all users (shared pin) $sharedTopic = new PebbleApi\SharedTopic($apiToken, array('baseball', 'giants')); $client->put($sharedTopic, $pin);
统计信息
- 总下载量: 26
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 8
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-03-21