NAME
VKontakte::API - Module for login into vkontakte.ru and sending requests
VERSION
Version 0.04
SYNOPSIS
First of all register you application at http://vkontakte.ru/apps.php?act=add
#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
$vk
= VKontakte::API::OAuth->new(
$api_id
,
$secret
);
my
$data
=
$vk
->sendRequest(
'getProfiles'
, {
'domains'
=>
'deevaas'
});
SUBROUTINES/METHODS
new
Create new object. Two parameters of registered application:
sendRequest
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'});
- method
-
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
- params
-
Parameters for method
_params
prepares parameters for request
_encurl
encodes data for url
AUTHOR
Anastasiya Deeva, <nastya at creograf.ru>
BUGS
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.
SUPPORT
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
AnnoCPAN: Annotated CPAN documentation
CPAN Ratings
Search CPAN
ACKNOWLEDGEMENTS
LICENSE AND COPYRIGHT
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.