<commit_before># Zanox API client

[![Latest Stable Version](https://img.shields.io/packagist/v/whitelabeled/zanox-api-client.svg)](https://packagist.org/packages/whitelabeled/zanox-api-client)
[![Total Downloads](https://img.shields.io/packagist/dt/whitelabeled/zanox-api-client.svg)](https://packagist.org/packages/whitelabeled/zanox-api-client)
[![License](https://img.shields.io/packagist/l/whitelabeled/zanox-api-client.svg)](https://packagist.org/packages/whitelabeled/zanox-api-client)

Library to retrieve sales from the Zanox publisher API.

Usage:

```php
<?php
require 'vendor/autoload.php';

$client = new \whitelabeled\ZanoxApi\ZanoxClient('1234567890ABCDEF1234', 'yoursecret');
$sales = $client->getSalesForDate(new \DateTime('2016-10-28'));

print_r($sales);

/* Returns:

Array
(
    [0] => vergelijkgroep\ZanoxApi\Sale Object
        (
            [id] => 09517c85-f2cc-4e33-86b6-7d61233264a7
            [reviewState] => open
            [reviewNote] => U1P
            [trackingDate] => DateTime Object
                (
                    [date] => 2016-10-28 12:47:30.837000
                    [timezone_type] => 1
                    [timezone] => +02:00
                )

            [clickDate] => DateTime Object
                (
                    [date] => 2016-10-15 11:20:36.323000
                    [timezone_type] => 1
                    [timezone] => +02:00
                )

            [modifiedDate] => DateTime Object
                (
                    [date] => 2016-10-28 12:47:32.130000
                    [timezone_type] => 1
                    [timezone] => +02:00
                )

            [adSpace] => Your website
            [adMedium] => TV Internet max
            [program] => Ziggo NL
            [clickId] => 2223423049892302528
            [amount] => 0
            [commission] => 60
            [currency] => EUR
            [gpps] => Array
                (
                    [zpar0] => 8e72d59d9572394923402009a5bedcef
                )

        )
    [1] => vergelijkgroep\ZanoxApi\Sale Object
        (
            [id] => 7b3bc3c6-b234-4488-bcc6-ae95849303d6
            [reviewState] => open
            [reviewNote] => 
            [trackingDate] => DateTime Object
                (
                    [date] => 2016-10-28 14:01:25.587000
                    [timezone_type] => 1
                    [timezone] => +02:00
                )

            [clickDate] => DateTime Object
                (
                    [date] => 2016-10-28 13:56:17.340000
                    [timezone_type] => 1
                    [timezone] => +02:00
                )

            [modifiedDate] => DateTime Object
                (
                    [date] => 2016-10-28 14:01:27.637000
                    [timezone_type] => 1
                    [timezone] => +02:00
                )

            [adSpace] => Your website
            [adMedium] => 500x500 Energiedirect icm EUR 100 Bol.com bon
            [program] => DealDirect NL
            [clickId] => 9348234023481412352
            [amount] => 1
            [commission] => 30
            [currency] => EUR
            [gpps] => Array
             (
             )
     )
 */
```

## License

© Whitelabeled BV

MIT license, see [LICENSE.txt](LICENSE.txt) for details.<commit_msg>Correct namespace in example<commit_after># Zanox API client

[![Latest Stable Version](https://img.shields.io/packagist/v/whitelabeled/zanox-api-client.svg)](https://packagist.org/packages/whitelabeled/zanox-api-client)
[![Total Downloads](https://img.shields.io/packagist/dt/whitelabeled/zanox-api-client.svg)](https://packagist.org/packages/whitelabeled/zanox-api-client)
[![License](https://img.shields.io/packagist/l/whitelabeled/zanox-api-client.svg)](https://packagist.org/packages/whitelabeled/zanox-api-client)

Library to retrieve sales from the Zanox publisher API.

Usage:

```php
<?php
require 'vendor/autoload.php';

$client = new \whitelabeled\ZanoxApi\ZanoxClient('1234567890ABCDEF1234', 'yoursecret');
$sales = $client->getSalesForDate(new \DateTime('2016-10-28'));

print_r($sales);

/* Returns:

Array
(
    [0] => whitelabeled\ZanoxApi\Sale Object
        (
            [id] => 09517c85-f2cc-4e33-86b6-7d61233264a7
            [reviewState] => open
            [reviewNote] => U1P
            [trackingDate] => DateTime Object
                (
                    [date] => 2016-10-28 12:47:30.837000
                    [timezone_type] => 1
                    [timezone] => +02:00
                )

            [clickDate] => DateTime Object
                (
                    [date] => 2016-10-15 11:20:36.323000
                    [timezone_type] => 1
                    [timezone] => +02:00
                )

            [modifiedDate] => DateTime Object
                (
                    [date] => 2016-10-28 12:47:32.130000
                    [timezone_type] => 1
                    [timezone] => +02:00
                )

            [adSpace] => Your website
            [adMedium] => TV Internet max
            [program] => Ziggo NL
            [clickId] => 2223423049892302528
            [amount] => 0
            [commission] => 60
            [currency] => EUR
            [gpps] => Array
                (
                    [zpar0] => 8e72d59d9572394923402009a5bedcef
                )

        )
    [1] => whitelabeled\ZanoxApi\Sale Object
        (
            [id] => 7b3bc3c6-b234-4488-bcc6-ae95849303d6
            [reviewState] => open
            [reviewNote] => 
            [trackingDate] => DateTime Object
                (
                    [date] => 2016-10-28 14:01:25.587000
                    [timezone_type] => 1
                    [timezone] => +02:00
                )

            [clickDate] => DateTime Object
                (
                    [date] => 2016-10-28 13:56:17.340000
                    [timezone_type] => 1
                    [timezone] => +02:00
                )

            [modifiedDate] => DateTime Object
                (
                    [date] => 2016-10-28 14:01:27.637000
                    [timezone_type] => 1
                    [timezone] => +02:00
                )

            [adSpace] => Your website
            [adMedium] => 500x500 Energiedirect icm EUR 100 Bol.com bon
            [program] => DealDirect NL
            [clickId] => 9348234023481412352
            [amount] => 1
            [commission] => 30
            [currency] => EUR
            [gpps] => Array
             (
             )
     )
 */
```

## License

© Whitelabeled BV

MIT license, see [LICENSE.txt](LICENSE.txt) for details.
{'fraction_non_alphanumeric': 0.1290807883255604, 'fraction_numerical': 0.08906273506845193, 'mean_word_length': 1.4262773722627737, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 103, 'https://': 12, 'lorem ipsum': 0, 'www.': 0, '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': '2781748', 'n_tokens_mistral': 2532, 'n_tokens_neox': 2018, 'n_words': 336}