Skip to content

Commit ea60110

Browse files
committed
base url added
1 parent c3e6033 commit ea60110

5 files changed

Lines changed: 5 additions & 5 deletions

File tree

0 Bytes
Binary file not shown.

app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,6 @@ dependencies {
2727
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
2828
//networking volley library
2929
implementation 'com.android.volley:volley:1.1.0'
30-
implementation 'com.github.mobtexting:mobtexting-android-sdk:a4c81ad31a'
30+
implementation 'com.github.mobtexting:mobtexting-android-sdk:c3e6033d76'
3131
implementation 'com.msg91.sendotp.library:library:3.1'
3232
}

app/src/main/java/com/mobtexting/sms/MainActivity.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ protected void onCreate(Bundle savedInstanceState) {
1919
setContentView(R.layout.activity_main);
2020

2121
communicator=new Communicator();
22-
communicator.loginPost("test","123");
22+
communicator.loginPost("sdfsdfsfsdfsdf","dsfsdfsdf","7250705072","MOBTXT");
2323
}
2424

2525
@Subscribe

mobtextingsms/src/main/java/com/mobtexting/Communicator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
public class Communicator {
1818
private static final String TAG = "Communicator";
19-
private static final String SERVER_URL = "http://api.mobtexting.com/v1/sms";
19+
private static final String SERVER_URL = "http://api.mobtexting.com";
2020

2121
public void loginPost(String apikey, String message,String mobile_no,String senderId){
2222

mobtextingsms/src/main/java/com/mobtexting/Interface.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@
1010
public interface Interface {
1111

1212
@FormUrlEncoded
13-
@POST("/sp/index.php")
13+
@POST("/v1/sms")
1414
Call<ServerResponse> post(
1515
@Field("api_key") String method,
1616
@Field("message") String username,
1717
@Field("mobile_no") String password,
1818
@Field("sender_id") String sender_id
1919
);
2020

21-
@GET("/sp/index.php")
21+
@GET("/v1/sms")
2222
Call<ServerResponse> get(
2323
@Query("method") String method,
2424
@Query("username") String username,

0 commit comments

Comments
 (0)