Skip to content

Send and receive SMS messages using your Android phone programmatically via a simple HTTP API

Fix all other pages except login

Acho Arnoldd18be8d65906
diff --git a/web/app/components/BackButton.vue b/web/app/components/BackButton.vue
index 67994ff9..83530da1 100644
--- a/web/app/components/BackButton.vue
+++ b/web/app/components/BackButton.vue
@@ -31,7 +31,7 @@ function goBack() {
<template>
<v-btn
- color="default"
+ variant="tonal"
:size="smAndDown ? 'small' : 'default'"
:block="block"
@click="goBack"
diff --git a/web/app/components/BlogAuthorBio.vue b/web/app/components/BlogAuthorBio.vue
index fdcb5b7f..4b1e2b25 100644
--- a/web/app/components/BlogAuthorBio.vue
+++ b/web/app/components/BlogAuthorBio.vue
@@ -5,7 +5,7 @@ import { mdiTwitter, mdiGithub } from "@mdi/js";
<template>
<div class="d-flex mb-6 mt-8">
<v-avatar image="/img/arnold.png" />
- <div class="ml-2">
+ <div class="ml-2 mt-n7">
<p class="text-title-large mb-n1">Acho Arnold</p>
<a
class="mb-n4 text-decoration-none text-on-surface"
diff --git a/web/app/components/BlogSidebar.vue b/web/app/components/BlogSidebar.vue
new file mode 100644
index 00000000..fb74f1fa
--- /dev/null
+++ b/web/app/components/BlogSidebar.vue
@@ -0,0 +1,29 @@
+<script setup lang="ts">
+import { mdiBookOpenVariant } from "@mdi/js";
+
+const appStore = useAppStore();
+</script>
+
+<template>
+ <div>
+ <NuxtLink to="/" class="text-decoration-none d-flex align-center">
+ <VAvatar color="#121212" class="pa-1" size="36" rounded="0">
+ <VImg height="33" width="33" :src="'/img/logo.svg'" />
+ </VAvatar>
+ <h3 class="text-headline-large ml-1 mb-3 mt-3 text-white">httpSMS</h3>
+ </NuxtLink>
+ <p class="mt-0">
+ httpSMS is an
+ <a
+ class="text-decoration-none"
+ href="https://github.com/NdoleStudio/httpsms"
+ >open source</a>
+ application that converts your android phone into an SMS gateway so you
+ can send and receive SMS messages using a simple HTTP API.
+ </p>
+ <VBtn variant="tonal" :href="appStore.appData.documentationUrl">
+ <VIcon start :icon="mdiBookOpenVariant" />
+ Documentation
+ </VBtn>
+ </div>
+</template>
diff --git a/web/app/pages/blog/end-to-end-encryption-to-sms-messages.vue b/web/app/pages/blog/end-to-end-encryption-to-sms-messages.vue
index 1df1b172..f9840961 100644
--- a/web/app/pages/blog/end-to-end-encryption-to-sms-messages.vue
+++ b/web/app/pages/blog/end-to-end-encryption-to-sms-messages.vue
@@ -115,7 +115,7 @@ useHead({
<VTabsWindow v-model="encryptTab">
<VTabsWindowItem value="javascript">
<pre
- class="pa-4 mb-6 rounded bg-surface-variant overflow-x-auto"
+ class="pa-4 mb-6 rounded bg-surface overflow-x-auto"
><code class="language-javascript text-body-medium">import HttpSms from "httpsms"
const client = new HttpSms("" /* API Key from https://httpsms.com/settings */);
@@ -129,7 +129,7 @@ const encryptedMessage = client.cipher.encrypt(key, "This is a sample text messa
</VTabsWindowItem>
<VTabsWindowItem value="go">
<pre
- class="pa-4 mb-6 rounded bg-surface-variant overflow-x-auto"
+ class="pa-4 mb-6 rounded bg-surface overflow-x-auto"
><code class="language-go text-body-medium">import "github.com/NdoleStudio/httpsms-go"
client := htpsms.New(htpsms.WithAPIKey(""/* API Key from https://httpsms.com/settings */))
@@ -164,7 +164,7 @@ encryptedMessage := client.Cipher.Encrypt(key, "This is a test text message")
<VTabsWindow v-model="sendTab">
<VTabsWindowItem value="javascript">
<pre
- class="pa-4 mb-6 rounded bg-surface-variant overflow-x-auto"
+ class="pa-4 mb-6 rounded bg-surface overflow-x-auto"
><code class="language-javascript text-body-medium">import HttpSms from "httpsms"
client.messages.postSend({
@@ -179,7 +179,7 @@ client.messages.postSend({
</VTabsWindowItem>
<VTabsWindowItem value="go">
<pre
- class="pa-4 mb-6 rounded bg-surface-variant overflow-x-auto"
+ class="pa-4 mb-6 rounded bg-surface overflow-x-auto"
><code class="language-go text-body-medium">import "github.com/NdoleStudio/httpsms-go"
client.Messages.Send(context.Background(), &amp;httpsms.MessageSendParams{
@@ -231,7 +231,7 @@ client.Messages.Send(context.Background(), &amp;httpsms.MessageSendParams{
<VTabsWindow v-model="receiveTab">
<VTabsWindowItem value="javascript">
<pre
- class="pa-4 mb-6 rounded bg-surface-variant overflow-x-auto"
+ class="pa-4 mb-6 rounded bg-surface overflow-x-auto"
><code class="language-javascript text-body-medium">import HttpSms from "httpsms"
const client = new HttpSms("" /* API Key from https://httpsms.com/settings */);
@@ -266,7 +266,7 @@ const decryptedMessage = client.cipher.decrypt(encryptionkey, encryptedMessage)
</VTabsWindowItem>
<VTabsWindowItem value="go">
<pre
- class="pa-4 mb-6 rounded bg-surface-variant overflow-x-auto"
+ class="pa-4 mb-6 rounded bg-surface overflow-x-auto"
><code class="language-go text-body-medium">import "github.com/NdoleStudio/httpsms-go"
client := htpsms.New(htpsms.WithAPIKey(/* API Key from https://httpsms.com/settings */))
@@ -315,6 +315,9 @@ decryptedMessage := client.Cipher.Decrypt(encryptionkey, encryptedMessage)
<BackButton />
</div>
</VCol>
+ <VCol v-if="$vuetify.display.mdAndUp" md="3">
+ <BlogSidebar />
+ </VCol>
</VRow>
</VContainer>
</template>
diff --git a/web/app/pages/blog/forward-incoming-sms-from-phone-to-webhook.vue b/web/app/pages/blog/forward-incoming-sms-from-phone-to-webhook.vue
index a51690c3..f94feaf6 100644
--- a/web/app/pages/blog/forward-incoming-sms-from-phone-to-webhook.vue
+++ b/web/app/pages/blog/forward-incoming-sms-from-phone-to-webhook.vue
@@ -137,6 +137,9 @@ useHead({
<BackButton />
</div>
</VCol>
+ <VCol v-if="$vuetify.display.mdAndUp" md="3">
+ <BlogSidebar />
+ </VCol>
</VRow>
</VContainer>
</template>
diff --git a/web/app/pages/blog/grant-send-and-read-sms-permissions-on-android.vue b/web/app/pages/blog/grant-send-and-read-sms-permissions-on-android.vue
index fa9f108f..4d38812e 100644
--- a/web/app/pages/blog/grant-send-and-read-sms-permissions-on-android.vue
+++ b/web/app/pages/blog/grant-send-and-read-sms-permissions-on-android.vue
@@ -49,7 +49,7 @@ useHead({
>.
</p>
- <VAlert type="warning" variant="outlined" class="my-4">
+ <VAlert type="warning" variant="tonal" class="my-4">
Granting the <code>SEND_SMS</code> and
<code>RECEIVE_SMS</code> permissions will allow an Android app to be
able to read and send SMS messages on your phone. Make sure you trust
@@ -111,6 +111,9 @@ useHead({
<BackButton />
</div>
</VCol>
+ <VCol v-if="$vuetify.display.mdAndUp" md="3">
+ <BlogSidebar />
+ </VCol>
</VRow>
</VContainer>
</template>
diff --git a/web/app/pages/blog/how-to-send-sms-messages-from-excel.vue b/web/app/pages/blog/how-to-send-sms-messages-from-excel.vue
index 98a63160..8ff45a7d 100644
--- a/web/app/pages/blog/how-to-send-sms-messages-from-excel.vue
+++ b/web/app/pages/blog/how-to-send-sms-messages-from-excel.vue
@@ -86,7 +86,7 @@ useHead({
which you copied above. This app listens for SMS messages received on
your android phone.
</p>
- <VAlert type="info" variant="outlined">
+ <VAlert type="info" variant="tonal">
Make sure to enter your phone number in the international format e.g
+18005550199 when authenticating with the httpSMS Android app.
</VAlert>
@@ -113,7 +113,7 @@ useHead({
<code>ToPhoneNumber</code> column. Also add the SMS which you want to
send in the message in the <code>Content</code> column.
</p>
- <VAlert type="info" variant="outlined" class="mt-2 mb-4">
+ <VAlert type="info" variant="tonal" class="mt-2 mb-4">
Make sure to use the correct <code>FromPhoneNumber</code> from step 2
above in your Excel file
</VAlert>
@@ -162,6 +162,9 @@ useHead({
<BackButton />
</div>
</VCol>
+ <VCol v-if="$vuetify.display.mdAndUp" md="3">
+ <BlogSidebar />
+ </VCol>
</VRow>
</VContainer>
</template>
diff --git a/web/app/pages/blog/index.vue b/web/app/pages/blog/index.vue
index be551ca1..b57a0267 100644
--- a/web/app/pages/blog/index.vue
+++ b/web/app/pages/blog/index.vue
@@ -1,4 +1,6 @@
<script setup lang="ts">
+const {mdAndUp} = useDisplay();
+
definePageMeta({
layout: "website",
});
@@ -100,39 +102,96 @@ const sortedArticles = computed(() =>
<template>
<VContainer>
<VRow>
- <VCol cols="12" md="8" offset-md="2">
- <h1 class="text-display-small mb-4">Blog</h1>
- <p class="text-body-large mb-8">
- Learn more about httpSMS through our blog!
- </p>
-
- <div class="d-flex flex-column ga-4">
- <NuxtLink
+ <VCol cols="12" md="9">
+ <VRow>
+ <VCol cols="12">
+ <h1 class="text-display-large mb-2">Blog</h1>
+ <h2 class="text-medium-emphasis mt-2 mb-n4 text-title-large font-weight-light">
+ Learn more about httpSMS through our blog!
+ </h2>
+ </VCol>
+ </VRow>
+ <VRow>
+ <VCol
v-for="article in sortedArticles"
:key="article.slug"
- :to="`/blog/${article.slug}`"
- class="text-decoration-none"
+ cols="12"
+ xl="6"
>
- <VCard variant="outlined" class="pa-2">
- <VCardTitle class="text-headline-small text-wrap">{{
- article.title
- }}</VCardTitle>
- <VCardSubtitle class="pt-2">
- <div class="d-flex flex-wrap ga-2 text-body-medium">
- <span>{{ article.date }}</span>
- <span aria-hidden="true">•</span>
- <span>{{ article.author }}</span>
- <span aria-hidden="true">•</span>
- <span>{{ article.readTime }}</span>
- </div>
- </VCardSubtitle>
- <VCardText class="text-body-large">{{
- article.description
- }}</VCardText>
- </VCard>
- </NuxtLink>
- </div>
+ <NuxtLink
+ :to="`/blog/${article.slug}`"
+ class="text-decoration-none"
+ >
+ <VHover v-slot="{ isHovering, props: hoverProps }">
+ <VCard
+ v-bind="hoverProps"
+ :elevation="isHovering ? 8 : 2"
+ :color="isHovering ? 'blue-darken-4' : undefined"
+ class="blog-card"
+ >
+ <VCardTitle class="text-headline-large text-wrap title-clamp">{{
+ article.title
+ }}</VCardTitle>
+ <VCardSubtitle>
+ <span class="text-uppercase text-blue">{{
+ article.date
+ }}</span>
+ •
+ <span class="text-uppercase">{{ article.readTime }}</span>
+ </VCardSubtitle>
+ <VCardText class="mt-n2">
+ <p class="text-title-medium description-clamp">
+ {{ article.description }}
+ </p>
+ </VCardText>
+ </VCard>
+ </VHover>
+ </NuxtLink>
+ </VCol>
+ </VRow>
+ </VCol>
+ <VCol v-if="mdAndUp" md="3" class="pt-6">
+ <BlogSidebar />
</VCol>
</VRow>
</VContainer>
</template>
+
+<style scoped>
+.blog-card {
+ transition: all 0.3s ease;
+}
+
+.title-clamp {
+ display: -webkit-box;
+ -webkit-box-orient: vertical;
+ overflow: hidden;
+}
+
+@media (min-width: 1280px) {
+ .title-clamp {
+ -webkit-line-clamp: 2;
+ height: calc(2.7rem * 2);
+ }
+}
+
+.description-clamp {
+ display: -webkit-box;
+ -webkit-box-orient: vertical;
+ overflow: hidden;
+}
+
+@media (min-width: 1280px) {
+ .description-clamp {
+ -webkit-line-clamp: 3;
+ height: calc(1.5rem * 3);
+ }
+}
+
+@media (min-width: 2560px) {
+ .description-clamp {
+ -webkit-line-clamp: 2;
+ height: calc(1.5rem * 2);
+ }
+}
+</style>
diff --git a/web/app/pages/blog/send-bulk-sms-from-csv-file-with-no-code.vue b/web/app/pages/blog/send-bulk-sms-from-csv-file-with-no-code.vue
index 777e47e8..0c20e81a 100644
--- a/web/app/pages/blog/send-bulk-sms-from-csv-file-with-no-code.vue
+++ b/web/app/pages/blog/send-bulk-sms-from-csv-file-with-no-code.vue
@@ -96,7 +96,7 @@ useHead({
which you copied above. This app listens for SMS messages received on
your android phone.
</p>
- <VAlert type="info" variant="outlined">
+ <VAlert type="info" variant="tonal">
Make sure to enter your phone number in the international format e.g
+18005550199 when authenticating with the httpSMS Android app.
</VAlert>
@@ -124,7 +124,7 @@ useHead({
add the SMS which you want to send in the message in the
<code>Content</code> column.
</p>
- <VAlert type="info" variant="outlined" class="mt-2 mb-4">
+ <VAlert type="info" variant="tonal" class="mt-2 mb-4">
Make sure to use the correct <code>FromPhoneNumber</code> from step 2
above in your CSV file
</VAlert>
@@ -173,6 +173,9 @@ useHead({
<BackButton />
</div>
</VCol>
+ <VCol v-if="$vuetify.display.mdAndUp" md="3">
+ <BlogSidebar />
+ </VCol>
</VRow>
</VContainer>
</template>
diff --git a/web/app/pages/blog/send-sms-from-android-phone-with-python.vue b/web/app/pages/blog/send-sms-from-android-phone-with-python.vue
index e7c36d3a..77b49ad3 100644
--- a/web/app/pages/blog/send-sms-from-android-phone-with-python.vue
+++ b/web/app/pages/blog/send-sms-from-android-phone-with-python.vue
@@ -134,7 +134,7 @@ useHead({
the <code>payload</code> variable.
</VAlert>
<pre
- class="pa-4 mb-6 rounded bg-surface-variant overflow-x-auto"
+ class="pa-4 mb-6 rounded bg-surface overflow-x-auto"
><code class="language-python text-body-medium">import requests
import json
@@ -193,6 +193,9 @@ print(json.dumps(response.json(), indent=4))</code></pre>
<BackButton />
</div>
</VCol>
+ <VCol v-if="$vuetify.display.mdAndUp" md="3">
+ <BlogSidebar />
+ </VCol>
</VRow>
</VContainer>
</template>
diff --git a/web/app/pages/blog/send-sms-when-new-row-is-added-to-google-sheets-using-zapier.vue b/web/app/pages/blog/send-sms-when-new-row-is-added-to-google-sheets-using-zapier.vue
index 418a1216..b80af549 100644
--- a/web/app/pages/blog/send-sms-when-new-row-is-added-to-google-sheets-using-zapier.vue
+++ b/web/app/pages/blog/send-sms-when-new-row-is-added-to-google-sheets-using-zapier.vue
@@ -83,7 +83,7 @@ useHead({
On the Zap, select the <b>Spreadsheet</b> which you have on google
drive and make sure to select the correct <b>Worksheet</b>.
</p>
- <VAlert type="info" variant="outlined">
+ <VAlert type="info" variant="tonal">
In the sample spreadsheet below, we are mimicking an e-commerce store.
The first column contains the name of the customer, the second column
is the name of the product which was bought and the third column is
@@ -124,7 +124,7 @@ useHead({
"from": "+18005550199",
"to": "[ToPhoneNumber]"
}</code></pre>
- <VAlert type="info" variant="outlined" class="mt-4">
+ <VAlert type="info" variant="tonal" class="mt-4">
In the JSON message above, we are mimicking an e-commerce store. The
<code>[Name]</code> variable contains the name of the customer on the
spreadsheet. <code>[Product]</code> contains the name of the product
@@ -179,6 +179,9 @@ useHead({
<BackButton />
</div>
</VCol>
+ <VCol v-if="$vuetify.display.mdAndUp" md="3">
+ <BlogSidebar />
+ </VCol>
</VRow>
</VContainer>
</template>
diff --git a/web/app/pages/privacy-policy/index.vue b/web/app/pages/privacy-policy/index.vue
index 6ee39b6c..9031199b 100644
--- a/web/app/pages/privacy-policy/index.vue
+++ b/web/app/pages/privacy-policy/index.vue
@@ -12,7 +12,7 @@ useHead({
<VContainer>
<VRow>
<VCol cols="12" md="8" offset-md="2">
- <h1 class="text-display-small mb-6">Privacy Policy</h1>
+ <h1 class="text-display-medium mb-2">Privacy Policy</h1>
<p class="text-body-large mb-4">
Ndole Studio built the httpSMS service as an open source project. This
SERVICE is provided by Ndole Studio and is intended for use as is.
diff --git a/web/app/pages/terms-and-conditions/index.vue b/web/app/pages/terms-and-conditions/index.vue
index ebd57878..d21f46b7 100644
--- a/web/app/pages/terms-and-conditions/index.vue
+++ b/web/app/pages/terms-and-conditions/index.vue
@@ -12,7 +12,7 @@ useHead({
<VContainer>
<VRow>
<VCol cols="12" md="8" offset-md="2">
- <h1 class="text-display-small mb-6">Terms and Conditions</h1>
+ <h1 class="text-display-medium mb-2">Terms and Conditions</h1>
<p class="text-body-large mb-4">
By downloading or using the app and using the HTTP SMS service, these
terms will automatically apply to you – you should make sure therefore
diff --git a/web/tsconfig.tsbuildinfo b/web/tsconfig.tsbuildinfo
index 9d4ec6ab..654fbdf7 100644
--- a/web/tsconfig.tsbuildinfo
+++ b/web/tsconfig.tsbuildinfo
@@ -1 +1 @@
-{"root":["./app/composables/useapi.ts","./app/composables/usefilters.ts","./app/middleware/auth.ts","./app/middleware/guest.ts","./app/plugins/chart.client.ts","./app/plugins/firebase.client.ts","./app/plugins/vphoneinput.client.ts","./app/plugins/vue-glow.client.ts","./app/stores/app.ts","./app/stores/auth.ts","./app/stores/billing.ts","./app/stores/messages.ts","./app/stores/notifications.ts","./app/stores/phones.ts","./app/stores/threads.ts","./app/types/nuxt-shims.d.ts","./app/utils/bag.ts","./app/utils/capitalize.ts","./app/utils/errors.ts","./app/utils/filters.ts","./shared/types/api.ts","./shared/types/billing.ts","./shared/types/heartbeat.ts","./shared/types/message-thread.ts","./shared/types/message.ts","./shared/types/user.ts"],"errors":true,"version":"5.9.3"}
+{"root":["./app/composables/useapi.ts","./app/composables/usefilters.ts","./app/middleware/auth.ts","./app/middleware/guest.ts","./app/plugins/chart.client.ts","./app/plugins/firebase.client.ts","./app/plugins/highlightjs.client.ts","./app/plugins/vphoneinput.client.ts","./app/plugins/vue-glow.client.ts","./app/stores/app.ts","./app/stores/auth.ts","./app/stores/billing.ts","./app/stores/messages.ts","./app/stores/notifications.ts","./app/stores/phones.ts","./app/stores/threads.ts","./app/types/nuxt-shims.d.ts","./app/utils/bag.ts","./app/utils/capitalize.ts","./app/utils/errors.ts","./app/utils/filters.ts","./shared/types/api.ts","./shared/types/billing.ts","./shared/types/heartbeat.ts","./shared/types/message-thread.ts","./shared/types/message.ts","./shared/types/user.ts"],"errors":true,"version":"5.9.3"}