<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">[![Build Status](https://travis-ci.org/ytnobody/p5-Net-Azure-EventHubs.svg?branch=master)](https://travis-ci.org/ytnobody/p5-Net-Azure-EventHubs)
# NAME

Net::Azure::EventHubs - A Client Class for Azure Event Hubs 

# SYNOPSIS

    use Net::Azure::EventHubs;
    my $eh = Net::Azure::EventHubs-&gt;new(
        connection_string =&gt; 'Endpoint=sb://...',
    );
    ## or use Net::Azure::Authorization::SAS for Authorization
    my $sas = Net::Azure::Authorization::SAS-&gt;new(connection_string =&gt; 'Endpoint=sb://...');
    $eh = Net::Azure::EventHubs-&gt;new(authorizer =&gt; $sas);
    $eh-&gt;message({Location =&gt; 'Roppongi', Temperature =&gt; 20});

# DESCRIPTION

Net::Azure::EventHubs is a cliant class for Azure Event Hubs.

If you want to know more information about Azure Event Hubs, please see [https://msdn.microsoft.com/en-us/library/azure/mt652157.aspx](https://msdn.microsoft.com/en-us/library/azure/mt652157.aspx). 

# METHODS

## new

    my $eh = Net::Azure::EventHubs-&gt;new(
        connection_string =&gt; 'Endpoint=sb://...',
    );

A constructor method. 

It requires the 'connection\_string' parameter that is a value of 'CONNECTION STRINGâPRIMARY KEY' or 'CONNECTION STRINGâSECONDARY KEY' on the 'Shared access policies' blade of Event Hubs in Microsoft Azure Portal. 

## message 

    $eh-&gt;message($payload);

Send a message that contains specified payload to Azure Event Hubs.

$payload is a hashref.  

# LICENSE

Copyright (C) ytnobody.

This library is free software; you can redistribute it and/or modify
it under the same terms as Perl itself.

# AUTHOR

ytnobody &lt;ytnobody@gmail.com&gt;
</pre></body></html>