Il GatewayAPI accelera lo sviluppo mediante servizi e API intuitivi, consentendoti di iniziare subito a costruire.
Attirare l'attenzione dei potenziali clienti non deve essere complicato. Scopri in che modo i nostri servizi possono aiutarti a distinguerti dalla massa e a coinvolgere i destinatari in modo rapido ed efficiente. Siamo una piattaforma pluripremiata con migliaia di clienti soddisfatti a livello globale.
Fatti ispirare dai molti argomenti trattati dagli articoli, tra cui casi di clienti e approfondimenti tecnici. Scopri in che modo gli SMS possono contribuire a salvare vite umane o semplicemente a ricordarti l'appuntamento dal dentista. Le applicazioni sono infinite!
Configura il tuo account GatewayAPI e inizia oggi stesso a inviare messaggi. Accesso immediato a dashboard e servizi intuitivi. Se hai ancora bisogno di aiuto, il nostro team di supporto è a portata di clic.
Ti assicuriamo che i tuoi messaggi saranno sempre recapitati ai destinatari. Accedi a un livello di affidabilità e ridondanza tecnica senza pari, per una consegna rapida e in tempo reale dei messaggi: il nostro uptime del 99,99%+ sulla nostra API SMS ne è la prova.
Utilizzando GatewayAPI come partner per la messaggistica, potrai contare anche su un servizio totalmente conforme al GDPR, con archiviazione europea dei dati e certificazione ISAE 3000. Inoltre, avrai l’opportunità di utilizzare una configurazione .eu unica nel suo genere, attualmente utilizzata da numerose organizzazioni autorevoli, tra cui il Ministero della Giustizia.
A questo indirizzo è possibile vedere il tempo di attività in tempo reale e la cronologia. I listini validi in oltre 200 Paesi e il rapporto ISAE 3000 GDPR sono disponibili gratuitamente. Inoltre, è possibile seguire con precisione la consegna a ciascun destinatario sul proprio dashboard.
Utilizza i nostri servizi aggiuntivi per raggiungere nuovi traguardi. Integrali con la nostra API Email o API Number Lookup, nonché con numeri virtuali e parole chiave. Grazie alle opzioni di integrazione, impostare l’automazione è un gioco da ragazzi.
Il team di supporto è sempre a tua disposizione. Il nostro tempo medio di risposta è inferiore a 20 secondi durante l’orario di lavoro e il punteggio di soddisfazione è addirittura del 98%. Inoltre, non esiste un requisito minimo di spesa per avvalersi del servizio di supporto.
using System.Net.Http.Json;
using System.Net.Http.Headers;
using HttpClient client = new HttpClient();
client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue(
"Token",
"GoGenerateAnApiToken"
);
var messages = new {
sender = "ExampleSMS",
message = "Hello World!",
recipients = new[] { new { msisdn = 45_1234_5678 }},
};
using var resp = await client.PostAsync(
"https://gatewayapi.com/rest/mtsms",
JsonContent.Create(messages)
);
// On 2xx, print the SMS IDs received back from the API
// otherwise print the response content to see the error:
if (resp.IsSuccessStatusCode && resp.Content != null) {
Console.WriteLine("success!");
var content = await resp.Content.ReadFromJsonAsync<Dictionary<string, dynamic>>();
foreach (var smsId in content["ids"].EnumerateArray()) {
Console.WriteLine("allocated SMS id: {0:G}", smsId);
}
} else if (resp.Content != null) {
Console.WriteLine("failed :(\nresponse content:");
var content = await resp.Content.ReadAsStringAsync();
Console.WriteLine(content);
}
curl -v "https://gatewayapi.com/rest/mtsms" \
-u "GoGenerateAnApiToken": \
-d sender="ExampleSMS" \
-d message="Hello World" \
-d recipients.0.msisdn=4512345678
package main
import (
"bytes"
"encoding/json"
"io/ioutil"
"log"
"github.com/mrjones/oauth"
)
func main() {
// Authentication
key := "Create-an-API-Key"
secret := "GoGenerateAnApiKeyAndSecret"
consumer := oauth.NewConsumer(key, secret, oauth.ServiceProvider{})
client, err := consumer.MakeHttpClient(&oauth.AccessToken{})
if err != nil {
log.Fatal(err)
}
// Request
type GatewayAPIRecipient struct {
Msisdn uint64 `json:"msisdn"`
}
type GatewayAPIRequest struct {
Sender string `json:"sender"`
Message string `json:"message"`
Recipients []GatewayAPIRecipient `json:"recipients"`
}
request := &GatewayAPIRequest{
Sender: "ExampleSMS",
Message: "Hello World",
Recipients: []GatewayAPIRecipient{
{
Msisdn: 4512345678,
},
},
}
// Send it
var buf bytes.Buffer
if err := json.NewEncoder(&buf).Encode(request); err != nil {
log.Fatal(err)
}
res, err := client.Post(
"https://gatewayapi.com/rest/mtsms",
"application/json",
&buf,
)
if err != nil {
log.Fatal(err)
}
if res.StatusCode != 200 {
body, _ := ioutil.ReadAll(res.Body)
log.Fatalf("http error reply, status: %q, body: %q", res.Status, body)
}
// Parse the response
type GatewayAPIResponse struct {
Ids []uint64
}
response := &GatewayAPIResponse{}
if err := json.NewDecoder(res.Body).Decode(response); err != nil {
log.Fatal(err)
}
log.Println("ids", response.Ids)
}
package main
import (
"net/http"
"net/url"
)
func main() {
http.PostForm(
"https://gatewayapi.com/rest/mtsms",
url.Values{
"token": {"GoGenerateAnApiToken"},
"sender": {"ExampleSMS"},
"message": {"Hello World"},
"recipients.0.msisdn": {"4512345678"},
},
)
}
# install httpie oauth lib, with pip install httpie-oauth
http --auth-type=oauth1\
--auth="Create-an-API-Key:GoGenerateAnApiKeyAndSecret"\
"https://gatewayapi.com/rest/mtsms"\
sender='ExampleSMS'\
message='Hello world'\
recipients:='[{"msisdn": 4512345678}]'
http --auth=GoGenerateAnApiToken: \
https://gatewayapi.com/rest/mtsms\
sender='ExampleSMS'\
message='Hello world'\
recipients:='[{"msisdn": 4512345678}]'
// Install deps with gradle
// compile 'com.squareup.okhttp3:okhttp:3.4.1'
// compile 'se.akerfeldt:okhttp-signpost:1.1.0'
// compile 'org.json:json:20160810'
final String key = "Create-an-API-Key";
final String secret = "GoGenerateAnApiKeyAndSecret";
OkHttpOAuthConsumer consumer = new OkHttpOAuthConsumer(key, secret);
OkHttpClient client = new OkHttpClient.Builder()
.addInterceptor(new SigningInterceptor(consumer))
.build();
JSONObject json = new JSONObject();
json.put("sender", "ExampleSMS");
json.put("message", "Hello World");
json.put("recipients", (new JSONArray()).put(
(new JSONObject()).put("msisdn", 4512345678L)
));
RequestBody body = RequestBody.create(
MediaType.parse("application/json; charset=utf-8"), json.toString());
Request signedRequest = (Request) consumer.sign(
new Request.Builder()
.url("https://gatewayapi.com/rest/mtsms")
.post(body)
.build()).unwrap();
try (Response response = client.newCall(signedRequest).execute()) {
System.out.println(response.body().string());
}
import java.io.DataOutputStream;
import java.net.URL;
import java.net.URLEncoder;
import javax.net.ssl.HttpsURLConnection;
public class HelloWorld {
public static void main(String[] args) throws Exception {
URL url = new URL("https://gatewayapi.com/rest/mtsms");
HttpsURLConnection con = (HttpsURLConnection) url.openConnection();
con.setDoOutput(true);
DataOutputStream wr = new DataOutputStream(con.getOutputStream());
wr.writeBytes(
"token=GoGenerateAnApiToken"
+ "&sender=" + URLEncoder.encode("ExampleSMS", "UTF-8")
+ "&message=" + URLEncoder.encode("Hello World", "UTF-8")
+ "&recipients.0.msisdn=4512345678"
);
wr.close();
int responseCode = con.getResponseCode();
System.out.println("Got response " + responseCode);
}
}
async function sendSMS() {
const token = "GoGenerateAnApiToken";
const payload = {
sender: "ExampleSMS",
message: "Hello World",
recipients: [
{ msisdn: 45_1234_5678 },
],
};
const resp = await fetch(
"https://gatewayapi.com/rest/mtsms",
{
method: "POST",
body: JSON.stringify(payload),
headers: {
"Content-Type": "application/json",
"Authorization": `Token ${token}`,
},
},
);
console.log(await resp.json());
}
sendSMS();
<?php
//Send an SMS using Gatewayapi.com
$url = "https://gatewayapi.com/rest/mtsms";
$api_token = "GoGenerateAnApiToken";
//Set SMS recipients and content
$recipients = [4512345678, 4587654321];
$json = [
'sender' => 'ExampleSMS',
'message' => 'Hello world',
'recipients' => [],
];
foreach ($recipients as $msisdn) {
$json['recipients'][] = ['msisdn' => $msisdn];
}
//Make and execute the http request
//Using the built-in 'curl' library
$ch = curl_init();
curl_setopt($ch,CURLOPT_URL, $url);
curl_setopt($ch,CURLOPT_HTTPHEADER, array("Content-Type: application/json"));
curl_setopt($ch,CURLOPT_USERPWD, $api_token.":");
curl_setopt($ch,CURLOPT_POSTFIELDS, json_encode($json));
curl_setopt($ch,CURLOPT_RETURNTRANSFER, true);
$result = curl_exec($ch);
curl_close($ch);
print($result);
$json = json_decode($result);
print_r($json->ids);
# Install deps with: pip install requests
import requests
def send_sms(sender: str, msg_content: str, recipients: list[int]):
token="GoGenerateAnApiToken"
payload = {
"sender": sender,
"message": msg_content,
"recipients": [
{"msisdn": recipient_number}
for recipient_number in recipients
],
}
resp = requests.post(
"https://gatewayapi.com/rest/mtsms",
json=payload,
auth=(token, ""),
)
resp.raise_for_status()
print(resp.json())
send_sms("ExampleSMS", "Hello World", [45_1234_5678])
require 'uri'
require 'net/http'
require 'json'
body = {
'recipients': [{'msisdn': 45_1234_5678}],
'message': 'Hello World',
'sender': 'ExampleSMS',
}
token = 'GoGenerateAnApiToken'
resp = Net::HTTP.post(
URI.parse('https://gatewayapi.com/rest/mtsms'),
JSON.generate(body),
{
'Content-Type': 'application/json',
'Authorization': "Token #{token}",
},
)
puts resp.body
Plugin gratuito per inviare messaggi SMS e impostare l’autenticazione a 2 fattori, ecc.
Integratati con oltre 5.000 app tramite Zapier e inizia ad automatizzare i flussi di lavoro degli SMS.
Collegati a GatewayAPI con una connessione diretta SMPP e invia grandi volumi di SMS senza problemi.
Impostare l'automazione degli SMS è facile come un gioco da ragazzi con Make.
Integrazione semplice con GatewayAPI
Integrati con la nostra API nel tuo linguaggio di programmazione preferito Oppure usa Zapier, Flowize o Make per connetterti a GatewayAPI: Basta trovare l’app, il servizio o la piattaforma con cui desideri integrarti e parti subito!
Qualunque sia il metodo scelto, è facile e veloce da configurare.