Skip to content
This repository has been archived by the owner on Nov 26, 2020. It is now read-only.

Commit

Permalink
base url change
Browse files Browse the repository at this point in the history
  • Loading branch information
dkgupta2501 committed May 8, 2018
1 parent a1a3313 commit e63848b
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 3 deletions.
Binary file modified .idea/caches/build_file_checksums.ser
Binary file not shown.
1 change: 1 addition & 0 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,5 @@ dependencies {
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
implementation 'com.github.mobtexting:voice-android:a1a3313b6c'
}
5 changes: 4 additions & 1 deletion app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.mobtexting">

<uses-permission android:name="android.permission.INTERNET"/>
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<meta-data
android:name="mobtexting.api_key"
android:value="@string/mobtextingapikey" />
<activity android:name=".MainActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
Expand Down
20 changes: 19 additions & 1 deletion app/src/main/java/com/mobtexting/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,30 @@

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;

public class MainActivity extends AppCompatActivity {
import mobtexting.com.voiceandroid.Mobtexting;
import mobtexting.com.voiceandroid.MobtextingInterface;
import mobtexting.com.voiceandroid.ServerResponse;

public class MainActivity extends AppCompatActivity implements MobtextingInterface{
private Mobtexting mobtexting;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);

mobtexting=new Mobtexting(this);
mobtexting.clickToCall("8033931750","8553007070","7250705072",this);
}

@Override
public void onResponse(ServerResponse serverResponse) {
Log.d("success",serverResponse.getResponseCode()+"");
}

@Override
public void onError(ServerResponse serverResponse) {
Log.d("failure",serverResponse.getResponseCode()+" "+serverResponse.getMessage());
}
}
1 change: 1 addition & 0 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<resources>
<string name="app_name">voicesdkandroid</string>
<string name="mobtextingapikey">sdsadasdasdasdasdasd</string>
</resources>
1 change: 1 addition & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ allprojects {
repositories {
google()
jcenter()
maven { url 'https://jitpack.io' }
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

public interface Interface {
@FormUrlEncoded
@POST("/v1/sms/")
@POST("/api.v1/json/")
Call<ServerResponse> post(
@Field("api_key") String api_key,
@Field("method") String method,
Expand Down

0 comments on commit e63848b

Please sign in to comment.