Net::Azure::StorageClient - Client for Azure Blob Storage
version 0.6
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', ] );
Net::Azure::StorageClient - Windows Azure Storage Client
Specifying the authorization header to HTTP::Request object. http://msdn.microsoft.com/en-us/library/dd179428.aspx
my $req = HTTP::Request->new( '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>
This software is copyright (c) 2020 by Junnama Noda.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
Alexandr Ciornii <alexchorny@gmail.com>
Dean Hamstead <djzort@cpan.org>
ksasakims <gitsasa@outlook.com>
paulbort <paulbort@gmail.com>
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.