chekalskiy/yoapp-php

PHP wrapper for Yo app API (justyo.co)

1.0.1 2015-02-21 10:49 UTC

README

PHP wrapper for Yo App API (http://justyo.co)

Yo API documentation

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.