Yo-Perl Readme

#yo - #perl - #programming - #api

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.

From JR's : articles
127 words - 786 chars
created on
updated on - #
source - versions

Related articles
Short list of REST API info - Jan 13, 2017
Perl programming tools to test - Nov 14, 2014
Web-based publishing platforms that I've created - Mar 03, 2015
Quotes in Perl - Oct 12, 2013
Reuters' former Next Web system - Sep 19, 2013
more >>



A     A     A     A     A

© 2013-2017 JotHut - Online notebook

current date: Jan 11, 2025 - 11:10 p.m. EST