v3 Dokumendinõuete pärimine

Kirjeldus:

loob krüptitud faili

URI:

https://api.multitel.net/v3/get_requirements

Parameetrid:

Required: (POST request only) 
- country: Country ISO Code
- number_type : Number Type, available values are as follow:'Global','Local','Mobile','National','Shared Cost','Toll Free'
- type : Document Type,available values are as follow: 'registration','porting'

Meetodid:

POST


Näidisväljund:

{
  "status": {
    "code": 200,
    "msg": ""
  },
  "response": "German Local DID End User registration requirements:<br>\r\nFor <b>personal identity</b> verification:\r\n* Name, last name\r\n* Contact phone number\r\n* Passport or ID copy\r\n* Germany registration form<br>\r\nFor <b>business identity</b> verification:\r\n* Name, last name\r\n* Contact phone number\r\n* Company name\r\n* German company incorporation certificate copy\r\n* Germany registration form<br>\r\nFor <b>address</b> verification:\r\n* Address matching the DID area code (street, building number, postal code, city and country)\r\n* A copy of a utility bill (less than 6 months old)<br>\r\nThe number provided online is a <b>demo</b>. An active number will be provided when the registration process is complete.<br>\r\nTo activate the DID number(s) please create an identity and address bundle matching the requirements and assign it to the DID number(s) for approval.<br>"
}

Näidiskood:

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.multitel.net/v3/get_requirements',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS => array('type' => 'registration','country' => 'DE','number_type' => 'local'),
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json',
    'Accept: application/json',
    'Authorization: Basic YWRtaW46Vnc0OXB11',
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

Otsi dokumentatsioonist