##Before you begin
This is designed for Python 2.7. You'll need to have the requests
package installed.
##Setup
- Setup 3 files that correspond to the 3 Python files in this gist within a single folder.
- In secrets.py, add your Zendesk account email and token. To get a token, from within Zendesk, go to Settings > API > Token Access (Enabled), then click the plus sign near "Active API Tokens".
- In query_zendesk_search_stats_tags.py, change
SEARCH
andZENDESK_SUBDOMAIN
for your needs. - To run, type
python query_zendesk_search_stats_tags.py
from the command line and press enter. It will take about 2.5 seconds for each 100 tickets in the search. E.g. 811 tickets took ~22 seconds.