forked from lob/lob-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSettingTests.java
More file actions
28 lines (23 loc) · 785 Bytes
/
Copy pathSettingTests.java
File metadata and controls
28 lines (23 loc) · 785 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import com.lob.Lob;
import com.lob.exception.LobException;
import com.lob.model.Setting;
import com.lob.model.SettingCollection;
public class SettingTests {
public static void main(String[] args) {
Lob.apiKey = "test_0dc8d51e0acffcb1880e0f19c79b2f5b0cc:";
String id = "100";
try {
Setting s1 = Setting.retrieve(id, Lob.apiKey);
System.out.println(s1);
SettingCollection ac = Setting.all(Lob.apiKey);
System.out.println(ac);
} catch (LobException e) {
System.out.println(e.getMessage());
e.printStackTrace();
}
catch (Exception e) {
System.out.println(e.getMessage());
e.printStackTrace();
}
}
}