Skip to content

Instantly share code, notes, and snippets.

<?php
$server_url = 'https://sapi.multitel.net/json/releasenumbers/';
if(isset($_POST['submit'])) {
$data = array(
'UserName' => $_POST['username'],
'Password' => $_POST['password'],
'Number' => $_POST['number'],
);
<?php
$server_url = 'https://sapi.multitel.net/json/buynumbers';
if(isset($_POST['submit'])){
$data = array(
'UserName' => $_POST['username'],
'Password' => $_POST['password'],
'Number' => $_POST['number'],
'URI' => $_POST['uri'],
'Type' => $_POST['type'],
);
<?php
$server_url = 'https://sapi.multitel.net/json/getdids';
if(isset($_POST['submit'])){
$data = array(
'UserName' => $_POST['username'],
'Password' => $_POST['password'],
'CountryCode' => $_POST['country_code'],
);
$handle = curl_init($server_url);
curl_setopt($handle, CURLOPT_POST, true);
<?php
$server_url = 'https://sapi.multitel.net/json/getareas';
if(isset($_POST['submit'])) {
$data = array(
'UserName' => $_POST['username'],
'Password' => $_POST['password'],
'CountryCode' => $_POST['country_code'],
'CountryID' => $_POST['country_id'],
);
<?php
$server_url = 'https://sapi.multitel.net/json/getcountries';
if(isset($_POST['submit'])) {
$data = array(
'UserName' => $_POST['username'],
'Password' => $_POST['password']
);
$handle = curl_init($server_url);
@multitel
multitel / GetDIDs JSON Sample Output
Created March 4, 2014 01:39
GetDIDs JSON Sample Output
{"DATA":
[
{
"Number":"12036587208",
"SetupCost":"2.000",
"MonthlyCharges":"3.00",
"PerMinuteCharges":"0.019",
"Country":"United States",
"Area":"",
"CountryCode":"US",
@multitel
multitel / GetDIDs REST
Last active August 29, 2015 13:56
GetDIDs JSON
<?php
$server_url = 'http://api.multitel.net/json/getdids/';
// GET : http://api.multitel.net/json/getdids/username/password/prefix
if(isset($_POST['submit'])) {
$data = array(
'UserName' => $_POST['username'],
'Password' => $_POST['password'],
'CountryCode' => $_POST['country_code'],
@multitel
multitel / GetAreas JSON Output
Created March 4, 2014 01:17
GetAreas JSON Output
{"DATA":
[
{
"AREACODE":"1201",
"DESCRIPTION":"Jersey City",
"CLATITUDE":"38.889747",
"CLONGITUDE":"-77.025599",
"ALATITUDE":"40.7281575",
"ALONGITUDE":"-74.0776417"
},{
@multitel
multitel / GetAreas JSON
Last active August 29, 2015 13:56
GetAreas JSON
<?php
$server_url = 'http://api.multitel.net/json/getareas/
// or for GET : http://api.multitel.net/json/getareas/UserName/Password/CountryCode
if(isset($_POST['submit'])) {
$data = array(
'UserName' => $_POST['username'],
'Password' => $_POST['password'],
'CountryCode' => $_POST['country_code'],
);
@multitel
multitel / JSON GetCountries
Last active November 7, 2015 15:52
JSON GetCountries
<?php
$api_url = "http://api.multitel.net/json/getcountries";
$username = "username";
$password = "password";
$data = array(
'UserName' => $username,
'Password' => $password
);
$handle = curl_init($api_url);
curl_setopt($handle, CURLOPT_POST, true);