Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.2 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Perl Modules

    Net::API::Gett 1.06

    Download button

    No screenshots available
    Downloads: 137  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Mark Allen | More programs
    Perl Artistic License / FREE
    April 12th, 2012, 15:03 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    Net::API::Gett description

    Perl bindings for Ge.tt API

    Gett is a clutter-free file sharing service that allows its users to share up to 2 GB of files for free. They recently implemented a REST API; Net::API::Gett is a binding for the API. See http://ge.tt/developers for full details and how to get an API key.

    SYNOPSIS

     use 5.010;
     use Net::API::Gett;

     # Get API Key from http://ge.tt/developers

     my $gett = Net::API::Gett->new(
     api_key => 'GettAPIKey',
     email => 'me@example.com',
     password => 'mysecret',
     );

     my $file_obj = $gett->upload_file(
     filename => "ossm.txt",
     contents => "/some/path/example.txt",
     title => "My Awesome File",
     encoding => ":encoding(UTF-8)"
     );

     say "File has been shared at " . $file_obj->getturl;

     # Download contents
     my $file_contents = $file_obj->contents();

     open my $fh, ">:encoding(UTF-8)", "/some/path/example-copy.txt"
     or die $!;
     print $fh $file_contents;
     close $fh;

     # clean up share and file(s)
     my $share = $gett->get_share($file->sharename);
     $share->destroy();



    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    Ge.tt API | Perl bindings | Perl | Ge.tt | API

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

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