This is belongs to Create the specific record.
/{module}/create
Usage and SDK Samples
curl -X post "http://domain.com/wp-json/wp-ultimate-csv-importer/{module}/create"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AddRecordApi;
import java.io.File;
import java.util.*;
public class AddRecordApiExample {
public static void main(String[] args) {
AddRecordApi apiInstance = new AddRecordApi();
String module = module_example; // String | Name should be with the module name like Posts, Pages, Users, WooCommerce, MarketPress, event, event-recurring, location, ticket, CustomerReviews, Categories, Tags, Taxonomies. For custom post type, EX:- movie (or) property
try {
createRecord result = apiInstance.moduleCreatePost(module);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AddRecordApi#moduleCreatePost");
e.printStackTrace();
}
}
}
import io.swagger.client.api.AddRecordApi;
public class AddRecordApiExample {
public static void main(String[] args) {
AddRecordApi apiInstance = new AddRecordApi();
String module = module_example; // String | Name should be with the module name like Posts, Pages, Users, WooCommerce, MarketPress, event, event-recurring, location, ticket, CustomerReviews, Categories, Tags, Taxonomies. For custom post type, EX:- movie (or) property
try {
createRecord result = apiInstance.moduleCreatePost(module);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AddRecordApi#moduleCreatePost");
e.printStackTrace();
}
}
}
String *module = module_example; // Name should be with the module name like Posts, Pages, Users, WooCommerce, MarketPress, event, event-recurring, location, ticket, CustomerReviews, Categories, Tags, Taxonomies. For custom post type, EX:- movie (or) property
AddRecordApi *apiInstance = [[AddRecordApi alloc] init];
[apiInstance moduleCreatePostWith:module
completionHandler: ^(createRecord output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var WpUltimateCsvImporterApiPlayground = require('wp_ultimate_csv_importer_api_playground');
var api = new WpUltimateCsvImporterApiPlayground.AddRecordApi()
var module = module_example; // {String} Name should be with the module name like Posts, Pages, Users, WooCommerce, MarketPress, event, event-recurring, location, ticket, CustomerReviews, Categories, Tags, Taxonomies. For custom post type, EX:- movie (or) property
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.moduleCreatePost(module, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class moduleCreatePostExample
{
public void main()
{
var apiInstance = new AddRecordApi();
var module = module_example; // String | Name should be with the module name like Posts, Pages, Users, WooCommerce, MarketPress, event, event-recurring, location, ticket, CustomerReviews, Categories, Tags, Taxonomies. For custom post type, EX:- movie (or) property
try
{
createRecord result = apiInstance.moduleCreatePost(module);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling AddRecordApi.moduleCreatePost: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\Api\AddRecordApi();
$module = module_example; // String | Name should be with the module name like Posts, Pages, Users, WooCommerce, MarketPress, event, event-recurring, location, ticket, CustomerReviews, Categories, Tags, Taxonomies. For custom post type, EX:- movie (or) property
try {
$result = $api_instance->moduleCreatePost($module);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AddRecordApi->moduleCreatePost: ', $e->getMessage(), PHP_EOL;
}
?>
Parameters
Name | Description |
---|---|
module* |