domainPost
Create domain | Domain name registration
Domain name must be registered thru provided information from reseller. .AM domain registration requres manual approvement on the side or registry. So, when registration comes, it is automatically being reserved by registry. In 0-3 days domain name must be approved. .GE registration is offline. It takes 0-10 days to register and approve domain name on the side of registry.
/domain
Usage and SDK Samples
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import .CreateApi;
import java.io.File;
import java.util.*;
public class CreateApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: internalApiKey
ApiKeyAuth internalApiKey = (ApiKeyAuth) defaultClient.getAuthentication("internalApiKey");
internalApiKey.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//internalApiKey.setApiKeyPrefix("Token");
CreateApi apiInstance = new CreateApi();
Register_body body = ; // Register_body | Request body for domain registration
try {
api_response result = apiInstance.domainPost(body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling CreateApi#domainPost");
e.printStackTrace();
}
}
}
import .CreateApi;
public class CreateApiExample {
public static void main(String[] args) {
CreateApi apiInstance = new CreateApi();
Register_body body = ; // Register_body | Request body for domain registration
try {
api_response result = apiInstance.domainPost(body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling CreateApi#domainPost");
e.printStackTrace();
}
}
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: internalApiKey)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"api_token"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"api_token"];
Register_body *body = ; // Request body for domain registration
CreateApi *apiInstance = [[CreateApi alloc] init];
// Create domain | Domain name registration
[apiInstance domainPostWith:body
completionHandler: ^(api_response output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var = require('');
var defaultClient = .ApiClient.instance;
// Configure API key authorization: internalApiKey
var internalApiKey = defaultClient.authentications['internalApiKey'];
internalApiKey.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//internalApiKey.apiKeyPrefix['api_token'] = "Token"
var api = new .CreateApi()
var body = ; // {Register_body} Request body for domain registration
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.domainPost(body, callback);
using System;
using System.Diagnostics;
using .Api;
using .Client;
using ;
namespace Example
{
public class domainPostExample
{
public void main()
{
// Configure API key authorization: internalApiKey
Configuration.Default.ApiKey.Add("api_token", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.ApiKeyPrefix.Add("api_token", "Bearer");
var apiInstance = new CreateApi();
var body = new Register_body(); // Register_body | Request body for domain registration
try
{
// Create domain | Domain name registration
api_response result = apiInstance.domainPost(body);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling CreateApi.domainPost: " + e.Message );
}
}
}
}
setApiKey('api_token', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// io.swagger.client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api_token', 'Bearer');
$api_instance = new io.swagger.client\Api\CreateApi();
$body = ; // Register_body | Request body for domain registration
try {
$result = $api_instance->domainPost($body);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling CreateApi->domainPost: ', $e->getMessage(), PHP_EOL;
}
Parameters
| Name | Description |
|---|---|
| body * |