Skip to content

jrsawvel/Yo-Perl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Yo-Perl

Perl module that provides access to the Yo API.

External links:

Example Usage

Create object by passing the Yo API token for the account sending the Yo.
my $yo = Yo->new("your-yo-api-token");

Optionally, set link to point to a URL that gets sent with the Yo. The user receiving the Yo can swipe the Yo to the right on the phone and be shown the web page corresponding to the link.
$yo->set_link("http://optionalurltosomething");

Send Yo to all subscribers.
$yo->all;

Send a Yo to one subscriber.
$yo->user('USERNAME');

Get subscriber count.
my $json = $yo->subscribers;

The returned format from Yo equals {"result": 23} where 23 represents the number of subscribers to the Yo account corresponding to the Yo API token given above.

About

Wrapper for the Yo API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages