-
-
15 Jun 2013 10:27:16 UTC
- Distribution: AnyEvent-WebService-ImKayac
- Module version: 0.01
- Source (raw)
- Browse (raw)
- Changes
- Homepage
- How to Contribute
- Repository
- Issues
- Testers (371 / 8 / 0)
- Kwalitee
Bus factor: 0- 57.00% Coverage
- License: perl_5
- Activity
24 month- Tools
- Download (11.19KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
NAME
AnyEvent::WebService::ImKayac - connection wrapper for im.kayac.com
SYNOPSIS
use AnyEvent::WebService::ImKayac; my $im = AnyEvent::WebService::ImKayac->new( type => 'password', user => '...', password => '...' ); $im->send( message => 'Hello! test send!!', cb => sub { my ($hdr, $json, $reason) = @_; if ( $json ) { if ( $json->{result} eq "posted" ) { } else { warn $json->{error}; } } else { warn $reason; } });
METHODS
new
You must pass
type
anduser
parameter to new method. And type should be secret, password or none.- type is secret
-
You should pass secret_key parameter.
- type is password
-
You should pass password parameter.
- type is none
-
You dond need to pass other parameter.
$imkayac->send( message => '...', cb => sub {} );
Send with message and cb parameters. cb is called when message have been sent.
AUTHORS
taiyoh <sun.basix@gmail.com>
soh335 <sugarbabe335@gmail.com>
LICENSE
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Module Install Instructions
To install AnyEvent::WebService::ImKayac, copy and paste the appropriate command in to your terminal.
cpanm AnyEvent::WebService::ImKayac
perl -MCPAN -e shell install AnyEvent::WebService::ImKayac
For more information on module installation, please visit the detailed CPAN module installation guide.