Skip to content

Latest commit

History

10 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

yo-php

Send Yos from your PHP app with 2 lines of code.

New in Version 0.3

Send your location!

This only works when sending a Yo to an individual user, not to all your subscribers at once. Use method "userWithLocation".

New in Version 0.2

Send links with your Yos.

When you send a link along with your Yo and the user taps on it, it'll open a browser to your link instead of opening the Yo app.

Examples

<?php// Add filerequire('yo.php');
// Get an API Key at dev.justyo.co$apiKey = 'YOUR_API_KEY';
// Instanciate$yo = newYo($apiKey);
// Send a Yo to all your subscribers$yo->all();
// Send a Yo with a link to all your subscribers$link = 'http://www.mysuperawesomewebpage.com/';
$yo->all($link);
// Send a Yo to one user$yo->user('USERNAME');
// Send a Yo with a link to one user$link = 'http://www.mysuperawesomewebpage.com/user/USERNAME/';
$yo->user('USERNAME', $link);
// Send a Yo with a location (format is a string like LAT;LNG)$location = '-34.6158527;-58.4332985';
$yo->userWithLocation('USERNAME', $location);
// Get number of subscribers$count = $yo->subscribers(); // returns an int or false?>

About

Send Yos from your PHP app with 2 lines of code.

Resources

Stars

10 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages