Standard APIs
Welcome to the Standard APIs Documentation
Welcome to the teleapi documentation. teleapi was written to be the easiest API to integrate with, taking the positive attributes of a RESTFUL api and combining that with the simplicity that the web was created on.
All functions are available to the main API URL: https://api.teleapi.net/
Older URLs (apiv1 or sms) are mapped to api.teleapi.net and are cross compatible.
All API commands can be sent using GET or POST, and no username, or special attributes are required, just your token.
We support JSON, XML and PHP serialize natively, just pass format=xml or format=php in your GET or POST request.
Many pages are outlined with the coding Method and a sample from a few different programming languages. These should get you started immediately.
Most pages will look like this, with the URL and coding examples.
URL:
At the top right of the screen, you will have RESPONSE for response expectations.
shell
PHP
RESPONSE
CURL
curl -v -X POST "https://api.teleapi.net/sms/send?token=XXXX" \
-d "source=13035551212&destination=13038884444&message=hello+there"
PHP - file_get_contents
<?php
$data = array("source" => "13035551212",
"destination" => "13038884444",
"message" => "hey there");
$data = http_build_query($data);
$x = file_get_contents("https://api.teleapi.net/sms/send?token=XXXX&$data");
$object = json_decode($x);
print_r($object);
Last modified 2yr ago