<commit_before># createsend-perl [![Build Status](https://secure.travis-ci.org/campaignmonitor/createsend-perl.png)][travis]
A Perl library for the [Campaign Monitor API](http://www.campaignmonitor.com/api/)

[travis]: http://travis-ci.org/campaignmonitor/createsend-perl

## Installation and usage

Download and install using CPAN, e.g.

    cpan Net::CampaignMonitor

Include the module in the required script and initialise using your API key: 	

    use Net::CampaignMonitor;
    my $cm = Net::CampaignMonitor->new({
                  api_key => '<KEY>',
                  secure  => 1,
                  timeout => 300,
                  });

All methods return a hash containing the Campaign Monitor response code, the headers and the actual response.

    my %results = (
                code     => '',
                response => '',
                headers  => ''
        );

Samples for each of the methods and further documentation is available on CPAN or perldocs, e.g.

    perldoc Net::CampaignMonitor
<commit_msg>Use Travis CI status image for master branch.<commit_after># createsend-perl [![Build Status](https://secure.travis-ci.org/campaignmonitor/createsend-perl.png?branch=master)][travis]
A Perl library for the [Campaign Monitor API](http://www.campaignmonitor.com/api/)

[travis]: http://travis-ci.org/campaignmonitor/createsend-perl

## Installation and usage

Download and install using CPAN:

    cpan Net::CampaignMonitor

Include the module in the required script and initialise using your API key: 	

    use Net::CampaignMonitor;
    my $cm = Net::CampaignMonitor->new({
      api_key => '<KEY>',
      secure  => 1,
      timeout => 300,
    });

All methods return a hash containing the Campaign Monitor response code, the headers and the actual response.

    my %results = (
      code     => '',
      response => '',
      headers  => ''
    );

Samples for each of the methods and further documentation is available on CPAN or perldocs, e.g.

    perldoc Net::CampaignMonitor

{'fraction_non_alphanumeric': 0.10669975186104218, 'fraction_numerical': 0.003970223325062035, 'mean_word_length': 2.876923076923077, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 19, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2665916', 'n_tokens_mistral': 591, 'n_tokens_neox': 555, 'n_words': 184}