Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.6 / 3....
  • Linux Kernel 3.0.82 LTS...
  • KDE Software Compilatio...
  • PulseAudio 4.0
  • Wireshark 1.10.0
  • NetworkManager 0.9.8.2
  • LibreOffice 3.6.6 / 4.0...
  • SystemRescueCd 3.7.0
  • Linux Kernel 3.10 RC6
  • Ubuntu Tweak 0.8.5
  • Home > Linux > Programming > Perl Modules

    VK::App 0.07

    Download button

    No screenshots available
    Downloads: 500  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Misha Genaev | More programs
    Perl Artistic License / FREE
    July 3rd, 2012, 03:21 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    VK::App description

    Creation of a client application for vk.com

    VK::App is a Perl module for creation of client applications based on OAuth 2.0, receiving access rights and sending requests to API vk.com. First, you need to get api_id application that will work with the API of vk.com. You can register your application at http://vk.com/apps.php?act=add or use api_id of the existing application.

    This package also includes scripts/vmd.pl script, that shows how to use the module.

    SYNOPSIS

     ### Application object creation ###
     #1. Authorizing by login and password
     use VK::App;
     my $vk = VK::App->new(
     # Your email or mobile phone to vk.com
     login => 'login',
     # Your password to vk.com
     password => 'password',
     # The api_id of application
     api_id => 'api_id',
     # Name of the file to restore cookies from and save cookies to
     #(this parameter is optional in this case)
     cookie_file => '/home/user/.vk.com.cookie',
     );

     #2. Authorizing by cookie file
     use VK::App;
     my $vk = VK::App->new(
     # Name of the file to restore cookies from and save cookies to
     cookie_file => '/home/user/.vk.com.cookie',
     # The api_id of application
     api_id => 'api_id',
     );

     #3. Set additional options
     use VK::App;
     my $vk = VK::App->new(
     # Name of the file to restore cookies from and save cookies to
     cookie_file => '/home/user/.vk.com.cookie',
     # The api_id of application
     api_id => 'api_id',
     # Set application access rights
     scope => 'friends,photos,audio,video,wall,groups,messages,offline',
     # Data format that will receive as a result of requests 'JSON', 'XML' or 'Perl'.
     # Perl object by default.
     format => 'Perl',
     );
     
     ### Requests examples ###

     #1. Get user id by name
     my $user = $vk->request('getProfiles',{uid=>'genaev',fields=>'uid'});
     my $uid = $user->{response}->[0]->{uid};

     #2. Get a list of tracks by uid
     my $tracks = $vk->request('audio.get',{uid=>$uid});
     my $url = $tracks->{response}->[0]->{url}; # get url of the first track



    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    vk.com client | Perl module | Perl | vk.com | client

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM