Browse Source

New Domain

pull/19/head
isra el 2 years ago
parent
commit
4b296f8067
  1. 10
      README.md
  2. 4
      android/app/src/main/java/com/vernu/sms/activities/MainActivity.java
  3. 2
      android/app/src/main/res/layout/activity_main.xml
  4. 2
      web/.env.example
  5. 4
      web/components/landing/howItWorksContent.ts

10
README.md

@ -5,16 +5,16 @@ from their application via a REST API. It utilizes android phones as SMS gateway
- **Technology stack**: React, Next.js, Node.js, NestJs, MongoDB, Android, Java - **Technology stack**: React, Next.js, Node.js, NestJs, MongoDB, Android, Java
- **Status**: MVP in development, not ready for production use yet - **Status**: MVP in development, not ready for production use yet
- **Link**: [https://textbee.vernu.dev](https://textbee.vernu.dev/)
- **Link**: [https://textbee.dev](https://textbee.dev/)
![](https://ik.imagekit.io/vernu/textbee/texbee-landing-light.png?updatedAt=1687076964687) ![](https://ik.imagekit.io/vernu/textbee/texbee-landing-light.png?updatedAt=1687076964687)
## Usage ## Usage
1. Go to [textbee.vernu.dev](https://textbee.vernu.dev) and register or login with your account
2. Install the app on your android phone from [textbee.vernu.dev/android](https://textbee.vernu.dev/android)
1. Go to [textbee.dev](https://textbee.dev) and register or login with your account
2. Install the app on your android phone from [textbee.dev/android](https://textbee.dev/android)
3. Open the app and grant the permissions for SMS 3. Open the app and grant the permissions for SMS
4. Go to [textbee.vernu.dev/dashboard](https://textbee.vernu.dev/dashboard) and click register device/ generate API Key
4. Go to [textbee.dev/dashboard](https://textbee.dev/dashboard) and click register device/ generate API Key
5. Scan the QR code with the app or enter the API key manually 5. Scan the QR code with the app or enter the API key manually
6. You are ready to send SMS messages from the dashboard or from your application via the REST API 6. You are ready to send SMS messages from the dashboard or from your application via the REST API
@ -24,7 +24,7 @@ from their application via a REST API. It utilizes android phones as SMS gateway
const API_KEY = 'YOUR_API_KEY'; const API_KEY = 'YOUR_API_KEY';
const DEVICE_ID = 'YOUR_DEVICE_ID'; const DEVICE_ID = 'YOUR_DEVICE_ID';
await axios.post(`https://api.textbee.vernu.dev/api/v1/gateway/devices/${DEVICE_ID}/sendSMS?apiKey=${API_KEY}`, {
await axios.post(`https://api.textbee.dev/api/v1/gateway/devices/${DEVICE_ID}/sendSMS?apiKey=${API_KEY}`, {
receivers: [ '+251912345678' ], receivers: [ '+251912345678' ],
smsBody: 'Hello World!', smsBody: 'Hello World!',
}) })

4
android/app/src/main/java/com/vernu/sms/activities/MainActivity.java

@ -62,7 +62,7 @@ public class MainActivity extends AppCompatActivity {
private static final int SEND_SMS_PERMISSION_REQUEST_CODE = 0; private static final int SEND_SMS_PERMISSION_REQUEST_CODE = 0;
private static final int SCAN_QR_REQUEST_CODE = 49374; private static final int SCAN_QR_REQUEST_CODE = 49374;
private static final String API_BASE_URL = "https://api.textbee.vernu.dev/api/v1/";
private static final String API_BASE_URL = "https://api.textbee.dev/api/v1/";
private String deviceId = null; private String deviceId = null;
@ -178,7 +178,7 @@ public class MainActivity extends AppCompatActivity {
scanQRBtn.setOnClickListener(view -> { scanQRBtn.setOnClickListener(view -> {
IntentIntegrator intentIntegrator = new IntentIntegrator(MainActivity.this); IntentIntegrator intentIntegrator = new IntentIntegrator(MainActivity.this);
intentIntegrator.setPrompt("Go to textbee.vernu.dev/dashboard and click Register Device to generate QR Code");
intentIntegrator.setPrompt("Go to textbee.dev/dashboard and click Register Device to generate QR Code");
intentIntegrator.setRequestCode(SCAN_QR_REQUEST_CODE); intentIntegrator.setRequestCode(SCAN_QR_REQUEST_CODE);
intentIntegrator.initiateScan(); intentIntegrator.initiateScan();
}); });

2
android/app/src/main/res/layout/activity_main.xml

@ -27,7 +27,7 @@
<TextView <TextView
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="Go to textbee.vernu.dev/dashboard and click register device, then copy and paste the api key generated or scan the QR code" />
android:text="Go to textbee.dev/dashboard and click register device, then copy and paste the api key generated or scan the QR code" />
<Button <Button
android:id="@+id/grantSMSPermissionBtn" android:id="@+id/grantSMSPermissionBtn"

2
web/.env.example

@ -1,2 +1,2 @@
NEXT_PUBLIC_API_BASE_URL=https://api.textbee.vernu.dev/api/v1
NEXT_PUBLIC_API_BASE_URL=https://api.textbee.dev/api/v1
NEXT_PUBLIC_GOOGLE_CLIENT_ID= NEXT_PUBLIC_GOOGLE_CLIENT_ID=

4
web/components/landing/howItWorksContent.ts

@ -1,6 +1,6 @@
export const howItWorksContent = [ export const howItWorksContent = [
{ {
title: 'Step 1: Download The Android App from textbee.vernu.dev/android',
title: 'Step 1: Download The Android App from textbee.dev/android',
description: description:
'', '',
}, },
@ -18,6 +18,6 @@ export const howItWorksContent = [
{ {
title: 'Step 4: Start sending', title: 'Step 4: Start sending',
description: description:
'You can now send SMS from the dashboard. or visit the API docs at https://api.textbee.vernu.dev to send SMS programatically',
'You can now send SMS from the dashboard. or visit the API docs at https://api.textbee.dev to send SMS programatically',
}, },
] ]
Loading…
Cancel
Save