/zendesk-publish-script

Small script to publish an article to zendesk

Primary LanguagePython

zendesk-publish-script

This is a script that takes an html file and a section as arguments and publishes the html to that zection on zendesk. Handles images and tags, also can update a article if it already exists.

Using the Script

First create a virtualenv with the required modules using:

virtualenv venv ; . venv/bin/activate ; pip install -r requirements.txt

After that you will also need to set some environment variables:

Then you can run the script with:

python publish.py file.html section_num

To mass publish articles, write a yaml file with the configs (see example.yml), then run:

python publish.py file.yml

To publish a json file that is pulled from zendesk, use

python publish.py file.json