src/main/java/org/embulk/input/zendesk/ZendeskInputPlugin.java in embulk-input-zendesk-0.3.2 vs src/main/java/org/embulk/input/zendesk/ZendeskInputPlugin.java in embulk-input-zendesk-0.3.3
- old
+ new
@@ -421,10 +421,12 @@
final PageBuilder pageBuilder)
{
// FIXME: if include is not contained in schema, data should be ignore
task.getIncludes().forEach(include -> {
String relatedObjectName = include.trim();
- final String url = task.getLoginUrl() + ZendeskConstants.Url.API
+ final String url = task.getLoginUrl()
+ + "/"
+ + ZendeskConstants.Url.API
+ "/" + task.getTarget().toString()
+ "/" + jsonNode.get(ZendeskConstants.Field.ID).asText()
+ "/" + relatedObjectName + ".json";
try {