Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/richardruiter/yophp
A simple PHP wrapper for Yo
https://github.com/richardruiter/yophp
Last synced: 25 days ago
JSON representation
A simple PHP wrapper for Yo
- Host: GitHub
- URL: https://github.com/richardruiter/yophp
- Owner: richardruiter
- License: mit
- Created: 2014-07-23T08:48:26.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-07-22T21:26:51.000Z (over 10 years ago)
- Last Synced: 2024-10-29T22:45:16.688Z (2 months ago)
- Homepage: http://www.justyo.co
- Size: 60.5 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
YoPHP
===========A simple PHP wrapper for YO (www.justyo.co)
## Usage
1. Get an API token on [yoapi.justyo.co](http://yoapi.justyo.co/)
2. Checkout this repo or upload Yo.php to your sever
3. Copy and paste the following code and replace the YO_TOKEN```php
include_once 'Yo.php';
define('YO_TOKEN','xxxx-yyyy-zzzz');try {
$yo = new Yo(YO_TOKEN);
$yo->all();
} catch (Exception $ex) {
print $ex->getMessage();
}
```## Accepted methods
Send Yo to all subscribers:
```php
$yo = new Yo(YO_TOKEN);
$yo->all();
```Send Yo to an individual username:
```php
$yo = new Yo(YO_TOKEN);
$yo->user('BASVD');
```Count total subscribers:
```php
$yo = new Yo(YO_TOKEN);
$count = $yo->count();
print_r($count);
```