PHP wrapper for Yo App API (http://justyo.co)
You can install yoapp-php
by using Composer
"require": {
"chekalskiy/yoapp-php": "~1.0"
}
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.