embulk-input-zendesk 0.2.14 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +9 -3
- data/.travis.yml +5 -44
- data/CHANGELOG.md +3 -0
- data/README.md +5 -5
- data/build.gradle +123 -0
- data/classpath/commons-codec-1.10.jar +0 -0
- data/classpath/commons-logging-1.2.jar +0 -0
- data/classpath/embulk-input-zendesk-0.3.0.jar +0 -0
- data/classpath/httpclient-4.5.6.jar +0 -0
- data/classpath/httpcore-4.4.10.jar +0 -0
- data/config/checkstyle/checkstyle.xml +128 -0
- data/config/checkstyle/default.xml +108 -0
- data/gradle/wrapper/gradle-wrapper.jar +0 -0
- data/gradle/wrapper/gradle-wrapper.properties +5 -0
- data/gradlew +172 -0
- data/gradlew.bat +84 -0
- data/lib/embulk/guess/zendesk.rb +21 -0
- data/lib/embulk/input/zendesk.rb +3 -9
- data/src/main/java/org/embulk/input/zendesk/ZendeskInputPlugin.java +471 -0
- data/src/main/java/org/embulk/input/zendesk/clients/ZendeskRestClient.java +268 -0
- data/src/main/java/org/embulk/input/zendesk/models/AuthenticationMethod.java +23 -0
- data/src/main/java/org/embulk/input/zendesk/models/Target.java +46 -0
- data/src/main/java/org/embulk/input/zendesk/models/ZendeskException.java +25 -0
- data/src/main/java/org/embulk/input/zendesk/services/ZendeskSupportAPIService.java +109 -0
- data/src/main/java/org/embulk/input/zendesk/utils/ZendeskConstants.java +61 -0
- data/src/main/java/org/embulk/input/zendesk/utils/ZendeskDateUtils.java +51 -0
- data/src/main/java/org/embulk/input/zendesk/utils/ZendeskUtils.java +150 -0
- data/src/main/java/org/embulk/input/zendesk/utils/ZendeskValidatorUtils.java +92 -0
- data/src/test/java/org/embulk/input/zendesk/TestZendeskInputPlugin.java +232 -0
- data/src/test/java/org/embulk/input/zendesk/clients/TestZendeskRestClient.java +351 -0
- data/src/test/java/org/embulk/input/zendesk/services/TestZendeskSupportAPIService.java +172 -0
- data/src/test/java/org/embulk/input/zendesk/utils/TestZendeskDateUtils.java +36 -0
- data/src/test/java/org/embulk/input/zendesk/utils/TestZendeskUtil.java +160 -0
- data/src/test/java/org/embulk/input/zendesk/utils/TestZendeskValidatorUtils.java +138 -0
- data/src/test/java/org/embulk/input/zendesk/utils/ZendeskPluginTestRuntime.java +133 -0
- data/src/test/java/org/embulk/input/zendesk/utils/ZendeskTestHelper.java +63 -0
- data/src/test/resources/config/base.yml +14 -0
- data/src/test/resources/config/base_validator.yml +48 -0
- data/src/test/resources/config/incremental.yml +54 -0
- data/src/test/resources/config/non-incremental.yml +39 -0
- data/src/test/resources/config/util.yml +18 -0
- data/src/test/resources/data/client.json +293 -0
- data/src/test/resources/data/error_data.json +187 -0
- data/src/test/resources/data/expected/ticket_column.json +148 -0
- data/src/test/resources/data/expected/ticket_column_with_related_objects.json +152 -0
- data/src/test/resources/data/expected/ticket_fields_column.json +92 -0
- data/src/test/resources/data/expected/ticket_metrics_column.json +98 -0
- data/src/test/resources/data/ticket_fields.json +225 -0
- data/src/test/resources/data/ticket_metrics.json +397 -0
- data/src/test/resources/data/ticket_with_related_objects.json +67 -0
- data/src/test/resources/data/tickets.json +232 -0
- data/src/test/resources/data/tickets_continue.json +52 -0
- data/src/test/resources/data/util.json +19 -0
- data/src/test/resources/data/util_page.json +227 -0
- metadata +65 -221
- data/.ruby-version +0 -1
- data/.travis.yml.erb +0 -43
- data/Gemfile +0 -2
- data/Rakefile +0 -21
- data/embulk-input-zendesk.gemspec +0 -29
- data/gemfiles/embulk-0.8.0-latest +0 -4
- data/gemfiles/embulk-0.8.1 +0 -4
- data/gemfiles/embulk-latest +0 -4
- data/gemfiles/template.erb +0 -4
- data/lib/embulk/input/zendesk/client.rb +0 -434
- data/lib/embulk/input/zendesk/plugin.rb +0 -199
- data/test/capture_io.rb +0 -45
- data/test/embulk/input/zendesk/test_client.rb +0 -722
- data/test/embulk/input/zendesk/test_plugin.rb +0 -628
- data/test/fixture_helper.rb +0 -11
- data/test/fixtures/invalid_app_marketplace_lack_one_property.yml +0 -13
- data/test/fixtures/invalid_app_marketplace_lack_two_property.yml +0 -12
- data/test/fixtures/invalid_lack_username.yml +0 -9
- data/test/fixtures/invalid_unknown_auth.yml +0 -9
- data/test/fixtures/tickets.json +0 -44
- data/test/fixtures/valid_app_marketplace.yml +0 -14
- data/test/fixtures/valid_auth_basic.yml +0 -11
- data/test/fixtures/valid_auth_oauth.yml +0 -10
- data/test/fixtures/valid_auth_token.yml +0 -11
- data/test/override_assert_raise.rb +0 -21
- data/test/run-test.rb +0 -26
@@ -0,0 +1,63 @@
|
|
1
|
+
package org.embulk.input.zendesk.utils;
|
2
|
+
|
3
|
+
import com.fasterxml.jackson.databind.JsonNode;
|
4
|
+
import com.fasterxml.jackson.databind.ObjectMapper;
|
5
|
+
import com.fasterxml.jackson.datatype.jdk8.Jdk8Module;
|
6
|
+
|
7
|
+
import org.embulk.config.ConfigLoader;
|
8
|
+
import org.embulk.config.ConfigSource;
|
9
|
+
import org.embulk.config.ModelManager;
|
10
|
+
import org.embulk.test.EmbulkTests;
|
11
|
+
import org.junit.Assert;
|
12
|
+
|
13
|
+
import java.io.IOException;
|
14
|
+
import java.io.InputStream;
|
15
|
+
|
16
|
+
import static junit.framework.TestCase.fail;
|
17
|
+
|
18
|
+
public final class ZendeskTestHelper
|
19
|
+
{
|
20
|
+
private ZendeskTestHelper() {}
|
21
|
+
|
22
|
+
private static ObjectMapper mapper;
|
23
|
+
private static final ConfigLoader configLoader;
|
24
|
+
|
25
|
+
static {
|
26
|
+
mapper = new ObjectMapper();
|
27
|
+
mapper.registerModule(new Jdk8Module());
|
28
|
+
configLoader = new ConfigLoader(new ModelManager(null, mapper));
|
29
|
+
}
|
30
|
+
|
31
|
+
public static JsonNode getJsonFromFile(String fileName)
|
32
|
+
{
|
33
|
+
try {
|
34
|
+
return mapper.readTree(EmbulkTests.readResource(fileName));
|
35
|
+
}
|
36
|
+
catch (IOException e) {
|
37
|
+
fail("Fail to load file from " + fileName);
|
38
|
+
}
|
39
|
+
return null;
|
40
|
+
}
|
41
|
+
|
42
|
+
public static ConfigSource getConfigSource(String file)
|
43
|
+
{
|
44
|
+
ConfigSource configSource = null;
|
45
|
+
InputStream is = null;
|
46
|
+
try {
|
47
|
+
is = ZendeskTestHelper.class.getResourceAsStream("/config/" + file);
|
48
|
+
configSource = configLoader.fromYaml(is);
|
49
|
+
}
|
50
|
+
catch (IOException ex) {
|
51
|
+
Assert.fail(ex.getMessage());
|
52
|
+
}
|
53
|
+
finally {
|
54
|
+
if (is != null) {
|
55
|
+
try {
|
56
|
+
is.close();
|
57
|
+
}
|
58
|
+
catch (IOException ex) { }
|
59
|
+
}
|
60
|
+
}
|
61
|
+
return configSource;
|
62
|
+
}
|
63
|
+
}
|
@@ -0,0 +1,14 @@
|
|
1
|
+
type: zendesk
|
2
|
+
login_url: https://abc.zendesk.com/
|
3
|
+
auth_method: oauth
|
4
|
+
username: dummy
|
5
|
+
password: dummy
|
6
|
+
token: dummy
|
7
|
+
access_token: dummy
|
8
|
+
app_marketplace_integration_name: abc
|
9
|
+
app_marketplace_app_id: abc
|
10
|
+
app_marketplace_org_id: abc
|
11
|
+
retry_initial_wait_sec: 1
|
12
|
+
max_retry_wait_sec: 30
|
13
|
+
retry_limit: 2
|
14
|
+
|
@@ -0,0 +1,48 @@
|
|
1
|
+
type: zendesk
|
2
|
+
login_url: https://abc.zendesk.com/
|
3
|
+
auth_method: oauth
|
4
|
+
username: dummy
|
5
|
+
password: dummy
|
6
|
+
token: dummy
|
7
|
+
access_token: dummy
|
8
|
+
app_marketplace_integration_name: abc
|
9
|
+
app_marketplace_app_id: abc
|
10
|
+
app_marketplace_org_id: abc
|
11
|
+
target: tickets
|
12
|
+
columns:
|
13
|
+
- {name: url, type: string}
|
14
|
+
- {name: id, type: long}
|
15
|
+
- {name: external_id, type: string}
|
16
|
+
- {name: via, type: json}
|
17
|
+
- {name: created_at, type: timestamp, format: '%Y-%m-%dT%H:%M:%S%z'}
|
18
|
+
- {name: updated_at, type: timestamp, format: '%Y-%m-%dT%H:%M:%S%z'}
|
19
|
+
- {name: type, type: string}
|
20
|
+
- {name: subject, type: string}
|
21
|
+
- {name: raw_subject, type: string}
|
22
|
+
- {name: description, type: string}
|
23
|
+
- {name: priority, type: string}
|
24
|
+
- {name: status, type: string}
|
25
|
+
- {name: recipient, type: string}
|
26
|
+
- {name: requester_id, type: long}
|
27
|
+
- {name: submitter_id, type: long}
|
28
|
+
- {name: assignee_id, type: long}
|
29
|
+
- {name: organization_id, type: long}
|
30
|
+
- {name: group_id, type: long}
|
31
|
+
- {name: collaborator_ids, type: json}
|
32
|
+
- {name: follower_ids, type: json}
|
33
|
+
- {name: email_cc_ids, type: json}
|
34
|
+
- {name: forum_topic_id, type: string}
|
35
|
+
- {name: problem_id, type: string}
|
36
|
+
- {name: has_incidents, type: boolean}
|
37
|
+
- {name: is_public, type: boolean}
|
38
|
+
- {name: due_at, type: string}
|
39
|
+
- {name: tags, type: json}
|
40
|
+
- {name: custom_fields, type: json}
|
41
|
+
- {name: satisfaction_rating, type: string}
|
42
|
+
- {name: sharing_agreement_ids, type: json}
|
43
|
+
- {name: fields, type: json}
|
44
|
+
- {name: followup_ids, type: json}
|
45
|
+
- {name: brand_id, type: long}
|
46
|
+
- {name: allow_channelback, type: boolean}
|
47
|
+
- {name: allow_attachments, type: boolean}
|
48
|
+
- {name: generated_timestamp, type: long}
|
@@ -0,0 +1,54 @@
|
|
1
|
+
type: zendesk
|
2
|
+
login_url: https://abc.zendesk.com/
|
3
|
+
auth_method: oauth
|
4
|
+
username: dummy
|
5
|
+
password: dummy
|
6
|
+
token: dummy
|
7
|
+
access_token: dummy
|
8
|
+
target: tickets
|
9
|
+
app_marketplace_integration_name: abc
|
10
|
+
app_marketplace_app_id: abc
|
11
|
+
app_marketplace_org_id: abc
|
12
|
+
incremental: true
|
13
|
+
dedup: true
|
14
|
+
retry_initial_wait_sec: 1
|
15
|
+
max_retry_wait_sec: 30
|
16
|
+
retry_limit: 2
|
17
|
+
start_time: "2019-01-12 06:51:50 +0000"
|
18
|
+
columns:
|
19
|
+
- {name: url, type: string}
|
20
|
+
- {name: id, type: long}
|
21
|
+
- {name: external_id, type: string}
|
22
|
+
- {name: via, type: json}
|
23
|
+
- {name: created_at, type: timestamp, format: '%Y-%m-%dT%H:%M:%S%z'}
|
24
|
+
- {name: updated_at, type: timestamp, format: '%Y-%m-%dT%H:%M:%S%z'}
|
25
|
+
- {name: type, type: string}
|
26
|
+
- {name: subject, type: string}
|
27
|
+
- {name: raw_subject, type: string}
|
28
|
+
- {name: description, type: string}
|
29
|
+
- {name: priority, type: string}
|
30
|
+
- {name: status, type: string}
|
31
|
+
- {name: recipient, type: string}
|
32
|
+
- {name: requester_id, type: long}
|
33
|
+
- {name: submitter_id, type: long}
|
34
|
+
- {name: assignee_id, type: long}
|
35
|
+
- {name: organization_id, type: long}
|
36
|
+
- {name: group_id, type: long}
|
37
|
+
- {name: collaborator_ids, type: json}
|
38
|
+
- {name: follower_ids, type: json}
|
39
|
+
- {name: email_cc_ids, type: json}
|
40
|
+
- {name: forum_topic_id, type: string}
|
41
|
+
- {name: problem_id, type: string}
|
42
|
+
- {name: has_incidents, type: boolean}
|
43
|
+
- {name: is_public, type: boolean}
|
44
|
+
- {name: due_at, type: string}
|
45
|
+
- {name: tags, type: json}
|
46
|
+
- {name: custom_fields, type: json}
|
47
|
+
- {name: satisfaction_rating, type: string}
|
48
|
+
- {name: sharing_agreement_ids, type: json}
|
49
|
+
- {name: fields, type: json}
|
50
|
+
- {name: followup_ids, type: json}
|
51
|
+
- {name: brand_id, type: long}
|
52
|
+
- {name: allow_channelback, type: boolean}
|
53
|
+
- {name: allow_attachments, type: boolean}
|
54
|
+
- {name: generated_timestamp, type: long}
|
@@ -0,0 +1,39 @@
|
|
1
|
+
type: zendesk
|
2
|
+
login_url: https://abc.zendesk.com/
|
3
|
+
auth_method: oauth
|
4
|
+
username: dummy
|
5
|
+
password: dummy
|
6
|
+
token: dummy
|
7
|
+
access_token: dummy
|
8
|
+
target: ticket_fields
|
9
|
+
app_marketplace_integration_name: abc
|
10
|
+
app_marketplace_app_id: abc
|
11
|
+
app_marketplace_org_id: abc
|
12
|
+
includes: [organizations]
|
13
|
+
incremental: false
|
14
|
+
retry_initial_wait_sec: 1
|
15
|
+
max_retry_wait_sec: 30
|
16
|
+
retry_limit: 2
|
17
|
+
columns:
|
18
|
+
- {name: url, type: string}
|
19
|
+
- {name: id, type: long}
|
20
|
+
- {name: type, type: string}
|
21
|
+
- {name: title, type: string}
|
22
|
+
- {name: raw_title, type: string}
|
23
|
+
- {name: description, type: string}
|
24
|
+
- {name: raw_description, type: string}
|
25
|
+
- {name: position, type: long}
|
26
|
+
- {name: active, type: boolean}
|
27
|
+
- {name: required, type: boolean}
|
28
|
+
- {name: collapsed_for_agents, type: boolean}
|
29
|
+
- {name: regexp_for_validation, type: string}
|
30
|
+
- {name: title_in_portal, type: string}
|
31
|
+
- {name: raw_title_in_portal, type: string}
|
32
|
+
- {name: visible_in_portal, type: boolean}
|
33
|
+
- {name: editable_in_portal, type: boolean}
|
34
|
+
- {name: required_in_portal, type: boolean}
|
35
|
+
- {name: tag, type: string}
|
36
|
+
- {name: created_at, type: timestamp, format: '%Y-%m-%dT%H:%M:%S%z'}
|
37
|
+
- {name: updated_at, type: timestamp, format: '%Y-%m-%dT%H:%M:%S%z'}
|
38
|
+
- {name: removable, type: boolean}
|
39
|
+
- {name: agent_description, type: string}
|
@@ -0,0 +1,18 @@
|
|
1
|
+
type: zendesk
|
2
|
+
login_url: https://abc.zendesk.com/
|
3
|
+
auth_method: oauth
|
4
|
+
username: dummy
|
5
|
+
password: dummy
|
6
|
+
token: dummy
|
7
|
+
access_token: dummy
|
8
|
+
app_marketplace_integration_name: abc
|
9
|
+
app_marketplace_app_id: abc
|
10
|
+
app_marketplace_org_id: abc
|
11
|
+
target: tickets
|
12
|
+
columns:
|
13
|
+
- {name: boolean, type: boolean}
|
14
|
+
- {name: long, type: long}
|
15
|
+
- {name: double, type: double}
|
16
|
+
- {name: string, type: string}
|
17
|
+
- {name: date, type: timestamp, format: '%Y-%m-%dT%H:%M:%S%z'}
|
18
|
+
- {name: json, type: json}
|
@@ -0,0 +1,293 @@
|
|
1
|
+
{
|
2
|
+
"credentialSuccess": {
|
3
|
+
"statusCode": 200,
|
4
|
+
"description": "dummy text"
|
5
|
+
},
|
6
|
+
"credentialFail400": {
|
7
|
+
"statusCode": 400,
|
8
|
+
"description": "dummy text"
|
9
|
+
},
|
10
|
+
"credentialFail401": {
|
11
|
+
"statusCode": 401,
|
12
|
+
"description": "dummy text"
|
13
|
+
},
|
14
|
+
"credentialFail403": {
|
15
|
+
"statusCode": 403,
|
16
|
+
"description": "dummy text"
|
17
|
+
},
|
18
|
+
"credentialFail405": {
|
19
|
+
"statusCode": 405,
|
20
|
+
"description": "dummy text"
|
21
|
+
},
|
22
|
+
"doGet200": {
|
23
|
+
"statusCode": 200,
|
24
|
+
"body": {
|
25
|
+
"tickets": [
|
26
|
+
{
|
27
|
+
"url": "https://abc.zendesk.com/api/v2/tickets/2.json",
|
28
|
+
"id": 2,
|
29
|
+
"external_id": null,
|
30
|
+
"via": {
|
31
|
+
"channel": "web",
|
32
|
+
"source": {
|
33
|
+
"from": {},
|
34
|
+
"to": {},
|
35
|
+
"rel": null
|
36
|
+
}
|
37
|
+
},
|
38
|
+
"created_at": "2019-02-20T06:51:50Z",
|
39
|
+
"updated_at": "2019-02-20T06:51:50Z",
|
40
|
+
"type": null,
|
41
|
+
"subject": "ticket1",
|
42
|
+
"raw_subject": "ticket1",
|
43
|
+
"description": "ticket1",
|
44
|
+
"priority": null,
|
45
|
+
"status": "open",
|
46
|
+
"recipient": null,
|
47
|
+
"requester_id": 374673563333,
|
48
|
+
"submitter_id": 374673563333,
|
49
|
+
"assignee_id": 374673563333,
|
50
|
+
"organization_id": 360857467053,
|
51
|
+
"group_id": 360003235353,
|
52
|
+
"collaborator_ids": [],
|
53
|
+
"follower_ids": [],
|
54
|
+
"email_cc_ids": [],
|
55
|
+
"forum_topic_id": null,
|
56
|
+
"problem_id": null,
|
57
|
+
"has_incidents": false,
|
58
|
+
"is_public": true,
|
59
|
+
"due_at": null,
|
60
|
+
"tags": [],
|
61
|
+
"custom_fields": [],
|
62
|
+
"satisfaction_rating": null,
|
63
|
+
"sharing_agreement_ids": [],
|
64
|
+
"fields": [],
|
65
|
+
"followup_ids": [],
|
66
|
+
"brand_id": 360001998013,
|
67
|
+
"allow_channelback": false,
|
68
|
+
"allow_attachments": true,
|
69
|
+
"generated_timestamp": 1550645510
|
70
|
+
},
|
71
|
+
{
|
72
|
+
"url": "https://abc.zendesk.com/api/v2/tickets/3.json",
|
73
|
+
"id": 3,
|
74
|
+
"external_id": null,
|
75
|
+
"via": {
|
76
|
+
"channel": "web",
|
77
|
+
"source": {
|
78
|
+
"from": {},
|
79
|
+
"to": {},
|
80
|
+
"rel": null
|
81
|
+
}
|
82
|
+
},
|
83
|
+
"created_at": "2019-02-20T06:52:02Z",
|
84
|
+
"updated_at": "2019-02-20T06:52:02Z",
|
85
|
+
"type": null,
|
86
|
+
"subject": "ticket2",
|
87
|
+
"raw_subject": "ticket2",
|
88
|
+
"description": "ticket2",
|
89
|
+
"priority": null,
|
90
|
+
"status": "open",
|
91
|
+
"recipient": null,
|
92
|
+
"requester_id": 374673563333,
|
93
|
+
"submitter_id": 374673563333,
|
94
|
+
"assignee_id": 374673563333,
|
95
|
+
"organization_id": 360857467053,
|
96
|
+
"group_id": 360003235353,
|
97
|
+
"collaborator_ids": [],
|
98
|
+
"follower_ids": [],
|
99
|
+
"email_cc_ids": [],
|
100
|
+
"forum_topic_id": null,
|
101
|
+
"problem_id": null,
|
102
|
+
"has_incidents": false,
|
103
|
+
"is_public": true,
|
104
|
+
"due_at": null,
|
105
|
+
"tags": [],
|
106
|
+
"custom_fields": [],
|
107
|
+
"satisfaction_rating": null,
|
108
|
+
"sharing_agreement_ids": [],
|
109
|
+
"fields": [],
|
110
|
+
"followup_ids": [],
|
111
|
+
"brand_id": 360001998013,
|
112
|
+
"allow_channelback": false,
|
113
|
+
"allow_attachments": true,
|
114
|
+
"generated_timestamp": 1550645522
|
115
|
+
},
|
116
|
+
{
|
117
|
+
"url": "https://abc.zendesk.com/api/v2/tickets/4.json",
|
118
|
+
"id": 4,
|
119
|
+
"external_id": null,
|
120
|
+
"via": {
|
121
|
+
"channel": "web",
|
122
|
+
"source": {
|
123
|
+
"from": {},
|
124
|
+
"to": {},
|
125
|
+
"rel": null
|
126
|
+
}
|
127
|
+
},
|
128
|
+
"created_at": "2019-02-20T06:52:12Z",
|
129
|
+
"updated_at": "2019-02-20T06:52:12Z",
|
130
|
+
"type": null,
|
131
|
+
"subject": "ticket3",
|
132
|
+
"raw_subject": "ticket3",
|
133
|
+
"description": "ticket3",
|
134
|
+
"priority": null,
|
135
|
+
"status": "open",
|
136
|
+
"recipient": null,
|
137
|
+
"requester_id": 374673563333,
|
138
|
+
"submitter_id": 374673563333,
|
139
|
+
"assignee_id": 374673563333,
|
140
|
+
"organization_id": 360857467053,
|
141
|
+
"group_id": 360003235353,
|
142
|
+
"collaborator_ids": [],
|
143
|
+
"follower_ids": [],
|
144
|
+
"email_cc_ids": [],
|
145
|
+
"forum_topic_id": null,
|
146
|
+
"problem_id": null,
|
147
|
+
"has_incidents": false,
|
148
|
+
"is_public": true,
|
149
|
+
"due_at": null,
|
150
|
+
"tags": [],
|
151
|
+
"custom_fields": [],
|
152
|
+
"satisfaction_rating": null,
|
153
|
+
"sharing_agreement_ids": [],
|
154
|
+
"fields": [],
|
155
|
+
"followup_ids": [],
|
156
|
+
"brand_id": 360001998013,
|
157
|
+
"allow_channelback": false,
|
158
|
+
"allow_attachments": true,
|
159
|
+
"generated_timestamp": 1550645532
|
160
|
+
},
|
161
|
+
{
|
162
|
+
"url": "https://abc.zendesk.com/api/v2/tickets/1002.json",
|
163
|
+
"id": 1002,
|
164
|
+
"external_id": null,
|
165
|
+
"via": {
|
166
|
+
"channel": "api",
|
167
|
+
"source": {
|
168
|
+
"from": {},
|
169
|
+
"to": {},
|
170
|
+
"rel": null
|
171
|
+
}
|
172
|
+
},
|
173
|
+
"created_at": "2019-02-20T07:17:33Z",
|
174
|
+
"updated_at": "2019-02-20T07:17:33Z",
|
175
|
+
"type": null,
|
176
|
+
"subject": "Help!",
|
177
|
+
"raw_subject": "Help!",
|
178
|
+
"description": "Help I need somebody.",
|
179
|
+
"priority": null,
|
180
|
+
"status": "open",
|
181
|
+
"recipient": null,
|
182
|
+
"requester_id": 374673563333,
|
183
|
+
"submitter_id": 374673563333,
|
184
|
+
"assignee_id": 374673563333,
|
185
|
+
"organization_id": 360857467053,
|
186
|
+
"group_id": 360003235353,
|
187
|
+
"collaborator_ids": [],
|
188
|
+
"follower_ids": [],
|
189
|
+
"email_cc_ids": [],
|
190
|
+
"forum_topic_id": null,
|
191
|
+
"problem_id": null,
|
192
|
+
"has_incidents": false,
|
193
|
+
"is_public": true,
|
194
|
+
"due_at": null,
|
195
|
+
"tags": [],
|
196
|
+
"custom_fields": [],
|
197
|
+
"satisfaction_rating": null,
|
198
|
+
"sharing_agreement_ids": [],
|
199
|
+
"fields": [],
|
200
|
+
"followup_ids": [],
|
201
|
+
"brand_id": 360001998013,
|
202
|
+
"allow_channelback": false,
|
203
|
+
"allow_attachments": true,
|
204
|
+
"generated_timestamp": 1550647053
|
205
|
+
},
|
206
|
+
{
|
207
|
+
"url": "https://abc.zendesk.com/api/v2/tickets/1002.json",
|
208
|
+
"id": 1002,
|
209
|
+
"external_id": null,
|
210
|
+
"via": {
|
211
|
+
"channel": "api",
|
212
|
+
"source": {
|
213
|
+
"from": {},
|
214
|
+
"to": {},
|
215
|
+
"rel": null
|
216
|
+
}
|
217
|
+
},
|
218
|
+
"created_at": "2019-02-20T07:17:33Z",
|
219
|
+
"updated_at": "2019-02-20T07:17:33Z",
|
220
|
+
"type": null,
|
221
|
+
"subject": "Help!",
|
222
|
+
"raw_subject": "Help!",
|
223
|
+
"description": "Help I need somebody.",
|
224
|
+
"priority": null,
|
225
|
+
"status": "open",
|
226
|
+
"recipient": null,
|
227
|
+
"requester_id": 374673563333,
|
228
|
+
"submitter_id": 374673563333,
|
229
|
+
"assignee_id": 374673563333,
|
230
|
+
"organization_id": 360857467053,
|
231
|
+
"group_id": 360003235353,
|
232
|
+
"collaborator_ids": [],
|
233
|
+
"follower_ids": [],
|
234
|
+
"email_cc_ids": [],
|
235
|
+
"forum_topic_id": null,
|
236
|
+
"problem_id": null,
|
237
|
+
"has_incidents": false,
|
238
|
+
"is_public": true,
|
239
|
+
"due_at": null,
|
240
|
+
"tags": [],
|
241
|
+
"custom_fields": [],
|
242
|
+
"satisfaction_rating": null,
|
243
|
+
"sharing_agreement_ids": [],
|
244
|
+
"fields": [],
|
245
|
+
"followup_ids": [],
|
246
|
+
"brand_id": 360001998013,
|
247
|
+
"allow_channelback": false,
|
248
|
+
"allow_attachments": true,
|
249
|
+
"generated_timestamp": 1550647053
|
250
|
+
}
|
251
|
+
],
|
252
|
+
"count": 999,
|
253
|
+
"next_page": "https://abc.zendesk.com/api/v2/incremental/tickets.json?sort_by=updated_at&start_time=1550647053",
|
254
|
+
"end_time": 1550647053
|
255
|
+
}
|
256
|
+
},
|
257
|
+
"doGet404": {
|
258
|
+
"statusCode": 404,
|
259
|
+
"description": "dummy text"
|
260
|
+
},
|
261
|
+
"doGet405": {
|
262
|
+
"statusCode": 405,
|
263
|
+
"description": "dummy text"
|
264
|
+
},
|
265
|
+
"doGet409": {
|
266
|
+
"statusCode": 409,
|
267
|
+
"description": "dummy text"
|
268
|
+
},
|
269
|
+
"doGet422NotContainTooRecentStartTime": {
|
270
|
+
"statusCode": 422,
|
271
|
+
"description": "dummy text"
|
272
|
+
},
|
273
|
+
"doGet422ContainTooRecentStartTime": {
|
274
|
+
"statusCode": 422,
|
275
|
+
"description": "dummy text"
|
276
|
+
},
|
277
|
+
"doGet429": {
|
278
|
+
"statusCode": 429,
|
279
|
+
"description": "Number of allowed incremental export API requests per minute exceeded"
|
280
|
+
},
|
281
|
+
"doGet500": {
|
282
|
+
"statusCode": 500,
|
283
|
+
"description": "dummy text"
|
284
|
+
},
|
285
|
+
"doGet502": {
|
286
|
+
"statusCode": 502,
|
287
|
+
"description": "dummy text"
|
288
|
+
},
|
289
|
+
"doGet503": {
|
290
|
+
"statusCode": 503,
|
291
|
+
"description": "dummy text"
|
292
|
+
}
|
293
|
+
}
|