<commit_before># Zendesk Calendar #

Synchronize tickets in Zendesk with Google Calendar events.

## Details ##

This application allows you to automatically insert events into Google Calendar whenever an agent gets ticket.
Similarly, editting events in calendar updates Zendesk tickets.

Events' dates are taken from 4 custom ticket fields - start date, start end, end date, end time.
You need to add them manually. Because Zendesk lacks timepicker field, I've created small plugin that adds nice datetimepicker as iframe.
Please see [this GitHub repo](https://github.com/miedzinski/zendesk-calendar-app).

Additionally, you will need to add 2 triggers in Zendesk admin panel - for POST and PUT endpoints (ticket creation and ticket update).

If you need a better solution, check [Cronofy](https://zendesk.cronofy.com).

## Requirements ##

Python 3 (tested on 3.4.3) and Redis.

## Installation ##

    $ git clone https://github.com/miedzinski/zendesk-calendar.git
    $ cd zendesk-calendar
    $ mkvirtualenv zendesk-calendar
    $ pip install -r requirements.txt
    $ cp zendesk/settings.py.example zendesk/settings.py
    
Edit `settings.py` and make sure you have Redis server up.

    $ python run.py # in production use gunicorn or alternative
    $ celery -A zendesk:celery worker

Don't forget to setup ticket fields in Zendesk admin panel.
Start date and end date should be of type `Date`, start time and end time should be `Text` or `Regular Expression`. Example time regexp:

    ^([0-1][0-9]|2[0-3]):[0-5][0-9]$

## License ##

This code is available under [The MIT License](https://opensource.org/licenses/MIT), see the `LICENSE` file for more information.
<commit_msg>add celery beat command to readme<commit_after># Zendesk Calendar #

Synchronize tickets in Zendesk with Google Calendar events.

## Details ##

This application allows you to automatically insert events into Google Calendar whenever an agent gets ticket.
Similarly, editting events in calendar updates Zendesk tickets.

Events' dates are taken from 4 custom ticket fields - start date, start end, end date, end time.
You need to add them manually. Because Zendesk lacks timepicker field, I've created small plugin that adds nice datetimepicker as iframe.
Please see [this GitHub repo](https://github.com/miedzinski/zendesk-calendar-app).

Additionally, you will need to add 2 triggers in Zendesk admin panel - for POST and PUT endpoints (ticket creation and ticket update).

If you need a better solution, check [Cronofy](https://zendesk.cronofy.com).

## Requirements ##

Python 3 (tested on 3.4.3) and Redis.

## Installation ##

    $ git clone https://github.com/miedzinski/zendesk-calendar.git
    $ cd zendesk-calendar
    $ mkvirtualenv zendesk-calendar
    $ pip install -r requirements.txt
    $ cp zendesk/settings.py.example zendesk/settings.py
    
Edit `settings.py` and make sure you have Redis server up.

    $ python run.py # in production use gunicorn or alternative
    $ celery -A zendesk:celery worker
    $ celery -A zendesk:celery beat

Don't forget to setup ticket fields in Zendesk admin panel.
Start date and end date should be of type `Date`, start time and end time should be `Text` or `Regular Expression`. Example time regexp:

    ^([0-1][0-9]|2[0-3]):[0-5][0-9]$

## License ##

This code is available under [The MIT License](https://opensource.org/licenses/MIT), see the `LICENSE` file for more information.

{'fraction_non_alphanumeric': 0.08663943990665111, 'fraction_numerical': 0.009918319719953326, 'mean_word_length': 4.0131578947368425, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 8, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3240063', 'n_tokens_mistral': 1028, 'n_tokens_neox': 957, 'n_words': 419}