Learn how to quickly modify your existing Infobip API calls to send SMS messages using the SMS Gateway Emulator app. With minimal code changes, you can switch from Infobip services to our app, saving costs and gaining full control over your SMS gateway.
API V2 and V3 are supported.
Authorizations: API Key Header and Basic are supported.
There are 2 ways to emulate Infobip API.
Change the API url directly.
Via our Proxy Server.
Whatever you do, make sure to change USERNAME
to
EMULATOR_USERNAME
,
PASSWORD
to
EMULATOR_PASSWORD
, and set
EMULATOR_SENDER_ID
.
https://www.infobip.com/docs/api/channels/sms/outbound-sms/send-sms-messages
curl -L -g 'https://api.infobip.com/sms/2/text/advanced' \
-u username:password \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{
"messages": [
{
"destinations": [
{
"to": "N: This is a notification"
}
],
"from": "17354442069",
"text": "Hello from Infobip Emulator"
}
]
}'
curl -L -g 'https://api.smsgatewayemulator.com/sms/2/text/advanced' \
-u EMULATOR_USERNAME:EMULATOR_PASSWORD \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{
"messages": [
{
"destinations": [
{
"to": "N: This is a notification"
}
],
"from": "EMULATOR_SENDER_ID",
"text": "Hello from Infobip Emulator"
}
]
}'
curl -L -g 'https://api.infobip.com/sms/2/text/advanced' \
-u EMULATOR_USERNAME:EMULATOR_PASSWORD \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{
"messages": [
{
"destinations": [
{
"to": "N: This is a notification"
}
],
"from": "EMULATOR_SENDER_ID",
"text": "Hello from Infobip Emulator"
}
]
}' \
--cacert ./sms_gateway_emulator_ca.crt \
--proxy https://proxy.smsgatewayemulator.com \
--proxy-cacert ./sms_gateway_emulator_ca.crt