chekalskiy/yoapp-php

This package is abandoned and no longer maintained. No replacement package was suggested.

PHP wrapper for Yo app API (justyo.co)

1.0.1 2015-02-21 10:49 UTC

This package is auto-updated.

Last update: 2020-01-19 02:06:05 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.