chekalskiy / yoapp-php
PHP wrapper for Yo app API (justyo.co)
Installs: 27
Dependents: 0
Suggesters: 0
Security: 0
Stars: 9
Watchers: 2
Forks: 2
Open Issues: 0
pkg:composer/chekalskiy/yoapp-php
Requires
- ext-curl: *
This package is auto-updated.
Last update: 2020-01-19 02:06:05 UTC
README
PHP wrapper for Yo App API (http://justyo.co)
Installation
You can install yoapp-php by using Composer
"require": {
"chekalskiy/yoapp-php": "~1.0"
}
Example
First of all you need to register your own personal Yo account using your mobile phone. Then create new api account with any other username.
Then replace {API_TOKEN} with your own token.
try { $yo = new \che\Yo({API_TOKEN}); // send a yo to all subscribers $yo->sendAll(array('link' => 'http://example.com')); } catch (\che\YoException $e) { echo "Error #" . $e->getCode() . ": " . $e->getMessage(); }
You can find more examples in examples directory.