Skip to content

Commit 4626550

Browse files
committed
Add Verify, Lookup and Account functions
1 parent c31d692 commit 4626550

12 files changed

Lines changed: 129 additions & 4 deletions

Readme.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,30 @@ public class main {
2121
```
2222
## Available functions
2323
```
24+
SMS
25+
2426
instasentClient.sendSms(sender, to, text, callback);
2527
instasentClient.getSms(page, per_page)
2628
instasentClient.getSmsById(message_id)
29+
30+
Verify
31+
32+
instasentClient.requestVerify(from, to, text, token_length, timeout, client_id);
33+
instasentClient.getVerify(page, per_page)
34+
instasentClient.getVerifyById(message_id)
35+
instasentClient.checkVerify(id, token)
36+
37+
Lookup
38+
39+
instasentClient.doLookup(to;
40+
instasentClient.getLookups(page, per_page)
41+
instasentClient.getLookupById(message_id)
42+
43+
Account
44+
45+
instasentClient.getAccountBalance();
46+
47+
2748
```
2849
## Documentation
2950
Complete documentation at :
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import com.instasent.InstasentClient;
2+
import java.io.IOException;
3+
import java.util.Map;
4+
5+
public class GetAccountBalance {
6+
7+
public static void main(String[] args) throws IOException {
8+
InstasentClient instasentClient = new InstasentClient("my-token", true);
9+
Map<String, String> response = instasentClient.getAccountBalance();
10+
System.out.println(response);
11+
}
12+
13+
}

examples/Lookup/DoLookup.java

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import com.instasent.InstasentClient;
2+
import java.io.IOException;
3+
import java.util.Map;
4+
5+
public class DoLookup {
6+
7+
public static void main(String[] args) throws IOException {
8+
InstasentClient instasentClient = new InstasentClient("id", true);
9+
Map<String, String> response = instasentClient.doLookup("+34666666666");
10+
System.out.println(response);
11+
}
12+
13+
}

examples/Lookup/GetLookup.java

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import com.instasent.InstasentClient;
2+
import java.io.IOException;
3+
import java.util.Map;
4+
5+
public class GetLookup {
6+
7+
public static void main(String[] args) throws IOException {
8+
InstasentClient instasentClient = new InstasentClient("my-token", true);
9+
Map<String, String> response = instasentClient.getLookups(1, 10);
10+
System.out.println(response);
11+
}
12+
13+
}

examples/Lookup/GetLookupById.java

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import com.instasent.InstasentClient;
2+
import java.io.IOException;
3+
import java.util.Map;
4+
5+
public class GetLookupById {
6+
7+
public static void main(String[] args) throws IOException {
8+
InstasentClient instasentClient = new InstasentClient("my-token", true);
9+
Map<String, String> response = instasentClient.getLookupById("id");
10+
System.out.println(response);
11+
}
12+
13+
}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
import java.util.Map;
33
import com.instasent.InstasentClient;
44

5-
public class ExampleSendSms {
5+
public class GetSms {
66

77
public static void main(String[] args) throws IOException {
88

99
InstasentClient instasentClient = new InstasentClient("my-token", true);
10-
Map<String, String> response = instasentClient.getSms( 1, 10);
10+
Map<String, String> response = instasentClient.getSms( 1, 10);
1111
System.out.println(response);
1212

1313
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import java.util.Map;
33
import com.instasent.InstasentClient;
44

5-
public class ExampleSendSms {
5+
public class getSmsById {
66

77
public static void main(String[] args) throws IOException {
88

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import java.util.Map;
33
import com.instasent.InstasentClient;
44

5-
public class ExampleSendSms {
5+
public class SendSms {
66

77
public static void main(String[] args) throws IOException {
88

examples/Verify/CheckVerify.java

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import com.instasent.InstasentClient;
2+
import java.io.IOException;
3+
import java.util.Map;
4+
5+
public class CheckVerify {
6+
7+
public static void main(String[] args) throws IOException {
8+
InstasentClient instasentClient = new InstasentClient("my-token", true);
9+
Map<String, String> response = instasentClient.checkVerify("id", "token");
10+
System.out.println(response);
11+
}
12+
13+
}

examples/Verify/GetVerify.java

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import com.instasent.InstasentClient;
2+
import java.io.IOException;
3+
import java.util.Map;
4+
5+
public class GetVerify {
6+
7+
public static void main(String[] args) throws IOException {
8+
InstasentClient instasentClient = new InstasentClient("my-token", true);
9+
Map<String, String> response = instasentClient.getVerify(1, 10);
10+
System.out.println(response);
11+
}
12+
13+
}

0 commit comments

Comments
 (0)