From 7675656c37148a0028a50d6513af980e6c4c6d98 Mon Sep 17 00:00:00 2001 From: Aleksandr Soloshenko Date: Tue, 17 Sep 2024 11:51:43 +0700 Subject: [PATCH] [docs] use of new domain in URLs --- README.md | 6 +++--- smsgateway/client.go | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 5a694a3..36378e0 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Android SMS Gateway Go API Client +# SMS Gateway for Androidâ„¢ Go API Client [![Go Report Card](https://goreportcard.com/badge/github.com/android-sms-gateway/client-go)](https://goreportcard.com/report/github.com/android-sms-gateway/client-go) [![GoDoc](https://godoc.org/github.com/android-sms-gateway/client-go?status.svg)](https://godoc.org/github.com/android-sms-gateway/client-go) @@ -10,7 +10,7 @@ ![GitHub All Releases](https://img.shields.io/github/downloads/android-sms-gateway/client-go/total) [![GitHub issues](https://img.shields.io/github/issues/android-sms-gateway/client-go)](https://github.com/android-sms-gateway/client-go/issues) -This is a Go client library for interfacing with the [Android SMS Gateway API](https://sms.capcom.me). +This is a Go client library for interfacing with the [SMS Gateway for Android API](https://sms-gate.app). ## Features @@ -89,7 +89,7 @@ func main() { ## API Reference -For more information on the API endpoints and data structures, please consult the [Android SMS Gateway API documentation](https://sms.capcom.me/api/). +For more information on the API endpoints and data structures, please consult the [SMS Gateway for Android API documentation](https://sms-gate.app/api). # Contributing diff --git a/smsgateway/client.go b/smsgateway/client.go index b838a4c..d2de7a9 100644 --- a/smsgateway/client.go +++ b/smsgateway/client.go @@ -9,11 +9,11 @@ import ( "strings" ) -const BASE_URL = "https://sms.capcom.me/api/3rdparty/v1" +const BASE_URL = "https://api.sms-gate.app/3rdparty/v1" type Config struct { Client *http.Client // Optional HTTP Client, defaults to `http.DefaultClient` - BaseURL string // Optional base URL, defaults to `https://sms.capcom.me/api/3rdparty/v1` + BaseURL string // Optional base URL, defaults to `https://api.sms-gate.app/3rdparty/v1` User string // Required username Password string // Required password }