WWW::SpinnerChief - SpinnerChief API
version 0.01
use WWW::SpinnerChief; my $sc = WWW::SpinnerChief->new( apikey => 'blabla', username => 'fayland', password => 'password', ); my $x = $sc->quota_left() or die $sc->errstr; print "quota_left: $x\n"; my $spintax = $sc->text_with_spintax('Hello, what is your name? - ♠ ♣ ♦ ‾ ←') or die $sc->errstr; print "spintax: $spintax\n"; my $unique_variation = $sc->unique_variation('This is a great software') or die $sc->errstr; print "unique_variation: $unique_variation\n";
http://developer.spinnerchief.com/API_Document.aspx
use WWW::SpinnerChief; my $sc = WWW::SpinnerChief->new( apikey => 'blabla', username => 'fayland', password => 'password', );
apikey
username
password
required
# querytimes=1 my $x = $sc->quota_used() or die $sc->errstr; print "quota_used: $x\n"; # querytimes=2 my $x = $sc->quota_left() or die $sc->errstr; print "quota_left: $x\n";
spintype = 0
my $spintax = $sc->text_with_spintax('Hello, what is your name? - ♠ ♣ ♦ ‾ ←') or die $sc->errstr; print "spintax: $spintax\n";
spintype = 1
my $unique_variation = $sc->unique_variation('This is a great software') or die $sc->errstr; print "unique_variation: $unique_variation\n"; my $new_text = $sc->unique_variation($text, { tagprotect => '[]', spinhtml => 1, }) or die $sc->errstr;
Fayland Lam <fayland@gmail.com>
This software is copyright (c) 2013 by Fayland Lam.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
1 POD Error
The following errors were encountered while parsing the POD:
Non-ASCII character seen before =encoding in '♠'. Assuming UTF-8
To install WWW::SpinnerChief, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WWW::SpinnerChief
CPAN shell
perl -MCPAN -e shell install WWW::SpinnerChief
For more information on module installation, please visit the detailed CPAN module installation guide.