Skip to content

Commit

Permalink
Change to maven
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcos Gómez committed Jun 20, 2017
1 parent 1e7075e commit cc0d608
Show file tree
Hide file tree
Showing 21 changed files with 114 additions and 285 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.idea
21 changes: 0 additions & 21 deletions LICENSE

This file was deleted.

55 changes: 0 additions & 55 deletions Readme.md

This file was deleted.

69 changes: 0 additions & 69 deletions api/.gitignore

This file was deleted.

38 changes: 0 additions & 38 deletions api/instasent-java-lib.iml

This file was deleted.

90 changes: 0 additions & 90 deletions api/module_instasent-java-lib.xml

This file was deleted.

2 changes: 1 addition & 1 deletion examples/Account/GetAccountBalance.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
public class GetAccountBalance {

public static void main(String[] args) throws IOException {
InstasentClient instasentClient = new InstasentClient("my-token", true);
InstasentClient instasentClient = new InstasentClient("my-token");
Map<String, String> response = instasentClient.getAccountBalance();
System.out.println(response);
}
Expand Down
2 changes: 1 addition & 1 deletion examples/Lookup/DoLookup.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
public class DoLookup {

public static void main(String[] args) throws IOException {
InstasentClient instasentClient = new InstasentClient("id", true);
InstasentClient instasentClient = new InstasentClient("id");
Map<String, String> response = instasentClient.doLookup("+34666666666");
System.out.println(response);
}
Expand Down
2 changes: 1 addition & 1 deletion examples/Lookup/GetLookup.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
public class GetLookup {

public static void main(String[] args) throws IOException {
InstasentClient instasentClient = new InstasentClient("my-token", true);
InstasentClient instasentClient = new InstasentClient("my-token");
Map<String, String> response = instasentClient.getLookups(1, 10);
System.out.println(response);
}
Expand Down
2 changes: 1 addition & 1 deletion examples/Lookup/GetLookupById.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
public class GetLookupById {

public static void main(String[] args) throws IOException {
InstasentClient instasentClient = new InstasentClient("my-token", true);
InstasentClient instasentClient = new InstasentClient("my-token");
Map<String, String> response = instasentClient.getLookupById("id");
System.out.println(response);
}
Expand Down
2 changes: 1 addition & 1 deletion examples/Sms/GetSms.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ public class GetSms {

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

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

Expand Down
2 changes: 1 addition & 1 deletion examples/Sms/GetSmsById.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ public class getSmsById {

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

InstasentClient instasentClient = new InstasentClient("my-token", true);
InstasentClient instasentClient = new InstasentClient("my-token");
Map<String, String> response = instasentClient.getSmsById("message-id");
System.out.println(response);

Expand Down
2 changes: 1 addition & 1 deletion examples/Sms/SendSms.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ public class SendSms {

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

InstasentClient instasentClient = new InstasentClient("my-token", true);
InstasentClient instasentClient = new InstasentClient("my-token");
Map<String, String> response = instasentClient.sendSms( "My company", "+34666666666", "test message");
System.out.println(response);

Expand Down
15 changes: 15 additions & 0 deletions examples/Sms/SendUnicodeSms.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import java.io.IOException;
import java.util.Map;
import com.instasent.InstasentClient;

public class SendUnicodeSms {

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

InstasentClient instasentClient = new InstasentClient("my-token");
Map<String, String> response = instasentClient.sendUnicodeSms( "My company", "+34666666666", "test message");
System.out.println(response);

}

}
2 changes: 1 addition & 1 deletion examples/Verify/CheckVerify.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
public class CheckVerify {

public static void main(String[] args) throws IOException {
InstasentClient instasentClient = new InstasentClient("my-token", true);
InstasentClient instasentClient = new InstasentClient("my-token");
Map<String, String> response = instasentClient.checkVerify("id", "token");
System.out.println(response);
}
Expand Down
2 changes: 1 addition & 1 deletion examples/Verify/GetVerify.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
public class GetVerify {

public static void main(String[] args) throws IOException {
InstasentClient instasentClient = new InstasentClient("my-token", true);
InstasentClient instasentClient = new InstasentClient("my-token");
Map<String, String> response = instasentClient.getVerify(1, 10);
System.out.println(response);
}
Expand Down
2 changes: 1 addition & 1 deletion examples/Verify/GetVerifyById.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
public class GetVerifyById {

public static void main(String[] args) throws IOException {
InstasentClient instasentClient = new InstasentClient("my-token", true);
InstasentClient instasentClient = new InstasentClient("my-token");
Map<String, String> response = instasentClient.getVerifyById("id");
System.out.println(response);
}
Expand Down
2 changes: 1 addition & 1 deletion examples/Verify/RequestVerify.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
public class RequestVerify {

public static void main(String[] args) throws IOException {
InstasentClient instasentClient = new InstasentClient("my-token", true);
InstasentClient instasentClient = new InstasentClient("my-token");
Map<String, String> response = instasentClient.requestVerify("my-company", "+34666666666", "Your code is %token%", "", "", "");
System.out.println(response);
}
Expand Down
Loading

0 comments on commit cc0d608

Please sign in to comment.