We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e2d407d commit fd09a87Copy full SHA for fd09a87
src/intTest/java/com/box/sdk/BoxWebHookIT.java
@@ -207,6 +207,17 @@ public void createWebHookSignRequestOnFolderSucceeds() throws IOException {
207
}
208
209
210
+ @Test
211
+ public void listAllWebhooks() throws IOException {
212
+ BoxAPIConnection api = jwtApiForServiceAccount();
213
+ Iterable<BoxWebHook.Info> webhooks = BoxWebHook.all(api);
214
+ for (BoxWebHook.Info info : webhooks) {
215
+ System.out.println("WebHook ID: " + info.getID());
216
+ }
217
+
218
+ throw new BoxAPIException("Just for test for test");
219
220
221
private <T> Set<T> toSet(T[] values) {
222
return new HashSet<>(Arrays.asList(values));
223
0 commit comments