This folder is meant to be built into a gem.
To run it directly, first, make sure you've correctly run
bundle install
Then, to run the crawler:
APPLICATION_ID='xxx' \
API_KEY='xxx' \
INDEX_PREFIX='zendesk_' \
CONFIG='{ "app_name": "your-zendesk-subdomain", "email": "[email protected]", "token": "xxx" }' \
bundle exec ./run
You can generate an API token to your Zendesk instance in the Agent Section > Admin/Settings > API.
Otherwise (and this is what we use when plugging the connector to Algolia), you can use an OAuth token which has the hc:read
scope.
If you have one, just replace the CONFIG
line with
CONFIG='{ "app_name": "your-zendesk-subdomain", "oauth_token": "xxx" }' \
app_name
- required - Zendesk subdomainoauth_token
or (email
+token
) - required - Credentials to identify on Zendesk's APItypes
- optional - Default:["articles"]
- Defines which content should be crawled. Supported types:articles
andposts
user_types
- optional - Default:["everybody"]
- Which default Zendesk user segments to indexprivate
- optional - Default:false
- Set to true to index all articles, regardless of their user segmentmax_content_size
- optional - Default:5000
- Maximum byte size after which the text of an attribute will be truncated
We're considering any contribution and PR, please go ahead!
This project is under the MIT License.