Skip to content
This repository has been archived by the owner on Mar 14, 2019. It is now read-only.

chekalsky/yoapp-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Yo logo Yo API

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.