createConversationCode
/api/v1/conversation-codes/
Usage and SDK Samples
curl -X POST\
-H "Accept: application/json"\
-H "Content-Type: application/json,application/x-www-form-urlencoded,multipart/form-data"\
"//api/v1/conversation-codes/"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ApiApi;
import java.io.File;
import java.util.*;
public class ApiApiExample {
public static void main(String[] args) {
ApiApi apiInstance = new ApiApi();
ConversationCode body = ; // ConversationCode |
try {
ConversationCode result = apiInstance.createConversationCode(body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ApiApi#createConversationCode");
e.printStackTrace();
}
}
}
import io.swagger.client.api.ApiApi;
public class ApiApiExample {
public static void main(String[] args) {
ApiApi apiInstance = new ApiApi();
ConversationCode body = ; // ConversationCode |
try {
ConversationCode result = apiInstance.createConversationCode(body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ApiApi#createConversationCode");
e.printStackTrace();
}
}
}
ConversationCode *body = ; // (optional)
ApiApi *apiInstance = [[ApiApi alloc] init];
[apiInstance createConversationCodeWith:body
completionHandler: ^(ConversationCode output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var OpenField = require('open_field');
var api = new OpenField.ApiApi()
var opts = {
'body': // {{ConversationCode}}
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.createConversationCode(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class createConversationCodeExample
{
public void main()
{
var apiInstance = new ApiApi();
var body = new ConversationCode(); // ConversationCode | (optional)
try
{
ConversationCode result = apiInstance.createConversationCode(body);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling ApiApi.createConversationCode: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\ApiApiApi();
$body = ; // ConversationCode |
try {
$result = $api_instance->createConversationCode($body);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ApiApi->createConversationCode: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ApiApi;
my $api_instance = WWW::SwaggerClient::ApiApi->new();
my $body = WWW::SwaggerClient::Object::ConversationCode->new(); # ConversationCode |
eval {
my $result = $api_instance->createConversationCode(body => $body);
print Dumper($result);
};
if ($@) {
warn "Exception when calling ApiApi->createConversationCode: $@\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.ApiApi()
body = # ConversationCode | (optional)
try:
api_response = api_instance.create_conversation_code(body=body)
pprint(api_response)
except ApiException as e:
print("Exception when calling ApiApi->createConversationCode: %s\n" % e)
Parameters
Name | Description |
---|---|
body |
Name | Description |
---|---|
id |
Integer
|
code |
String
|
created_at |
Date
(date-time)
|
created_by |
String
|
description |
String
|
org |
String
|
script |
Integer
|
targets |
Integer
|
expires |
Date
(date-time)
|
conversation_type |
String
Enum:
VK , PK , VR , PR , VC , PC , VD , PD , ST
|
start_time |
String
|
end_time |
String
|
status |
String
Enum:
VK , PK , VR , PR , VC , PC , VD , PD , ST Processing , Active , After Hours , Expired , Deactivated
|
attempt_goal |
Integer
|
reg_goal |
Integer
|
vbm_goal |
Integer
|
id |
Integer
|
code |
String
|
created_at |
Date
(date-time)
|
created_by |
String
|
description |
String
|
org |
String
|
script |
Integer
|
targets |
Integer
|
expires |
Date
(date-time)
|
conversation_type |
String
Enum:
VK , PK , VR , PR , VC , PC , VD , PD , ST Processing , Active , After Hours , Expired , Deactivated VK , PK , VR , PR , VC , PC , VD , PD , ST
|
start_time |
String
|
end_time |
String
|
status |
String
Enum:
VK , PK , VR , PR , VC , PC , VD , PD , ST Processing , Active , After Hours , Expired , Deactivated VK , PK , VR , PR , VC , PC , VD , PD , ST Processing , Active , After Hours , Expired , Deactivated
|
attempt_goal |
Integer
|
reg_goal |
Integer
|
vbm_goal |
Integer
|