Overview
Telecom Lookup Tools
Powered By GitBook
Tollfree Vanity Order
This allows you to order a vanity toll free number, after you have searched and learned that it is available.

Get / Post Information

URL:
Argument
Required
Type
Example
did_number
yes
int
3035551212
vanity_tf
no
string
yes
Note, after calling this function, you will need to do a "Cart - Complete" which is located here​
shell
PHP+CURL
PHP+PLAIN
RESPONSE
Shell/CURL
1
curl -v -X GET "https://apiv1.teleapi.net/dids/cart?token=XXXX&did_number=3035551212&vanity_tf=yes"
Copied!
Using PHP+CURL
1
<?php
2
​
3
$data = array("did_number" => "3035551212",
4
"vanity_tf" => "yes"
5
);
6
​
7
$data = http_build_query($data);
8
​
9
$baseurl = "https://apiv1.teleapi.net/dids/cart?token=XXXX&".$data;
10
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
11
$retval = curl_exec($ch);
12
curl_close($ch);
13
​
14
$object = json_decode($retval);
15
print_r($object);
Copied!
PHP - file_get_contents
1
<?php
2
$data = array("did_number" => "3035551212",
3
"vanity_tf" => "yes"
4
);
5
​
6
$data = http_build_query($data);
7
​
8
$url = "https://apiv1.teleapi.net/dids/cart?token=XXXX&".$data;
9
$x = file_get_contents($url);
10
$object = json_decode($x);
11
print_r($object);
Copied!

Successful Addition to Cart

1
{
2
"code":200,
3
"status":"success",
4
"data":"successfully added item to cart"
5
}
Copied!

Failed Adding (Number not Available)

1
{
2
"code": 400,
3
"status": "error",
4
"data": "invalid did id"
5
}
Copied!
Last modified 1yr ago
Copy link