Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/link0/phpebble
PHP library providing an interface to Pebble Smartwatch API's
https://github.com/link0/phpebble
Last synced: about 2 months ago
JSON representation
PHP library providing an interface to Pebble Smartwatch API's
- Host: GitHub
- URL: https://github.com/link0/phpebble
- Owner: link0
- License: mit
- Created: 2015-09-12T13:12:31.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-09-12T13:46:33.000Z (over 9 years ago)
- Last Synced: 2024-11-20T20:49:07.535Z (about 2 months ago)
- Language: PHP
- Size: 173 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Phpebble
========
[![Latest Stable Version](https://poser.pugx.org/link0/phpebble/v/stable.svg)](https://packagist.org/packages/link0/phpebble)
[![Total Downloads](https://poser.pugx.org/link0/phpebble/downloads.svg)](https://packagist.org/packages/link0/phpebble)
[![License](https://poser.pugx.org/link0/phpebble/license.svg)](https://packagist.org/packages/link0/phpebble)
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/link0/phpebble/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/link0/phpebble/?branch=master)
[![Code Coverage](https://scrutinizer-ci.com/g/link0/phpebble/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/link0/phpebble/?branch=master)
[![Build Status](https://scrutinizer-ci.com/g/link0/phpebble/badges/build.png?b=master)](https://scrutinizer-ci.com/g/link0/phpebble/build-status/master)This package encapsulates external services provided by Pebble to interact with the Pebble Smartwatch
License: [MIT](LICENSE)
Usage
=====You can install using composer
`composer require link0/phpebble`
Quickstart
==========
```php
push($pin);
printf("%s\n", "Succesfully processed Pin " . $pin->id());
}
catch(InvalidPinObject $ipo) {
printf("%s\n", $ipo->getMessage());
print_r($ipo->pin());
}
catch(InvalidTimelineToken $itt) {
printf("%s\n", $itt->getMessage());
print_r($itt->timelineToken());
}
catch(RateLimitExceeded $rle) {
printf("%s\n", $rle->getMessage());
}
catch(ServiceUnavailable $su) {
printf("%s\n", $su->getMessage());
}```