Net::Azure::StorageClient - Windows Azure Storage Client
my $StorageClient = Net::Azure::StorageClient->new( type => 'Blob', account_name => $you_account_name, primary_access_key => $your_primary_access_key, [ protocol => 'https', ] [ api_version => '2012-02-12', ] );
Specifying the authorization header to HTTP::Request object. http://msdn.microsoft.com/en-us/library/dd179428.aspx
my $req = new HTTP::Request( 'GET', $url ); $req = $StorageClient->sign( $req, $params );
Specifying the authorization header and send request.
# Specifying $url or $path, Send GET request. my $api = '/path/to/api?foo=bar'; my $type = $blobService->{ type }; # 'blob' my $account = $blobService->{ account_name }; my $protocol = $blobService->{ protocol }; my $url = "${protocol}://${account}.${type}.core.windows.net/${api}"; my $res = $StorageClient->request( 'GET', $url ); # Request with custom http headers and request body. Send POST request. my $params = { headers => { 'x-ms-foo' => 'bar', }, body => $request_body, }; my $res = $StorageClient->request( 'PUT', $url, $params ); # return HTTP::Response object.
Specifying the authorization header and send 'GET' request.
Specifying the authorization header and send 'PUT' request.
Specifying the authorization header and send 'HEAD' request.
Specifying the authorization header and send 'DELETE' request.
Specifying the authorization header and send 'POST' request.
Junnama Noda <junnama@alfasado.jp>
Copyright (C) 2013, Junnama Noda.
This program is free software; you can redistribute it and modify it under the same terms as Perl itself.
To install Net::Azure::StorageClient, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::Azure::StorageClient
CPAN shell
perl -MCPAN -e shell install Net::Azure::StorageClient
For more information on module installation, please visit the detailed CPAN module installation guide.