Cocoa::Skype - Perl interface to Skype.framework
use Cocoa::Skype; use Cocoa::EventLoop; my $skype = Cocoa::Skype->new( name => 'my test application', on_attach_response => sub { my ($code) = @_; if ($code == 1) { # on success $self->send('PROTOCOL 8'); } }, on_notification_received => sub { my ($notification) = @_; ... }, ); $skype->connect; Cocoa::EventLoop->run;
Cocoa::Skype provides Perl interface to Skype.framework.
new
Name of your application. This name will be shown to the user, when your application uses Skype.
This callback is called after Skype API client application has called connect. $code is 0 on failure and 1 on success.
This is callback Skype uses to send information to your application. $notification is Skype API string.
This callback is called after Skype has been launched.
This callback is called after Skype has quit.
connect
$skype->connect;
Try to connect your application to Skype.
disconnect
$skype->disconnect;
Disconnects your application from Skype.
send
$skype->send($msg);
Use this method to control Skype or request information. $msg is a Skype API string.
isRunning
$skype->isRunning;
Return 1, when Skype is running and 0 otherwise.
isAvailable
$skype->isAvailable;
Return 1, when Skype is available and 0 otherwise.
Daisuke Murase <typester@cpan.org>
Takumi Akiyama <t.akiym at gmail.com>
Public API Reference
Skype::Any
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Cocoa::Skype, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Cocoa::Skype
CPAN shell
perl -MCPAN -e shell install Cocoa::Skype
For more information on module installation, please visit the detailed CPAN module installation guide.