Implement comprehensive messaging services into your software by using simple APIs.<\/p>\n<\/div><\/div>
All functions such as SMS transmission, voice, validation, etc. can be called fully automated. <\/p>\n<\/div><\/div><\/div><\/div><\/div><\/div>
Integrate our API easily into any application with just a few lines of code \u2013 a developer’s dream.<\/p>\n<\/div><\/div><\/div><\/div><\/div><\/div>
Our pricing<\/a> is fair and transparent. You only pay for what you’re actually using.<\/p>\n<\/div><\/div><\/div><\/div><\/div><\/div><\/div><\/div><\/section>
curl https:\/\/gateway.seven.io\/api\/sms \\\r\n-H \"authorization: Basic INSERT_YOUR_API_KEY<\/strong>\" \\\r\n-d \"to=4917612121212\" \\\r\n-d \"text=Hello, this is a test SMS\" \\\r\n-d \"from=sender\"\r\n<\/pre>\nPHP<\/h3>\n<?php \r\n$ch = curl_init('https:\/\/gateway.seven.io\/api\/sms');\r\n\r\ncurl_setopt($ch, CURLOPT_POSTFIELDS, json_encode([ \r\n 'to' => '4917612121212,Peter,FriendsGroup',\r\n 'text' => 'Hello, this is a test SMS',\r\n 'from' => 'sender'\r\n]));\r\n\r\ncurl_setopt($ch, CURLOPT_HTTPHEADER, [\r\n 'Accept: application\/json',\r\n 'Content-type: application\/json',\r\n 'X-Api-Key: INSERT_YOUR_API_KEY<\/strong>'\r\n]);\r\n\r\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\r\n\r\n$result = curl_exec($ch);\r\n\r\ncurl_close($ch);\r\n\r\nvar_dump($result);\r\n<\/pre>\n<\/div><\/div><\/div><\/div><\/div>
<?php \r\n$ch = curl_init('https:\/\/gateway.seven.io\/api\/sms');\r\n\r\ncurl_setopt($ch, CURLOPT_POSTFIELDS, json_encode([ \r\n 'to' => '4917612121212,Peter,FriendsGroup',\r\n 'text' => 'Hello, this is a test SMS',\r\n 'from' => 'sender'\r\n]));\r\n\r\ncurl_setopt($ch, CURLOPT_HTTPHEADER, [\r\n 'Accept: application\/json',\r\n 'Content-type: application\/json',\r\n 'X-Api-Key: INSERT_YOUR_API_KEY<\/strong>'\r\n]);\r\n\r\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\r\n\r\n$result = curl_exec($ch);\r\n\r\ncurl_close($ch);\r\n\r\nvar_dump($result);\r\n<\/pre>\n<\/div><\/div><\/div><\/div><\/div>
<?php \r\nuse Sms77\\Api\\Client;\r\nuse Sms77\\Api\\Params\\SmsParams;\r\n\r\n$client = new Client('INSERT_YOUR_API_KEY<\/strong>');\r\n\r\n$smsParams = new SmsParams;\r\n$smsParams\r\n ->setTo('+4901234567890')\r\n ->setText('HI2U');\r\n\r\n$client->sms($smsParams);\r\n<\/pre>\nSend SMS via Symfony<\/h3>\nAre you working with Symfony? Check out the notifier component<\/a>. It makes sending SMS via seven easy! You may also want to have a look at the official repository<\/a> in case you wish to contribute or simply watch the project process.<\/p>\n
Are you working with Symfony? Check out the notifier component<\/a>. It makes sending SMS via seven easy! You may also want to have a look at the official repository<\/a> in case you wish to contribute or simply watch the project process.<\/p>\n
Are you building your application with the very popular framework Laravel<\/a>? Some nice people made the work integrating our service into Laravel Notification Channels<\/a>. The package greatly reduces a developers workload and just works flawless. You download and read more about it here<\/a>.<\/p>\n<\/div><\/div><\/div><\/div><\/div>
import java.net.*;\r\nimport java.io.*;\r\n\r\npublic class sms {\r\n\tpublic static void main(String[] args) {\r\n\t\tString urlString = \"https:\/\/gateway.seven.io\/api\/sms\/?p=apikey&to=...&text=....&from=...\";\r\n\r\n\t\tString output\t= getUrlContents(urlString);\r\n\t\tSystem.out.println(output);\r\n\t}\r\n\r\n\tprivate static String getUrlContents(String theUrl)\r\n\t{\r\n\t\tStringBuilder content = new StringBuilder();\r\n\r\n\t\t\/\/ many of these calls can throw exceptions, so i've just\r\n\t\t\/\/ wrapped them all in one try\/catch statement.\r\n\t\ttry\r\n\t\t{\r\n\t\t\t\/\/ create a url object\r\n\t\t\tURL url = new URL(theUrl);\r\n\r\n\t\t\t\/\/ create a urlconnection object\r\n\t\t\tURLConnection urlConnection = url.openConnection();\r\n\r\n\t\t\t\/\/ wrap the urlconnection in a bufferedreader\r\n\t\t\tBufferedReader bufferedReader = new BufferedReader(\r\n\t\t\t\tnew InputStreamReader(urlConnection.getInputStream())\r\n\t\t\t);\r\n\r\n\t\t\tString line;\r\n\r\n\t\t\t\/\/ read from the urlconnection via the bufferedreader\r\n\t\t\twhile ((line = bufferedReader.readLine()) != null)\r\n\t\t\t{\r\n\t\t\t\tcontent.append(line + \"n\");\r\n\t\t\t}\r\n\t\t\tbufferedReader.close();\r\n\t\t}\r\n\t\tcatch(Exception e)\r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn content.toString();\r\n\t}\r\n}<\/pre>\n<\/div><\/div><\/div><\/div><\/div>
For implementation with Ruby, you can use our\u00a0Gem<\/a>.<\/p>\n
require 'sms77'\r\n\r\nputs Sms77::Client.new(Sms77::Resource(ENV['SMS77_API_KEY'])).Balance.retrieve\r\n# or\r\nputs Sms77::Resources::Balance.new(ENV['SMS77_API_KEY']).retrieve\r\n<\/pre>\n<\/div><\/div><\/div><\/div><\/div>
We provide a client<\/a> for our API for better usability. It is also available via the central package distribution system NuGet<\/a>.<\/p>\n
using System;\r\nusing System.Threading.Tasks;\r\nusing Client = Sms77.Api.Client;\r\n\r\nclass Program\r\n{\r\n static async Task Main()\r\n {\r\n var apiKey = Environment.GetEnvironmentVariable(\"SMS77_API_KEY\");\r\n var client = new Client(apiKey);\r\n var balance = await client.Balance();\r\n Console.WriteLine($\"Current account balance: {balance}\");\r\n }\r\n}\r\n<\/pre>\n<\/div><\/div><\/div><\/div><\/div>
For easier usability we are providing a client<\/a> for our API. You can read more about it at pkg.go.dev<\/a>.<\/p>\n
package main\r\n\r\nimport (\r\n\t\"fmt\"\r\n\t\"github.com\/sms77io\/go-client\/sms77api\"\r\n)\r\n\r\nfunc main() {\r\n\tvar client = sms77api.New(sms77api.Options{\r\n\t\tApiKey: \"InsertSuperSecretSms77ApiKey!\",\r\n\t})\r\n\tvar balance, err = client.Balance.Get()\r\n\tif err == nil {\r\n\t\tfmt.Println(fmt.Sprintf(\"%f\", *balance))\r\n\t} else {\r\n\t\tfmt.Println(err.Error())\r\n\t}\r\n}\r\n<\/pre>\n<\/div><\/div><\/div><\/div><\/div>
We deliver a client<\/a> for our API for better accessibility. It is distributed as a NPM package<\/a>.<\/p>\n
\/\/ const globalThis = require('globalthis')(); \/\/ uncomment if NodeJS < NodeJS versions < 12\r\nglobalThis.fetch = require('node-fetch').default;\r\nconst Sms77Client = require('sms77-client');\r\n<\/pre>\nBrowser<\/h3>\n<script src=\"https:\/\/unpkg.com\/browse\/sms77-client\/dist\/Sms77Client.umd.js\"><\/script>\r\n<\/pre>\nRetrieve balance<\/h4>\nnew Sms77Client(\"INSERT_SMS77_API_KEY\")\r\n\t.balance()\r\n\t.then(balance => console.log(`Current balance: ${balance}`))\r\n\t.catch(console.error);\r\n<\/pre>\n<\/div><\/div><\/div><\/div><\/div>
<script src=\"https:\/\/unpkg.com\/browse\/sms77-client\/dist\/Sms77Client.umd.js\"><\/script>\r\n<\/pre>\nRetrieve balance<\/h4>\nnew Sms77Client(\"INSERT_SMS77_API_KEY\")\r\n\t.balance()\r\n\t.then(balance => console.log(`Current balance: ${balance}`))\r\n\t.catch(console.error);\r\n<\/pre>\n<\/div><\/div><\/div><\/div><\/div>
new Sms77Client(\"INSERT_SMS77_API_KEY\")\r\n\t.balance()\r\n\t.then(balance => console.log(`Current balance: ${balance}`))\r\n\t.catch(console.error);\r\n<\/pre>\n<\/div><\/div><\/div><\/div><\/div>
# If your API key is not set as environment variable named \"SMS77_API_KEY\":\r\n# Application.put_env(:sms77, :api_key, \"INSERT_YOUR_SMS77_API_KEY\")\r\n\r\nIO.puts Sms77.Balance.get! # prints the account balance to console\r\n<\/pre>\n<\/div><\/div><\/div><\/div><\/div>
We developed a SDK in Rust for convenience reasons. You can download it via crates.io<\/a>. The source code is available on GitHub<\/a>. Feel free to open issues or even come up with a pull request on your own.<\/p>\n
let apiKey = \"INSERT_YOUR_API_KEY<\/strong>\".to_string();\r\n\r\nlet client = Client::new(apiKey);\r\n\r\nlet balance = Balance::<\/span>new<\/span>(client).get<\/span>().unwrap();\r\nprintln!(\"Current balance: {}\", balance);\r\n<\/pre>\n<\/div><\/div><\/div><\/div><\/div>
Use this convenient code snippet for quickly send a SMS via a Perl script.<\/p>\n<\/div><\/div>
#!\/usr\/bin\/perl\r\n\r\nuse LWP::UserAgent;\r\n\r\nmy %form;\r\n$form{'p'} = 'HeJyJSAvBWDn5RwNfhQGKZI6poCLk7pUXjpxctipYHWGsjoHtWNDI3d4De8gkoVe'; # Your API key\r\n$form{'from'} = 'seven'; # Caller ID\r\n$form{'text'} = 'Bless you!'; # Message content\r\n$form{'to'} = '+491771783130'; # Recipient(s)\r\n\r\nmy $ua = LWP::UserAgent->new();\r\nmy $response = $ua->post('https:\/\/gateway.seven.io\/api\/sms', \\%form );\r\nmy $content = $response->as_string();\r\n\r\nprint($content);\r\n<\/pre>\n<\/div><\/div><\/div><\/div><\/div><\/div><\/div><\/div><\/div><\/div><\/div><\/div><\/section><\/i><\/div>Your application<\/h3>Your software sends a request to our SMS gateway<\/p>\n<\/div><\/div><\/div><\/li><\/i><\/div>seven Gateway<\/h3>Our SMS gateway checks the request, returns a response code and hands over the SMS to the carrier<\/p>\n<\/div><\/div><\/div><\/li><\/i><\/div>SMS is sent<\/h3>The SMS will be delivered within seconds<\/p>\n<\/div><\/div><\/div><\/li><\/ul><\/div><\/div><\/div><\/div>Learn more about our API<\/h4>\nBy using the simplest HTTP GET Request, developers can integrate our SMS solutions into your application in just a few minutes. You control your processes by adding various parameters for the SMS transmission. This means that you’re able to use all of our features when sending SMS via API.\nDo you have any questions? We are happy to help you with the realization of your projects.<\/p>\n<\/div><\/div>Read documentation<\/span><\/a><\/div><\/div><\/div><\/div><\/div><\/div><\/section>SDKs<\/h3>\n<\/div><\/div>
Your software sends a request to our SMS gateway<\/p>\n<\/div><\/div>
Our SMS gateway checks the request, returns a response code and hands over the SMS to the carrier<\/p>\n<\/div><\/div>
The SMS will be delivered within seconds<\/p>\n<\/div><\/div>
By using the simplest HTTP GET Request, developers can integrate our SMS solutions into your application in just a few minutes. You control your processes by adding various parameters for the SMS transmission. This means that you’re able to use all of our features when sending SMS via API.\nDo you have any questions? We are happy to help you with the realization of your projects.<\/p>\n<\/div><\/div>