Here you will find everything you need to connect our API to your system or application. You can also create a free trial account, or order a active account directly through the page
With our RESTful API allows you with ease to integrate all services from iP.1 in your system, examples of applications include integration of SMS to fully automated surveys and studies related to the registration or purchase through the online store. You can also manage your accounts and replenishment of SMS balance on the API level.
Dim account As String = "ip1-xxxxxx"
Dim password As String = "API-Key"
Dim client As New HttpClient()
client.BaseAddress = New Uri("https://api.ip1sms.com/api/")
client.DefaultRequestHeaders.Accept.Clear()
client.DefaultRequestHeaders.Accept.Add(New MediaTypeWithQualityHeaderValue("application/json"))
Dim authString As String = Convert.ToBase64String(Encoding.ASCII.GetBytes($"{account}:{password}"))
client.DefaultRequestHeaders.Authorization = New AuthenticationHeaderValue("Basic", authString)
Dim sms As New With
{
Key .From = "iP1sms",
Key .Numbers = New List(Of String)() From {"46123456789"},
Key .Contacts = New List(Of Integer)(),
Key .Groups = New List(Of Integer)(),
Key .Message = "Test", Key .Email = False
}
Dim response As HttpResponseMessage = Await client.PostAsJsonAsync("sms/send", sms)
End Sub`;
HTTPS SMS Gateway
DEPRECATED - HTTPS SMS Gateway is deprecated and will not be further developed. We recommend you to use our RESTful SMS API
DEPRECATED - SOAP SMS Gateway is deprecated and will not be further developed. We recommend you to use our RESTful SMS API
SMS-Gateway via SOAP request PHP
$conf['apiurl'] = 'https://web.smscom.se/sendsms/sendsms.asmx?wsdl';
$conf['mmsapiurl'] = 'https://web.smscom.se/mms/mms.asmx?wsdl';
$conf['account'] = 'ip1-xxxxx';
$conf['password'] = 'API-Key';
$conf['to'] = '46712345678';
$conf['from'] = 'iP1';
$conf['prio'] = '1';
$conf['msg'] = 'Test message via iP.1 API (Web Service)';
$conf['msg_at'] = "Test send at message via iP.1 API (Web Service)";
$conf['msg_bundle'] = "Test bundle message via iP.1 API (Web Service)";
$client = new SoapClient($conf['apiurl']);
$mmsClient = new SoapClient($conf['mmsapiurl']);
$result = $client->balans(array('konto'=>$conf['account'], 'passwd' => $conf['password']));
echo 'Balnace: ' . $result->balansResult;
$smsresult = $client->sms(array('konto'=>$conf['account'], 'passwd' => $conf['password'], 'till' => $conf['to'], 'from' => $conf['from'], 'meddelande' =>$conf['msg'], 'prio' => $conf['prio']));
echo '
Result of SMS: ' . $smsresult->smsResult;
Create e developer account
All our services can be used through our web application or through our API. All you need is an account with SMS balance and any extra services of your choice.