Twilio Alternative for SMS API
Save Big with Karix.io
Twilio
Karix.io
Savings
Send Outbound Message
$0.0075
$0.0048
36%
Receive Inbound Message
$0.0075
Free
100%
Rent Local Number
$1.00
$0.76
24%
* For the comparison shown above, rates for USA have been considered.
ONE SMS API. MANY USE-CASES
CHOOSE YOUR FAVORITE PROGRAMMING LANGUAGE
Get support in multiple programming languages
PHP
curl -v -u <AUTH_ID>:<AUTH_TOKEN> https://api.karix.io/message/ \
-H 'content-type: application/json' \
-d '{"destination": ["+919742XXXXX"], \
"source": "+1506783XXXXX", \
"text": "Sent from curl"}'
from __future__ import print_function
import time
import karix
from karix.rest import ApiException
from karix.configuration import Configuration
from karix.api_client import ApiClient
from pprint import pprint
# Configure HTTP basic authorization: basicAuth
config = Configuration()
config.username = 'account_uid_here'
config.password = 'account_token_here'
# create an instance of the API class
api_instance = karix.MessageApi(api_client=ApiClient(configuration=config))
message = karix.CreateMessage(source="+1506XXXXXX", destination=["+15067342XXX"], text="Sent from python SDK")
try:
api_response = api_instance.send_message(message=message)
pprint(api_response)
except ApiException as e:
print("Exception when calling MessageApi->send_message: %sn" % e)
package main
import (
"fmt"
"github.com/davecgh/go-spew/spew"
httptransport "github.com/go-openapi/runtime/client"
"github.com/karixtech/go-karix/client"
"github.com/karixtech/go-karix/client/message"
"github.com/karixtech/go-karix/models"
)
func main() {
authInfo := httptransport.BasicAuth(
"account_uid_here",
"account_token_here",
)
source := "ALPHAID"
text := "Sent from Golang SDK"
params := message.NewSendMessageParams()
params.Message = &models.CreateMessage{
Source: &source,
Destination: []string{"+150669XXXXX"},
Text: &text,
}
resp, err := client.Default.Message.SendMessage(params, authInfo)
if err != nil {
fmt.Println(err)
}
spew.Dump(resp.Payload)
}
<?php require_once(__DIR__."/vendor/autoload.php");
/*Configure HTTP basic authorization: basicAuth*/
$config = new \Swagger\Client\Configuration();
$config->setUsername("AUTH_ID");
$config->setPassword("AUTH_TOKEN");
$apiInstance = new Swagger\Client\Api\MessageApi(
/* If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
This is optional, `GuzzleHttp\Client` will be used as default.*/
new GuzzleHttp\Client(),
$config
);
$api_version = "1.0"; // string | API Version. If not specified your pinned verison is used.
$message = new \Swagger\Client\Model\CreateMessage(); // \Swagger\Client\Model\CreateAccount | Subaccount object
date_default_timezone_set("UTC");
$message->setDestination(["+1XXX8323XXX", "+1XXX3234XXX"]);
$message->setSource("+1XXX2321XXX");
$message->setText("Hello Friend");
try {
$result = $apiInstance->sendMessage($api_version, $message);
print_r($result);
} catch (Exception $e) {
echo " Exception when calling MessageApi->createMessage: ", $e->getMessage(), PHP_EOL;
}
?>