Skip to content

Commit a2d700c

Browse files
committed
test commit
1 parent 002234c commit a2d700c

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

src/main/java/test.java

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
import com.twilio.Twilio;
2+
import com.twilio.base.ResourceSet;
3+
import com.twilio.rest.monitor.v1.Alert;
4+
5+
public class test {
6+
public static void main(String[] args) {
7+
Twilio.init("AC8d360ef83f8fe480d2793bd631d8bd23f", "ad27baa92de98ce21a873d606fd36c");
8+
ResourceSet<Alert> alerts = Alert.reader().limit(5).read();
9+
10+
System.out.println("Before first loop:");
11+
for(Alert record : alerts) {
12+
System.out.println(" First loop - " + record.getSid());
13+
}
14+
15+
System.out.println("Before second loop:");
16+
for(Alert record : alerts) {
17+
System.out.println(" Second loop - " + record.getSid());
18+
}
19+
System.out.println("After second loop");
20+
}
21+
}

0 commit comments

Comments
 (0)