Additional FieldsΒΆ
Examlple request in php for AM additional field
<?php
$contact = array(
'name' => "Jhone",
'surname' => "Smith",
'email' => "smith@gmail.com",
'phone' => "+37455555555",
'country' => "US",
'city' => "New York",
'address' => "Example Street",
'zip' => "001110"
);
$domainModel = [
'name' => 'test-for-globalr.am',
'periods' => 2,
'contacts' => [
'owner' => $contact,
'admin' => $contact,
'billing' => $contact,
'technical' => $contact,
],
'ns' => [
['name'=>'ns1.globalr.com'],
['name'=>'ns2.globalr.com'],
],
"_am-privacy"=>1
];
$resault = sendToGlobalR($domainModel, 'POST', '/domain', 'xXGsvO26ntTHTESTKEYSOICKu8nOvMzKKiwg');
$domain = json_decode($resault);