File tree Expand file tree Collapse file tree 4 files changed +10
-10
lines changed
src/test/java/org/zendesk/client/v2 Expand file tree Collapse file tree 4 files changed +10
-10
lines changed Original file line number Diff line number Diff line change 1
- ZenDesk Java Client
1
+ Zendesk Java Client
2
2
===================
3
3
4
- This is a ZenDesk client implementation written in Java using AsyncHttpClient and Jackson.
4
+ This is a Zendesk client implementation written in Java using AsyncHttpClient and Jackson.
5
5
6
6
Using the API
7
7
-------------
8
8
9
- Start by creating a ` ZenDesk ` instance
9
+ Start by creating a ` Zendesk ` instance
10
10
11
- ZenDesk zd = new ZenDesk .Builder("https://{{your domain}}.zendesk.com")
11
+ Zendesk zd = new Zendesk .Builder("https://{{your domain}}.zendesk.com")
12
12
.setUsername("...")
13
13
.setToken("...") // or .setPassword("...")
14
14
.build();
15
15
16
16
If you are behind a proxy, or want to otherwise control the lifecycle of the ` AsyncHttpClient ` instance
17
17
you should pass that through to the builder too. If you don't pass an ` AsyncHttpClient ` instance to the builder
18
- it will create its own which will be closed by the ` ZenDesk .close()` method.
18
+ it will create its own which will be closed by the ` Zendesk .close()` method.
19
19
20
20
Where methods return paged data sets, an ` Iterable ` is returned that will lazy-fetch one page at a time until
21
21
all records have been fetched, so e.g.
Original file line number Diff line number Diff line change 28
28
<version >0.1.1-SNAPSHOT</version >
29
29
30
30
<name >zendesk-java-client</name >
31
- <description >Java client for the ZenDesk API</description >
31
+ <description >Java client for the Zendesk API</description >
32
32
<url >https://github.com/cloudbees/zendesk-java-client</url >
33
33
<inceptionYear >2013</inceptionYear >
34
34
<licenses >
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ public class RealSmokeTest {
37
37
38
38
@ BeforeClass
39
39
public static void loadConfig () {
40
- config = ZenDeskConfig .load ();
40
+ config = ZendeskConfig .load ();
41
41
assumeThat ("We have a configuration" , config , notNullValue ());
42
42
assertThat ("Configuration has an url" , config .getProperty ("url" ), notNullValue ());
43
43
}
Original file line number Diff line number Diff line change 8
8
* @author stephenc
9
9
* @since 04/04/2013 13:53
10
10
*/
11
- public final class ZenDeskConfig {
12
- private ZenDeskConfig () {
11
+ public final class Zendesk_Config {
12
+ private Zendesk_Config () {
13
13
throw new IllegalAccessError ("utility class" );
14
14
}
15
15
16
16
public static Properties load () {
17
- InputStream is = ZenDeskConfig .class .getResourceAsStream ("/zendesk.properties" );
17
+ InputStream is = Zendesk_Config .class .getResourceAsStream ("/zendesk.properties" );
18
18
if (is == null ) {
19
19
return null ;
20
20
}
You can’t perform that action at this time.
0 commit comments