https://github.com/link0/phpebble
PHP library providing an interface to Pebble Smartwatch API's
https://github.com/link0/phpebble
Last synced: 3 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 (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-09-12T13:46:33.000Z (almost 10 years ago)
- Last Synced: 2025-02-09T07:01:45.448Z (5 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
========
[](https://packagist.org/packages/link0/phpebble)
[](https://packagist.org/packages/link0/phpebble)
[](https://packagist.org/packages/link0/phpebble)
[](https://scrutinizer-ci.com/g/link0/phpebble/?branch=master)
[](https://scrutinizer-ci.com/g/link0/phpebble/?branch=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());
}```