VKontakte::API - Module for login into vkontakte.ru and sending requests
Version 0.04
First of all register you application at http://vkontakte.ru/apps.php?act=add get api_id and secret_key to use it like this: #1. use VKontakte::API; my $vk = VKontakte::API->new('api_id', 'secret_key'); my $data=$vk->sendRequest('getProfiles', {'domains'=>'deevaas'}); #2. or use VKontakte::API; $vk = VKontakte::API->new( $api_id, $cgi_query->param('session[secret]'), $cgi_query->param('session[mid]'), $cgi_query->param('session[sid]') ); my $data=$vk->sendRequest('getProfiles', {'domains'=>'deevaas'}); #3. or new one, use OAuth 2.0 use VKontakte::API::OAuth; $vk = VKontakte::API::OAuth->new( $api_id, $secret ); my $data=$vk->sendRequest('getProfiles', {'domains'=>'deevaas'});
Create new object. Two parameters of registered application:
Send requests described at http://vkontakte.ru/developers.php?o=-1&p=%D0%9E%D0%BF%D0%B8%D1%81%D0%B0%D0%BD%D0%B8%D0%B5+%D0%BC%D0%B5%D1%82%D0%BE%D0%B4%D0%BE%D0%B2+API
$resp = $auth->sendRequest('getProfiles', {'uids'=>'123123'});
Name of methods listed at http://vkontakte.ru/developers.php?o=-1&p=%D0%9E%D0%BF%D0%B8%D1%81%D0%B0%D0%BD%D0%B8%D0%B5+%D0%BC%D0%B5%D1%82%D0%BE%D0%B4%D0%BE%D0%B2+API
Parameters for method
prepares parameters for request
encodes data for url
Anastasiya Deeva, <nastya at creograf.ru>
<nastya at creograf.ru>
Please report any bugs or feature requests to bug-vkontakte-api at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=VKontakte-API. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-vkontakte-api at rt.cpan.org
You can find documentation for this module with the perldoc command.
perldoc VKontakte::API
You can also look for information at:
RT: CPAN's request tracker
http://rt.cpan.org/NoAuth/Bugs.html?Dist=VKontakte-API
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/VKontakte-API
CPAN Ratings
http://cpanratings.perl.org/d/VKontakte-API
Search CPAN
http://search.cpan.org/dist/VKontakte-API/
Copyright 2011 Anastasiya Deeva.
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.
To install VKontakte::API, copy and paste the appropriate command in to your terminal.
cpanm
cpanm VKontakte::API
CPAN shell
perl -MCPAN -e shell install VKontakte::API
For more information on module installation, please visit the detailed CPAN module installation guide.