Zendesk input plugin for Embulk
Embulk input plugin for loading Zendesk records.
Overview
Required Embulk version >= 0.8.1.
NOTE This plugin don't support JSON type columns e.g. custom fields, tags, etc for now. But they will be supported soon.
- Plugin type: input
- Resume supported: yes
- Cleanup supported: no
- Guess supported: yes
Configuration
- login_url: Login URL for Zendesk (string, required)
- auth_method:
basic,token, oroauth. For more detail on zendesk document. (string, required) - target: Which export Zendesk resource. Currently supported are
tickets,ticket_events,users,organizations,ticket_fields,ticket_formsorticket_metrics. (string, required) - includes: Will fetch sub resources. For example, ticket has ticket_audits, ticket_comments. See below example config. (array, default:
[]) - username: The user name a.k.a. email. Required if
auth_methodisbasicortoken. (string, default:null) - password: Password. required if
auth_methodisbasic. (string, default:null) - token: Token. required if
auth_methodistoken. (string, default:null) - access_token: OAuth Access Token. required if
auth_methodisoauth. (string, default:null) - start_time: Start export from this time if present. (string, default:
null) - retry_limit: Try to retry this times (integer, default: 5)
- retry_initial_wait_sec: Wait seconds for exponential backoff initial value (integer, default: 4)
- incremental: If false,
start_timein next.yml would not be updated that means you always fetch all of data from Zendesk with statically conditions. If true,start_timewould be updated in next.yml. (bool, default: true) - app_marketplace_integration_name: Invisible to user, only requires to be a part of the Zendesk Apps Marketplace. This should be used to name of the integration.
- app_marketplace_org_id: Invisible to user, only requires to be a part of the Zendesk Apps Marketplace. This should be the Organization ID for your organization from the new developer portal.
- app_marketplace_app_id: Invisible to user, only requires to be a part of the Zendesk Apps Marketplace. This is the “App ID” that will be assigned to you when you submit your app.
Example
in:
type: zendesk
login_url: https://obscura.zendesk.com
auth_method: token
username: [email protected]
token: 6wiIBWbGkBMo1mRDMuVwkw1EPsNkeUj95PIz2akv
target: tickets
includes:
- audits
- comments
start_time: "2015-01-01 00:00:00+0000"
Test
$ rake test