categoryRequestNew
Submit a new category request
/category/submit
Usage and SDK Samples
curl -X POST "https://virtserver.swaggerhub.com/Assem/therealist/1.0.0/category/submit"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CategoryApi;
import java.io.File;
import java.util.*;
public class CategoryApiExample {
public static void main(String[] args) {
CategoryApi apiInstance = new CategoryApi();
Order body = ; // Order | order placed for purchasing the domain
try {
Order result = apiInstance.categoryRequestNew(body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling CategoryApi#categoryRequestNew");
e.printStackTrace();
}
}
}
import io.swagger.client.api.CategoryApi;
public class CategoryApiExample {
public static void main(String[] args) {
CategoryApi apiInstance = new CategoryApi();
Order body = ; // Order | order placed for purchasing the domain
try {
Order result = apiInstance.categoryRequestNew(body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling CategoryApi#categoryRequestNew");
e.printStackTrace();
}
}
}
Order *body = ; // order placed for purchasing the domain
CategoryApi *apiInstance = [[CategoryApi alloc] init];
// Submit a new category request
[apiInstance categoryRequestNewWith:body
completionHandler: ^(Order output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var ReaListApi = require('rea_list_api');
var api = new ReaListApi.CategoryApi()
var body = ; // {Order} order placed for purchasing the domain
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.categoryRequestNew(body, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class categoryRequestNewExample
{
public void main()
{
var apiInstance = new CategoryApi();
var body = new Order(); // Order | order placed for purchasing the domain
try
{
// Submit a new category request
Order result = apiInstance.categoryRequestNew(body);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling CategoryApi.categoryRequestNew: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\Api\CategoryApi();
$body = ; // Order | order placed for purchasing the domain
try {
$result = $api_instance->categoryRequestNew($body);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling CategoryApi->categoryRequestNew: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::CategoryApi;
my $api_instance = WWW::SwaggerClient::CategoryApi->new();
my $body = WWW::SwaggerClient::Object::Order->new(); # Order | order placed for purchasing the domain
eval {
my $result = $api_instance->categoryRequestNew(body => $body);
print Dumper($result);
};
if ($@) {
warn "Exception when calling CategoryApi->categoryRequestNew: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = swagger_client.CategoryApi()
body = # Order | order placed for purchasing the domain
try:
# Submit a new category request
api_response = api_instance.category_request_new(body)
pprint(api_response)
except ApiException as e:
print("Exception when calling CategoryApi->categoryRequestNew: %s\n" % e)
Parameters
Name | Description |
---|---|
body * |