GiK API

Bots

listBots

List of Bots

List of Bots with criteria


/v1/bots

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Bearer [[accessToken]]" \
 -H "Accept: application/json" \
 "https://getgik.com/v1/bots?page=56&limit=56&keyword=keyword_example"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.BotsApi;

import java.io.File;
import java.util.*;

public class BotsApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure Bearer (JWT) access token for authorization: networkAuth
        HttpBearerAuth networkAuth = (HttpBearerAuth) defaultClient.getAuthentication("networkAuth");
        networkAuth.setBearerToken("BEARER TOKEN");

        // Create an instance of the API class
        BotsApi apiInstance = new BotsApi();
        String authorization = authorization_example; // String | Bearer token for authentication
        Integer page = 56; // Integer | Page to show (default: 1)
        Integer limit = 56; // Integer | Amount of results (default: 10; maximum: 100)
        String keyword = keyword_example; // String | Search name of the Bot

        try {
            ListBots result = apiInstance.listBots(authorization, page, limit, keyword);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BotsApi#listBots");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.BotsApi;

public class BotsApiExample {
    public static void main(String[] args) {
        BotsApi apiInstance = new BotsApi();
        String authorization = authorization_example; // String | Bearer token for authentication
        Integer page = 56; // Integer | Page to show (default: 1)
        Integer limit = 56; // Integer | Amount of results (default: 10; maximum: 100)
        String keyword = keyword_example; // String | Search name of the Bot

        try {
            ListBots result = apiInstance.listBots(authorization, page, limit, keyword);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BotsApi#listBots");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure Bearer (JWT) access token for authorization: networkAuth
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];

// Create an instance of the API class
BotsApi *apiInstance = [[BotsApi alloc] init];
String *authorization = authorization_example; // Bearer token for authentication (default to null)
Integer *page = 56; // Page to show (default: 1) (optional) (default to null)
Integer *limit = 56; // Amount of results (default: 10; maximum: 100) (optional) (default to null)
String *keyword = keyword_example; // Search name of the Bot (optional) (default to null)

// List of Bots
[apiInstance listBotsWith:authorization
    page:page
    limit:limit
    keyword:keyword
              completionHandler: ^(ListBots output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var GiKApi = require('gi_k_api');
var defaultClient = GiKApi.ApiClient.instance;

// Configure Bearer (JWT) access token for authorization: networkAuth
var networkAuth = defaultClient.authentications['networkAuth'];
networkAuth.accessToken = "YOUR ACCESS TOKEN";

// Create an instance of the API class
var api = new GiKApi.BotsApi()
var authorization = authorization_example; // {String} Bearer token for authentication
var opts = {
  'page': 56, // {Integer} Page to show (default: 1)
  'limit': 56, // {Integer} Amount of results (default: 10; maximum: 100)
  'keyword': keyword_example // {String} Search name of the Bot
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.listBots(authorization, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class listBotsExample
    {
        public void main()
        {
            // Configure Bearer (JWT) access token for authorization: networkAuth
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            // Create an instance of the API class
            var apiInstance = new BotsApi();
            var authorization = authorization_example;  // String | Bearer token for authentication (default to null)
            var page = 56;  // Integer | Page to show (default: 1) (optional)  (default to null)
            var limit = 56;  // Integer | Amount of results (default: 10; maximum: 100) (optional)  (default to null)
            var keyword = keyword_example;  // String | Search name of the Bot (optional)  (default to null)

            try {
                // List of Bots
                ListBots result = apiInstance.listBots(authorization, page, limit, keyword);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling BotsApi.listBots: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure Bearer (JWT) access token for authorization: networkAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setAccessToken('', 'YOUR_ACCESS_TOKEN');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\BotsApi();
$authorization = authorization_example; // String | Bearer token for authentication
$page = 56; // Integer | Page to show (default: 1)
$limit = 56; // Integer | Amount of results (default: 10; maximum: 100)
$keyword = keyword_example; // String | Search name of the Bot

try {
    $result = $api_instance->listBots($authorization, $page, $limit, $keyword);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling BotsApi->listBots: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::BotsApi;

# Configure Bearer (JWT) access token for authorization: networkAuth
$WWW::OPenAPIClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::BotsApi->new();
my $authorization = authorization_example; # String | Bearer token for authentication
my $page = 56; # Integer | Page to show (default: 1)
my $limit = 56; # Integer | Amount of results (default: 10; maximum: 100)
my $keyword = keyword_example; # String | Search name of the Bot

eval {
    my $result = $api_instance->listBots(authorization => $authorization, page => $page, limit => $limit, keyword => $keyword);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling BotsApi->listBots: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Configure Bearer (JWT) access token for authorization: networkAuth
openapi_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# Create an instance of the API class
api_instance = openapi_client.BotsApi()
authorization = authorization_example # String | Bearer token for authentication (default to null)
page = 56 # Integer | Page to show (default: 1) (optional) (default to null)
limit = 56 # Integer | Amount of results (default: 10; maximum: 100) (optional) (default to null)
keyword = keyword_example # String | Search name of the Bot (optional) (default to null)

try:
    # List of Bots
    api_response = api_instance.list_bots(authorization, page=page, limit=limit, keyword=keyword)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling BotsApi->listBots: %s\n" % e)
extern crate BotsApi;

pub fn main() {
    let authorization = authorization_example; // String
    let page = 56; // Integer
    let limit = 56; // Integer
    let keyword = keyword_example; // String

    let mut context = BotsApi::Context::default();
    let result = client.listBots(authorization, page, limit, keyword, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Header parameters
Name Description
Authorization*
String
Bearer token for authentication
Required
Query parameters
Name Description
page
Integer
Page to show (default: 1)
limit
Integer
Amount of results (default: 10; maximum: 100)
keyword
String
Search name of the Bot

Responses


Conversations

authToken

Refresh Token

Refresh the token for authorization. It needs just query or header api_key parameter.


/v1/tokens

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Bearer [[accessToken]]" \
 -H "Accept: application/json" \
 "https://getgik.com/v1/tokens?api_key=apiKey_example"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ConversationsApi;

import java.io.File;
import java.util.*;

public class ConversationsApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure Bearer (JWT) access token for authorization: networkAuth
        HttpBearerAuth networkAuth = (HttpBearerAuth) defaultClient.getAuthentication("networkAuth");
        networkAuth.setBearerToken("BEARER TOKEN");

        // Create an instance of the API class
        ConversationsApi apiInstance = new ConversationsApi();
        String apiKey = apiKey_example; // String | Api Key to refresh
        String apiKey2 = apiKey_example; // String | Token for authentication

        try {
            TokenResponse result = apiInstance.authToken(apiKey, apiKey2);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ConversationsApi#authToken");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.ConversationsApi;

public class ConversationsApiExample {
    public static void main(String[] args) {
        ConversationsApi apiInstance = new ConversationsApi();
        String apiKey = apiKey_example; // String | Api Key to refresh
        String apiKey2 = apiKey_example; // String | Token for authentication

        try {
            TokenResponse result = apiInstance.authToken(apiKey, apiKey2);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ConversationsApi#authToken");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure Bearer (JWT) access token for authorization: networkAuth
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];

// Create an instance of the API class
ConversationsApi *apiInstance = [[ConversationsApi alloc] init];
String *apiKey = apiKey_example; // Api Key to refresh (optional) (default to null)
String *apiKey2 = apiKey_example; // Token for authentication (optional) (default to null)

// Refresh Token
[apiInstance authTokenWith:apiKey
    apiKey2:apiKey2
              completionHandler: ^(TokenResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var GiKApi = require('gi_k_api');
var defaultClient = GiKApi.ApiClient.instance;

// Configure Bearer (JWT) access token for authorization: networkAuth
var networkAuth = defaultClient.authentications['networkAuth'];
networkAuth.accessToken = "YOUR ACCESS TOKEN";

// Create an instance of the API class
var api = new GiKApi.ConversationsApi()
var opts = {
  'apiKey': apiKey_example, // {String} Api Key to refresh
  'apiKey2': apiKey_example // {String} Token for authentication
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.authToken(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class authTokenExample
    {
        public void main()
        {
            // Configure Bearer (JWT) access token for authorization: networkAuth
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            // Create an instance of the API class
            var apiInstance = new ConversationsApi();
            var apiKey = apiKey_example;  // String | Api Key to refresh (optional)  (default to null)
            var apiKey2 = apiKey_example;  // String | Token for authentication (optional)  (default to null)

            try {
                // Refresh Token
                TokenResponse result = apiInstance.authToken(apiKey, apiKey2);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ConversationsApi.authToken: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure Bearer (JWT) access token for authorization: networkAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setAccessToken('', 'YOUR_ACCESS_TOKEN');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ConversationsApi();
$apiKey = apiKey_example; // String | Api Key to refresh
$apiKey2 = apiKey_example; // String | Token for authentication

try {
    $result = $api_instance->authToken($apiKey, $apiKey2);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ConversationsApi->authToken: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ConversationsApi;

# Configure Bearer (JWT) access token for authorization: networkAuth
$WWW::OPenAPIClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ConversationsApi->new();
my $apiKey = apiKey_example; # String | Api Key to refresh
my $apiKey2 = apiKey_example; # String | Token for authentication

eval {
    my $result = $api_instance->authToken(apiKey => $apiKey, apiKey2 => $apiKey2);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ConversationsApi->authToken: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Configure Bearer (JWT) access token for authorization: networkAuth
openapi_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# Create an instance of the API class
api_instance = openapi_client.ConversationsApi()
apiKey = apiKey_example # String | Api Key to refresh (optional) (default to null)
apiKey2 = apiKey_example # String | Token for authentication (optional) (default to null)

try:
    # Refresh Token
    api_response = api_instance.auth_token(apiKey=apiKey, apiKey2=apiKey2)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ConversationsApi->authToken: %s\n" % e)
extern crate ConversationsApi;

pub fn main() {
    let apiKey = apiKey_example; // String
    let apiKey2 = apiKey_example; // String

    let mut context = ConversationsApi::Context::default();
    let result = client.authToken(apiKey, apiKey2, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Header parameters
Name Description
api_key
String
Token for authentication
Query parameters
Name Description
api_key
String
Api Key to refresh

Responses


conversationFeedback

Feedback Conversation from agents

Add feedback Conversation from agents


/v1/conversation_feedback/{id}

Usage and SDK Samples

curl -X PUT \
 -H "Authorization: Bearer [[accessToken]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "https://getgik.com/v1/conversation_feedback/{id}" \
 -d '{
  "metadata" : "{\"session_duration\": \"30 minutes\"}",
  "agent_id" : "agent123",
  "agent_name" : "John Doe",
  "conversations" : [ {
    "text" : "Hello, how can I assist you today?",
    "type_id" : "1",
    "creation_date" : "2023-01-01 12:00:00"
  }, {
    "text" : "I need help with my account.",
    "type_id" : "0",
    "creation_date" : "2023-01-01 12:01:00"
  } ]
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ConversationsApi;

import java.io.File;
import java.util.*;

public class ConversationsApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure Bearer (JWT) access token for authorization: networkAuth
        HttpBearerAuth networkAuth = (HttpBearerAuth) defaultClient.getAuthentication("networkAuth");
        networkAuth.setBearerToken("BEARER TOKEN");

        // Create an instance of the API class
        ConversationsApi apiInstance = new ConversationsApi();
        Integer id = 56; // Integer | The conversation id parameter
        String authorization = authorization_example; // String | Bearer token for authentication
        Feedback feedback = ; // Feedback | 

        try {
            OutMsgResponse result = apiInstance.conversationFeedback(id, authorization, feedback);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ConversationsApi#conversationFeedback");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.ConversationsApi;

public class ConversationsApiExample {
    public static void main(String[] args) {
        ConversationsApi apiInstance = new ConversationsApi();
        Integer id = 56; // Integer | The conversation id parameter
        String authorization = authorization_example; // String | Bearer token for authentication
        Feedback feedback = ; // Feedback | 

        try {
            OutMsgResponse result = apiInstance.conversationFeedback(id, authorization, feedback);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ConversationsApi#conversationFeedback");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure Bearer (JWT) access token for authorization: networkAuth
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];

// Create an instance of the API class
ConversationsApi *apiInstance = [[ConversationsApi alloc] init];
Integer *id = 56; // The conversation id parameter (default to null)
String *authorization = authorization_example; // Bearer token for authentication (default to null)
Feedback *feedback = ; //  (optional)

// Feedback Conversation from agents
[apiInstance conversationFeedbackWith:id
    authorization:authorization
    feedback:feedback
              completionHandler: ^(OutMsgResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var GiKApi = require('gi_k_api');
var defaultClient = GiKApi.ApiClient.instance;

// Configure Bearer (JWT) access token for authorization: networkAuth
var networkAuth = defaultClient.authentications['networkAuth'];
networkAuth.accessToken = "YOUR ACCESS TOKEN";

// Create an instance of the API class
var api = new GiKApi.ConversationsApi()
var id = 56; // {Integer} The conversation id parameter
var authorization = authorization_example; // {String} Bearer token for authentication
var opts = {
  'feedback':  // {Feedback} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.conversationFeedback(id, authorization, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class conversationFeedbackExample
    {
        public void main()
        {
            // Configure Bearer (JWT) access token for authorization: networkAuth
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            // Create an instance of the API class
            var apiInstance = new ConversationsApi();
            var id = 56;  // Integer | The conversation id parameter (default to null)
            var authorization = authorization_example;  // String | Bearer token for authentication (default to null)
            var feedback = new Feedback(); // Feedback |  (optional) 

            try {
                // Feedback Conversation from agents
                OutMsgResponse result = apiInstance.conversationFeedback(id, authorization, feedback);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ConversationsApi.conversationFeedback: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure Bearer (JWT) access token for authorization: networkAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setAccessToken('', 'YOUR_ACCESS_TOKEN');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ConversationsApi();
$id = 56; // Integer | The conversation id parameter
$authorization = authorization_example; // String | Bearer token for authentication
$feedback = ; // Feedback | 

try {
    $result = $api_instance->conversationFeedback($id, $authorization, $feedback);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ConversationsApi->conversationFeedback: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ConversationsApi;

# Configure Bearer (JWT) access token for authorization: networkAuth
$WWW::OPenAPIClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ConversationsApi->new();
my $id = 56; # Integer | The conversation id parameter
my $authorization = authorization_example; # String | Bearer token for authentication
my $feedback = WWW::OPenAPIClient::Object::Feedback->new(); # Feedback | 

eval {
    my $result = $api_instance->conversationFeedback(id => $id, authorization => $authorization, feedback => $feedback);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ConversationsApi->conversationFeedback: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Configure Bearer (JWT) access token for authorization: networkAuth
openapi_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# Create an instance of the API class
api_instance = openapi_client.ConversationsApi()
id = 56 # Integer | The conversation id parameter (default to null)
authorization = authorization_example # String | Bearer token for authentication (default to null)
feedback =  # Feedback |  (optional)

try:
    # Feedback Conversation from agents
    api_response = api_instance.conversation_feedback(id, authorization, feedback=feedback)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ConversationsApi->conversationFeedback: %s\n" % e)
extern crate ConversationsApi;

pub fn main() {
    let id = 56; // Integer
    let authorization = authorization_example; // String
    let feedback = ; // Feedback

    let mut context = ConversationsApi::Context::default();
    let result = client.conversationFeedback(id, authorization, feedback, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
id*
Integer
The conversation id parameter
Required
Header parameters
Name Description
Authorization*
String
Bearer token for authentication
Required
Body parameters
Name Description
feedback

A Conversation request information object

Responses


createConversation

Create Conversation

Creates a conversation for specific bot. Takes the initial_conv_metadata from bot.


/v1/conversations

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Bearer [[accessToken]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "https://getgik.com/v1/conversations" \
 -d '{
  "message_history" : [ {
    "user" : "Hello",
    "ai" : "Hi there!"
  } ],
  "name" : "name",
  "conversation_metadata" : "{\"user_name\":\"Pedro\",\"agent_name\":\"Luis\"}",
  "bot_id" : 0
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ConversationsApi;

import java.io.File;
import java.util.*;

public class ConversationsApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure Bearer (JWT) access token for authorization: networkAuth
        HttpBearerAuth networkAuth = (HttpBearerAuth) defaultClient.getAuthentication("networkAuth");
        networkAuth.setBearerToken("BEARER TOKEN");

        // Create an instance of the API class
        ConversationsApi apiInstance = new ConversationsApi();
        String authorization = authorization_example; // String | Bearer token for authentication
        CreateConversation createConversation = ; // CreateConversation | 

        try {
            ConversationResponse result = apiInstance.createConversation(authorization, createConversation);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ConversationsApi#createConversation");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.ConversationsApi;

public class ConversationsApiExample {
    public static void main(String[] args) {
        ConversationsApi apiInstance = new ConversationsApi();
        String authorization = authorization_example; // String | Bearer token for authentication
        CreateConversation createConversation = ; // CreateConversation | 

        try {
            ConversationResponse result = apiInstance.createConversation(authorization, createConversation);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ConversationsApi#createConversation");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure Bearer (JWT) access token for authorization: networkAuth
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];

// Create an instance of the API class
ConversationsApi *apiInstance = [[ConversationsApi alloc] init];
String *authorization = authorization_example; // Bearer token for authentication (default to null)
CreateConversation *createConversation = ; //  (optional)

// Create Conversation
[apiInstance createConversationWith:authorization
    createConversation:createConversation
              completionHandler: ^(ConversationResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var GiKApi = require('gi_k_api');
var defaultClient = GiKApi.ApiClient.instance;

// Configure Bearer (JWT) access token for authorization: networkAuth
var networkAuth = defaultClient.authentications['networkAuth'];
networkAuth.accessToken = "YOUR ACCESS TOKEN";

// Create an instance of the API class
var api = new GiKApi.ConversationsApi()
var authorization = authorization_example; // {String} Bearer token for authentication
var opts = {
  'createConversation':  // {CreateConversation} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.createConversation(authorization, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class createConversationExample
    {
        public void main()
        {
            // Configure Bearer (JWT) access token for authorization: networkAuth
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            // Create an instance of the API class
            var apiInstance = new ConversationsApi();
            var authorization = authorization_example;  // String | Bearer token for authentication (default to null)
            var createConversation = new CreateConversation(); // CreateConversation |  (optional) 

            try {
                // Create Conversation
                ConversationResponse result = apiInstance.createConversation(authorization, createConversation);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ConversationsApi.createConversation: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure Bearer (JWT) access token for authorization: networkAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setAccessToken('', 'YOUR_ACCESS_TOKEN');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ConversationsApi();
$authorization = authorization_example; // String | Bearer token for authentication
$createConversation = ; // CreateConversation | 

try {
    $result = $api_instance->createConversation($authorization, $createConversation);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ConversationsApi->createConversation: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ConversationsApi;

# Configure Bearer (JWT) access token for authorization: networkAuth
$WWW::OPenAPIClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ConversationsApi->new();
my $authorization = authorization_example; # String | Bearer token for authentication
my $createConversation = WWW::OPenAPIClient::Object::CreateConversation->new(); # CreateConversation | 

eval {
    my $result = $api_instance->createConversation(authorization => $authorization, createConversation => $createConversation);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ConversationsApi->createConversation: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Configure Bearer (JWT) access token for authorization: networkAuth
openapi_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# Create an instance of the API class
api_instance = openapi_client.ConversationsApi()
authorization = authorization_example # String | Bearer token for authentication (default to null)
createConversation =  # CreateConversation |  (optional)

try:
    # Create Conversation
    api_response = api_instance.create_conversation(authorization, createConversation=createConversation)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ConversationsApi->createConversation: %s\n" % e)
extern crate ConversationsApi;

pub fn main() {
    let authorization = authorization_example; // String
    let createConversation = ; // CreateConversation

    let mut context = ConversationsApi::Context::default();
    let result = client.createConversation(authorization, createConversation, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Header parameters
Name Description
Authorization*
String
Bearer token for authentication
Required
Body parameters
Name Description
createConversation

A Conversation request information object

Responses


deleteConversation

Delete Conversation

Deletes a conversation already created


/v1/conversations/{id}

Usage and SDK Samples

curl -X DELETE \
 -H "Authorization: Bearer [[accessToken]]" \
 -H "Accept: application/json" \
 "https://getgik.com/v1/conversations/{id}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ConversationsApi;

import java.io.File;
import java.util.*;

public class ConversationsApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure Bearer (JWT) access token for authorization: networkAuth
        HttpBearerAuth networkAuth = (HttpBearerAuth) defaultClient.getAuthentication("networkAuth");
        networkAuth.setBearerToken("BEARER TOKEN");

        // Create an instance of the API class
        ConversationsApi apiInstance = new ConversationsApi();
        Integer id = 56; // Integer | The conversation id parameter to delete
        String authorization = authorization_example; // String | Bearer token for authentication

        try {
            OutMsgResponse result = apiInstance.deleteConversation(id, authorization);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ConversationsApi#deleteConversation");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.ConversationsApi;

public class ConversationsApiExample {
    public static void main(String[] args) {
        ConversationsApi apiInstance = new ConversationsApi();
        Integer id = 56; // Integer | The conversation id parameter to delete
        String authorization = authorization_example; // String | Bearer token for authentication

        try {
            OutMsgResponse result = apiInstance.deleteConversation(id, authorization);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ConversationsApi#deleteConversation");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure Bearer (JWT) access token for authorization: networkAuth
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];

// Create an instance of the API class
ConversationsApi *apiInstance = [[ConversationsApi alloc] init];
Integer *id = 56; // The conversation id parameter to delete (default to null)
String *authorization = authorization_example; // Bearer token for authentication (default to null)

// Delete Conversation
[apiInstance deleteConversationWith:id
    authorization:authorization
              completionHandler: ^(OutMsgResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var GiKApi = require('gi_k_api');
var defaultClient = GiKApi.ApiClient.instance;

// Configure Bearer (JWT) access token for authorization: networkAuth
var networkAuth = defaultClient.authentications['networkAuth'];
networkAuth.accessToken = "YOUR ACCESS TOKEN";

// Create an instance of the API class
var api = new GiKApi.ConversationsApi()
var id = 56; // {Integer} The conversation id parameter to delete
var authorization = authorization_example; // {String} Bearer token for authentication

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.deleteConversation(id, authorization, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class deleteConversationExample
    {
        public void main()
        {
            // Configure Bearer (JWT) access token for authorization: networkAuth
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            // Create an instance of the API class
            var apiInstance = new ConversationsApi();
            var id = 56;  // Integer | The conversation id parameter to delete (default to null)
            var authorization = authorization_example;  // String | Bearer token for authentication (default to null)

            try {
                // Delete Conversation
                OutMsgResponse result = apiInstance.deleteConversation(id, authorization);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ConversationsApi.deleteConversation: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure Bearer (JWT) access token for authorization: networkAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setAccessToken('', 'YOUR_ACCESS_TOKEN');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ConversationsApi();
$id = 56; // Integer | The conversation id parameter to delete
$authorization = authorization_example; // String | Bearer token for authentication

try {
    $result = $api_instance->deleteConversation($id, $authorization);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ConversationsApi->deleteConversation: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ConversationsApi;

# Configure Bearer (JWT) access token for authorization: networkAuth
$WWW::OPenAPIClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ConversationsApi->new();
my $id = 56; # Integer | The conversation id parameter to delete
my $authorization = authorization_example; # String | Bearer token for authentication

eval {
    my $result = $api_instance->deleteConversation(id => $id, authorization => $authorization);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ConversationsApi->deleteConversation: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Configure Bearer (JWT) access token for authorization: networkAuth
openapi_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# Create an instance of the API class
api_instance = openapi_client.ConversationsApi()
id = 56 # Integer | The conversation id parameter to delete (default to null)
authorization = authorization_example # String | Bearer token for authentication (default to null)

try:
    # Delete Conversation
    api_response = api_instance.delete_conversation(id, authorization)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ConversationsApi->deleteConversation: %s\n" % e)
extern crate ConversationsApi;

pub fn main() {
    let id = 56; // Integer
    let authorization = authorization_example; // String

    let mut context = ConversationsApi::Context::default();
    let result = client.deleteConversation(id, authorization, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
id*
Integer
The conversation id parameter to delete
Required
Header parameters
Name Description
Authorization*
String
Bearer token for authentication
Required

Responses


getConversation

Get a Conversation

Get a conversation with id or name


/v1/conversations/{id}

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Bearer [[accessToken]]" \
 -H "Accept: application/json" \
 "https://getgik.com/v1/conversations/{id}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ConversationsApi;

import java.io.File;
import java.util.*;

public class ConversationsApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure Bearer (JWT) access token for authorization: networkAuth
        HttpBearerAuth networkAuth = (HttpBearerAuth) defaultClient.getAuthentication("networkAuth");
        networkAuth.setBearerToken("BEARER TOKEN");

        // Create an instance of the API class
        ConversationsApi apiInstance = new ConversationsApi();
        Integer id = 56; // Integer | The conversation id or name
        String authorization = authorization_example; // String | Bearer token for authentication

        try {
            ConversationResponse result = apiInstance.getConversation(id, authorization);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ConversationsApi#getConversation");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.ConversationsApi;

public class ConversationsApiExample {
    public static void main(String[] args) {
        ConversationsApi apiInstance = new ConversationsApi();
        Integer id = 56; // Integer | The conversation id or name
        String authorization = authorization_example; // String | Bearer token for authentication

        try {
            ConversationResponse result = apiInstance.getConversation(id, authorization);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ConversationsApi#getConversation");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure Bearer (JWT) access token for authorization: networkAuth
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];

// Create an instance of the API class
ConversationsApi *apiInstance = [[ConversationsApi alloc] init];
Integer *id = 56; // The conversation id or name (default to null)
String *authorization = authorization_example; // Bearer token for authentication (default to null)

// Get a Conversation
[apiInstance getConversationWith:id
    authorization:authorization
              completionHandler: ^(ConversationResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var GiKApi = require('gi_k_api');
var defaultClient = GiKApi.ApiClient.instance;

// Configure Bearer (JWT) access token for authorization: networkAuth
var networkAuth = defaultClient.authentications['networkAuth'];
networkAuth.accessToken = "YOUR ACCESS TOKEN";

// Create an instance of the API class
var api = new GiKApi.ConversationsApi()
var id = 56; // {Integer} The conversation id or name
var authorization = authorization_example; // {String} Bearer token for authentication

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getConversation(id, authorization, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class getConversationExample
    {
        public void main()
        {
            // Configure Bearer (JWT) access token for authorization: networkAuth
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            // Create an instance of the API class
            var apiInstance = new ConversationsApi();
            var id = 56;  // Integer | The conversation id or name (default to null)
            var authorization = authorization_example;  // String | Bearer token for authentication (default to null)

            try {
                // Get a Conversation
                ConversationResponse result = apiInstance.getConversation(id, authorization);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ConversationsApi.getConversation: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure Bearer (JWT) access token for authorization: networkAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setAccessToken('', 'YOUR_ACCESS_TOKEN');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ConversationsApi();
$id = 56; // Integer | The conversation id or name
$authorization = authorization_example; // String | Bearer token for authentication

try {
    $result = $api_instance->getConversation($id, $authorization);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ConversationsApi->getConversation: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ConversationsApi;

# Configure Bearer (JWT) access token for authorization: networkAuth
$WWW::OPenAPIClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ConversationsApi->new();
my $id = 56; # Integer | The conversation id or name
my $authorization = authorization_example; # String | Bearer token for authentication

eval {
    my $result = $api_instance->getConversation(id => $id, authorization => $authorization);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ConversationsApi->getConversation: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Configure Bearer (JWT) access token for authorization: networkAuth
openapi_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# Create an instance of the API class
api_instance = openapi_client.ConversationsApi()
id = 56 # Integer | The conversation id or name (default to null)
authorization = authorization_example # String | Bearer token for authentication (default to null)

try:
    # Get a Conversation
    api_response = api_instance.get_conversation(id, authorization)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ConversationsApi->getConversation: %s\n" % e)
extern crate ConversationsApi;

pub fn main() {
    let id = 56; // Integer
    let authorization = authorization_example; // String

    let mut context = ConversationsApi::Context::default();
    let result = client.getConversation(id, authorization, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
id*
Integer
The conversation id or name
Required
Header parameters
Name Description
Authorization*
String
Bearer token for authentication
Required

Responses


listConversations

List Conversations

List conversations with criteria


/v1/conversations

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Bearer [[accessToken]]" \
 -H "Accept: application/json" \
 "https://getgik.com/v1/conversations?page=56&limit=56&keyword=keyword_example"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ConversationsApi;

import java.io.File;
import java.util.*;

public class ConversationsApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure Bearer (JWT) access token for authorization: networkAuth
        HttpBearerAuth networkAuth = (HttpBearerAuth) defaultClient.getAuthentication("networkAuth");
        networkAuth.setBearerToken("BEARER TOKEN");

        // Create an instance of the API class
        ConversationsApi apiInstance = new ConversationsApi();
        String authorization = authorization_example; // String | Bearer token for authentication
        Integer page = 56; // Integer | Page to show (default: 1)
        Integer limit = 56; // Integer | Amount of results (default: 10; maximum: 100)
        String keyword = keyword_example; // String | Search name of the Conversations

        try {
            ListConversations result = apiInstance.listConversations(authorization, page, limit, keyword);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ConversationsApi#listConversations");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.ConversationsApi;

public class ConversationsApiExample {
    public static void main(String[] args) {
        ConversationsApi apiInstance = new ConversationsApi();
        String authorization = authorization_example; // String | Bearer token for authentication
        Integer page = 56; // Integer | Page to show (default: 1)
        Integer limit = 56; // Integer | Amount of results (default: 10; maximum: 100)
        String keyword = keyword_example; // String | Search name of the Conversations

        try {
            ListConversations result = apiInstance.listConversations(authorization, page, limit, keyword);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ConversationsApi#listConversations");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure Bearer (JWT) access token for authorization: networkAuth
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];

// Create an instance of the API class
ConversationsApi *apiInstance = [[ConversationsApi alloc] init];
String *authorization = authorization_example; // Bearer token for authentication (default to null)
Integer *page = 56; // Page to show (default: 1) (optional) (default to null)
Integer *limit = 56; // Amount of results (default: 10; maximum: 100) (optional) (default to null)
String *keyword = keyword_example; // Search name of the Conversations (optional) (default to null)

// List Conversations
[apiInstance listConversationsWith:authorization
    page:page
    limit:limit
    keyword:keyword
              completionHandler: ^(ListConversations output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var GiKApi = require('gi_k_api');
var defaultClient = GiKApi.ApiClient.instance;

// Configure Bearer (JWT) access token for authorization: networkAuth
var networkAuth = defaultClient.authentications['networkAuth'];
networkAuth.accessToken = "YOUR ACCESS TOKEN";

// Create an instance of the API class
var api = new GiKApi.ConversationsApi()
var authorization = authorization_example; // {String} Bearer token for authentication
var opts = {
  'page': 56, // {Integer} Page to show (default: 1)
  'limit': 56, // {Integer} Amount of results (default: 10; maximum: 100)
  'keyword': keyword_example // {String} Search name of the Conversations
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.listConversations(authorization, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class listConversationsExample
    {
        public void main()
        {
            // Configure Bearer (JWT) access token for authorization: networkAuth
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            // Create an instance of the API class
            var apiInstance = new ConversationsApi();
            var authorization = authorization_example;  // String | Bearer token for authentication (default to null)
            var page = 56;  // Integer | Page to show (default: 1) (optional)  (default to null)
            var limit = 56;  // Integer | Amount of results (default: 10; maximum: 100) (optional)  (default to null)
            var keyword = keyword_example;  // String | Search name of the Conversations (optional)  (default to null)

            try {
                // List Conversations
                ListConversations result = apiInstance.listConversations(authorization, page, limit, keyword);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ConversationsApi.listConversations: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure Bearer (JWT) access token for authorization: networkAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setAccessToken('', 'YOUR_ACCESS_TOKEN');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ConversationsApi();
$authorization = authorization_example; // String | Bearer token for authentication
$page = 56; // Integer | Page to show (default: 1)
$limit = 56; // Integer | Amount of results (default: 10; maximum: 100)
$keyword = keyword_example; // String | Search name of the Conversations

try {
    $result = $api_instance->listConversations($authorization, $page, $limit, $keyword);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ConversationsApi->listConversations: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ConversationsApi;

# Configure Bearer (JWT) access token for authorization: networkAuth
$WWW::OPenAPIClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ConversationsApi->new();
my $authorization = authorization_example; # String | Bearer token for authentication
my $page = 56; # Integer | Page to show (default: 1)
my $limit = 56; # Integer | Amount of results (default: 10; maximum: 100)
my $keyword = keyword_example; # String | Search name of the Conversations

eval {
    my $result = $api_instance->listConversations(authorization => $authorization, page => $page, limit => $limit, keyword => $keyword);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ConversationsApi->listConversations: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Configure Bearer (JWT) access token for authorization: networkAuth
openapi_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# Create an instance of the API class
api_instance = openapi_client.ConversationsApi()
authorization = authorization_example # String | Bearer token for authentication (default to null)
page = 56 # Integer | Page to show (default: 1) (optional) (default to null)
limit = 56 # Integer | Amount of results (default: 10; maximum: 100) (optional) (default to null)
keyword = keyword_example # String | Search name of the Conversations (optional) (default to null)

try:
    # List Conversations
    api_response = api_instance.list_conversations(authorization, page=page, limit=limit, keyword=keyword)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ConversationsApi->listConversations: %s\n" % e)
extern crate ConversationsApi;

pub fn main() {
    let authorization = authorization_example; // String
    let page = 56; // Integer
    let limit = 56; // Integer
    let keyword = keyword_example; // String

    let mut context = ConversationsApi::Context::default();
    let result = client.listConversations(authorization, page, limit, keyword, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Header parameters
Name Description
Authorization*
String
Bearer token for authentication
Required
Query parameters
Name Description
page
Integer
Page to show (default: 1)
limit
Integer
Amount of results (default: 10; maximum: 100)
keyword
String
Search name of the Conversations

Responses


updateConversation

Update Conversation Info. If metadata exists sum the incoming to existing.

Update a conversation name or/and bot


/v1/conversations/{id}

Usage and SDK Samples

curl -X PUT \
 -H "Authorization: Bearer [[accessToken]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "https://getgik.com/v1/conversations/{id}" \
 -d '{
  "message_history" : [ {
    "user" : "Hello",
    "ai" : "Hi there!"
  } ],
  "name" : "name",
  "conversation_metadata" : "{\"user_name\":\"Pedro\",\"agent_name\":\"Luis\"}",
  "bot_id" : 0
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ConversationsApi;

import java.io.File;
import java.util.*;

public class ConversationsApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure Bearer (JWT) access token for authorization: networkAuth
        HttpBearerAuth networkAuth = (HttpBearerAuth) defaultClient.getAuthentication("networkAuth");
        networkAuth.setBearerToken("BEARER TOKEN");

        // Create an instance of the API class
        ConversationsApi apiInstance = new ConversationsApi();
        Integer id = 56; // Integer | The conversation id parameter
        String authorization = authorization_example; // String | Bearer token for authentication
        CreateConversation createConversation = ; // CreateConversation | 

        try {
            ConversationResponse result = apiInstance.updateConversation(id, authorization, createConversation);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ConversationsApi#updateConversation");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.ConversationsApi;

public class ConversationsApiExample {
    public static void main(String[] args) {
        ConversationsApi apiInstance = new ConversationsApi();
        Integer id = 56; // Integer | The conversation id parameter
        String authorization = authorization_example; // String | Bearer token for authentication
        CreateConversation createConversation = ; // CreateConversation | 

        try {
            ConversationResponse result = apiInstance.updateConversation(id, authorization, createConversation);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ConversationsApi#updateConversation");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure Bearer (JWT) access token for authorization: networkAuth
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];

// Create an instance of the API class
ConversationsApi *apiInstance = [[ConversationsApi alloc] init];
Integer *id = 56; // The conversation id parameter (default to null)
String *authorization = authorization_example; // Bearer token for authentication (default to null)
CreateConversation *createConversation = ; //  (optional)

// Update Conversation Info.  If metadata exists sum the incoming to existing.
[apiInstance updateConversationWith:id
    authorization:authorization
    createConversation:createConversation
              completionHandler: ^(ConversationResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var GiKApi = require('gi_k_api');
var defaultClient = GiKApi.ApiClient.instance;

// Configure Bearer (JWT) access token for authorization: networkAuth
var networkAuth = defaultClient.authentications['networkAuth'];
networkAuth.accessToken = "YOUR ACCESS TOKEN";

// Create an instance of the API class
var api = new GiKApi.ConversationsApi()
var id = 56; // {Integer} The conversation id parameter
var authorization = authorization_example; // {String} Bearer token for authentication
var opts = {
  'createConversation':  // {CreateConversation} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.updateConversation(id, authorization, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class updateConversationExample
    {
        public void main()
        {
            // Configure Bearer (JWT) access token for authorization: networkAuth
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            // Create an instance of the API class
            var apiInstance = new ConversationsApi();
            var id = 56;  // Integer | The conversation id parameter (default to null)
            var authorization = authorization_example;  // String | Bearer token for authentication (default to null)
            var createConversation = new CreateConversation(); // CreateConversation |  (optional) 

            try {
                // Update Conversation Info.  If metadata exists sum the incoming to existing.
                ConversationResponse result = apiInstance.updateConversation(id, authorization, createConversation);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ConversationsApi.updateConversation: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure Bearer (JWT) access token for authorization: networkAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setAccessToken('', 'YOUR_ACCESS_TOKEN');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ConversationsApi();
$id = 56; // Integer | The conversation id parameter
$authorization = authorization_example; // String | Bearer token for authentication
$createConversation = ; // CreateConversation | 

try {
    $result = $api_instance->updateConversation($id, $authorization, $createConversation);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ConversationsApi->updateConversation: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ConversationsApi;

# Configure Bearer (JWT) access token for authorization: networkAuth
$WWW::OPenAPIClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ConversationsApi->new();
my $id = 56; # Integer | The conversation id parameter
my $authorization = authorization_example; # String | Bearer token for authentication
my $createConversation = WWW::OPenAPIClient::Object::CreateConversation->new(); # CreateConversation | 

eval {
    my $result = $api_instance->updateConversation(id => $id, authorization => $authorization, createConversation => $createConversation);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ConversationsApi->updateConversation: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Configure Bearer (JWT) access token for authorization: networkAuth
openapi_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# Create an instance of the API class
api_instance = openapi_client.ConversationsApi()
id = 56 # Integer | The conversation id parameter (default to null)
authorization = authorization_example # String | Bearer token for authentication (default to null)
createConversation =  # CreateConversation |  (optional)

try:
    # Update Conversation Info.  If metadata exists sum the incoming to existing.
    api_response = api_instance.update_conversation(id, authorization, createConversation=createConversation)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ConversationsApi->updateConversation: %s\n" % e)
extern crate ConversationsApi;

pub fn main() {
    let id = 56; // Integer
    let authorization = authorization_example; // String
    let createConversation = ; // CreateConversation

    let mut context = ConversationsApi::Context::default();
    let result = client.updateConversation(id, authorization, createConversation, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
id*
Integer
The conversation id parameter
Required
Header parameters
Name Description
Authorization*
String
Bearer token for authentication
Required
Body parameters
Name Description
createConversation

A Conversation request information object

Responses


Messages

changeMessageQuality

Change the quality of message

Change the quality of message in order to track the performance of the bot.


/v1/change_quality

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Bearer [[accessToken]]" \
 -H "Accept: application/json" \
 "https://getgik.com/v1/change_quality?message_id=56&quality=56"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.MessagesApi;

import java.io.File;
import java.util.*;

public class MessagesApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure Bearer (JWT) access token for authorization: networkAuth
        HttpBearerAuth networkAuth = (HttpBearerAuth) defaultClient.getAuthentication("networkAuth");
        networkAuth.setBearerToken("BEARER TOKEN");

        // Create an instance of the API class
        MessagesApi apiInstance = new MessagesApi();
        String authorization = authorization_example; // String | Bearer token for authentication
        Integer messageId = 56; // Integer | Message Identification
        Integer quality = 56; // Integer | 1=Accepted 2=Rejected 3=edited

        try {
            ListMessages result = apiInstance.changeMessageQuality(authorization, messageId, quality);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MessagesApi#changeMessageQuality");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.MessagesApi;

public class MessagesApiExample {
    public static void main(String[] args) {
        MessagesApi apiInstance = new MessagesApi();
        String authorization = authorization_example; // String | Bearer token for authentication
        Integer messageId = 56; // Integer | Message Identification
        Integer quality = 56; // Integer | 1=Accepted 2=Rejected 3=edited

        try {
            ListMessages result = apiInstance.changeMessageQuality(authorization, messageId, quality);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MessagesApi#changeMessageQuality");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure Bearer (JWT) access token for authorization: networkAuth
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];

// Create an instance of the API class
MessagesApi *apiInstance = [[MessagesApi alloc] init];
String *authorization = authorization_example; // Bearer token for authentication (default to null)
Integer *messageId = 56; // Message Identification (optional) (default to null)
Integer *quality = 56; // 1=Accepted 2=Rejected 3=edited (optional) (default to null)

// Change the quality of message
[apiInstance changeMessageQualityWith:authorization
    messageId:messageId
    quality:quality
              completionHandler: ^(ListMessages output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var GiKApi = require('gi_k_api');
var defaultClient = GiKApi.ApiClient.instance;

// Configure Bearer (JWT) access token for authorization: networkAuth
var networkAuth = defaultClient.authentications['networkAuth'];
networkAuth.accessToken = "YOUR ACCESS TOKEN";

// Create an instance of the API class
var api = new GiKApi.MessagesApi()
var authorization = authorization_example; // {String} Bearer token for authentication
var opts = {
  'messageId': 56, // {Integer} Message Identification
  'quality': 56 // {Integer} 1=Accepted 2=Rejected 3=edited
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.changeMessageQuality(authorization, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class changeMessageQualityExample
    {
        public void main()
        {
            // Configure Bearer (JWT) access token for authorization: networkAuth
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            // Create an instance of the API class
            var apiInstance = new MessagesApi();
            var authorization = authorization_example;  // String | Bearer token for authentication (default to null)
            var messageId = 56;  // Integer | Message Identification (optional)  (default to null)
            var quality = 56;  // Integer | 1=Accepted 2=Rejected 3=edited (optional)  (default to null)

            try {
                // Change the quality of message
                ListMessages result = apiInstance.changeMessageQuality(authorization, messageId, quality);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling MessagesApi.changeMessageQuality: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure Bearer (JWT) access token for authorization: networkAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setAccessToken('', 'YOUR_ACCESS_TOKEN');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\MessagesApi();
$authorization = authorization_example; // String | Bearer token for authentication
$messageId = 56; // Integer | Message Identification
$quality = 56; // Integer | 1=Accepted 2=Rejected 3=edited

try {
    $result = $api_instance->changeMessageQuality($authorization, $messageId, $quality);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling MessagesApi->changeMessageQuality: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::MessagesApi;

# Configure Bearer (JWT) access token for authorization: networkAuth
$WWW::OPenAPIClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::MessagesApi->new();
my $authorization = authorization_example; # String | Bearer token for authentication
my $messageId = 56; # Integer | Message Identification
my $quality = 56; # Integer | 1=Accepted 2=Rejected 3=edited

eval {
    my $result = $api_instance->changeMessageQuality(authorization => $authorization, messageId => $messageId, quality => $quality);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling MessagesApi->changeMessageQuality: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Configure Bearer (JWT) access token for authorization: networkAuth
openapi_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# Create an instance of the API class
api_instance = openapi_client.MessagesApi()
authorization = authorization_example # String | Bearer token for authentication (default to null)
messageId = 56 # Integer | Message Identification (optional) (default to null)
quality = 56 # Integer | 1=Accepted 2=Rejected 3=edited (optional) (default to null)

try:
    # Change the quality of message
    api_response = api_instance.change_message_quality(authorization, messageId=messageId, quality=quality)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling MessagesApi->changeMessageQuality: %s\n" % e)
extern crate MessagesApi;

pub fn main() {
    let authorization = authorization_example; // String
    let messageId = 56; // Integer
    let quality = 56; // Integer

    let mut context = MessagesApi::Context::default();
    let result = client.changeMessageQuality(authorization, messageId, quality, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Header parameters
Name Description
Authorization*
String
Bearer token for authentication
Required
Query parameters
Name Description
message_id
Integer
Message Identification
quality
Integer
1=Accepted 2=Rejected 3=edited

Responses


getImageOrText

Get the Image or the Text of the page

Get the Image or the Text of the page. If Image Creates a temporal url for image.


/v1/getImageOrText

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Bearer [[accessToken]]" \
 -H "Accept: application/json" \
 "https://getgik.com/v1/getImageOrText?page_id=56&only_text=onlyText_example"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.MessagesApi;

import java.io.File;
import java.util.*;

public class MessagesApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure Bearer (JWT) access token for authorization: networkAuth
        HttpBearerAuth networkAuth = (HttpBearerAuth) defaultClient.getAuthentication("networkAuth");
        networkAuth.setBearerToken("BEARER TOKEN");

        // Create an instance of the API class
        MessagesApi apiInstance = new MessagesApi();
        String authorization = authorization_example; // String | Bearer token for authentication
        Integer pageId = 56; // Integer | Page Identification
        String onlyText = onlyText_example; // String | true if only wants to return text.

        try {
            ImgOrTextResponse result = apiInstance.getImageOrText(authorization, pageId, onlyText);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MessagesApi#getImageOrText");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.MessagesApi;

public class MessagesApiExample {
    public static void main(String[] args) {
        MessagesApi apiInstance = new MessagesApi();
        String authorization = authorization_example; // String | Bearer token for authentication
        Integer pageId = 56; // Integer | Page Identification
        String onlyText = onlyText_example; // String | true if only wants to return text.

        try {
            ImgOrTextResponse result = apiInstance.getImageOrText(authorization, pageId, onlyText);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MessagesApi#getImageOrText");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure Bearer (JWT) access token for authorization: networkAuth
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];

// Create an instance of the API class
MessagesApi *apiInstance = [[MessagesApi alloc] init];
String *authorization = authorization_example; // Bearer token for authentication (default to null)
Integer *pageId = 56; // Page Identification (optional) (default to null)
String *onlyText = onlyText_example; // true if only wants to return text. (optional) (default to null)

// Get the Image or the Text of the page
[apiInstance getImageOrTextWith:authorization
    pageId:pageId
    onlyText:onlyText
              completionHandler: ^(ImgOrTextResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var GiKApi = require('gi_k_api');
var defaultClient = GiKApi.ApiClient.instance;

// Configure Bearer (JWT) access token for authorization: networkAuth
var networkAuth = defaultClient.authentications['networkAuth'];
networkAuth.accessToken = "YOUR ACCESS TOKEN";

// Create an instance of the API class
var api = new GiKApi.MessagesApi()
var authorization = authorization_example; // {String} Bearer token for authentication
var opts = {
  'pageId': 56, // {Integer} Page Identification
  'onlyText': onlyText_example // {String} true if only wants to return text.
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getImageOrText(authorization, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class getImageOrTextExample
    {
        public void main()
        {
            // Configure Bearer (JWT) access token for authorization: networkAuth
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            // Create an instance of the API class
            var apiInstance = new MessagesApi();
            var authorization = authorization_example;  // String | Bearer token for authentication (default to null)
            var pageId = 56;  // Integer | Page Identification (optional)  (default to null)
            var onlyText = onlyText_example;  // String | true if only wants to return text. (optional)  (default to null)

            try {
                // Get the Image or the Text of the page
                ImgOrTextResponse result = apiInstance.getImageOrText(authorization, pageId, onlyText);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling MessagesApi.getImageOrText: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure Bearer (JWT) access token for authorization: networkAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setAccessToken('', 'YOUR_ACCESS_TOKEN');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\MessagesApi();
$authorization = authorization_example; // String | Bearer token for authentication
$pageId = 56; // Integer | Page Identification
$onlyText = onlyText_example; // String | true if only wants to return text.

try {
    $result = $api_instance->getImageOrText($authorization, $pageId, $onlyText);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling MessagesApi->getImageOrText: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::MessagesApi;

# Configure Bearer (JWT) access token for authorization: networkAuth
$WWW::OPenAPIClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::MessagesApi->new();
my $authorization = authorization_example; # String | Bearer token for authentication
my $pageId = 56; # Integer | Page Identification
my $onlyText = onlyText_example; # String | true if only wants to return text.

eval {
    my $result = $api_instance->getImageOrText(authorization => $authorization, pageId => $pageId, onlyText => $onlyText);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling MessagesApi->getImageOrText: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Configure Bearer (JWT) access token for authorization: networkAuth
openapi_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# Create an instance of the API class
api_instance = openapi_client.MessagesApi()
authorization = authorization_example # String | Bearer token for authentication (default to null)
pageId = 56 # Integer | Page Identification (optional) (default to null)
onlyText = onlyText_example # String | true if only wants to return text. (optional) (default to null)

try:
    # Get the Image or the Text of the page
    api_response = api_instance.get_image_or_text(authorization, pageId=pageId, onlyText=onlyText)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling MessagesApi->getImageOrText: %s\n" % e)
extern crate MessagesApi;

pub fn main() {
    let authorization = authorization_example; // String
    let pageId = 56; // Integer
    let onlyText = onlyText_example; // String

    let mut context = MessagesApi::Context::default();
    let result = client.getImageOrText(authorization, pageId, onlyText, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Header parameters
Name Description
Authorization*
String
Bearer token for authentication
Required
Query parameters
Name Description
page_id
Integer
Page Identification
only_text
String
true if only wants to return text.

Responses


listMessages

List of Messages

List of Messages with criteria


/v1/messages

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Bearer [[accessToken]]" \
 -H "Accept: application/json" \
 "https://getgik.com/v1/messages?page=56&limit=56&keyword=keyword_example&conversation_id=56"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.MessagesApi;

import java.io.File;
import java.util.*;

public class MessagesApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure Bearer (JWT) access token for authorization: networkAuth
        HttpBearerAuth networkAuth = (HttpBearerAuth) defaultClient.getAuthentication("networkAuth");
        networkAuth.setBearerToken("BEARER TOKEN");

        // Create an instance of the API class
        MessagesApi apiInstance = new MessagesApi();
        String authorization = authorization_example; // String | Bearer token for authentication
        Integer page = 56; // Integer | Page to show (default: 1)
        Integer limit = 56; // Integer | Amount of results (default: 10; maximum: 100)
        String keyword = keyword_example; // String | Search text of the Message
        Integer conversationId = 56; // Integer | id of the conversation that message belongs

        try {
            ListMessages result = apiInstance.listMessages(authorization, page, limit, keyword, conversationId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MessagesApi#listMessages");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.MessagesApi;

public class MessagesApiExample {
    public static void main(String[] args) {
        MessagesApi apiInstance = new MessagesApi();
        String authorization = authorization_example; // String | Bearer token for authentication
        Integer page = 56; // Integer | Page to show (default: 1)
        Integer limit = 56; // Integer | Amount of results (default: 10; maximum: 100)
        String keyword = keyword_example; // String | Search text of the Message
        Integer conversationId = 56; // Integer | id of the conversation that message belongs

        try {
            ListMessages result = apiInstance.listMessages(authorization, page, limit, keyword, conversationId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MessagesApi#listMessages");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure Bearer (JWT) access token for authorization: networkAuth
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];

// Create an instance of the API class
MessagesApi *apiInstance = [[MessagesApi alloc] init];
String *authorization = authorization_example; // Bearer token for authentication (default to null)
Integer *page = 56; // Page to show (default: 1) (optional) (default to null)
Integer *limit = 56; // Amount of results (default: 10; maximum: 100) (optional) (default to null)
String *keyword = keyword_example; // Search text of the Message (optional) (default to null)
Integer *conversationId = 56; // id of the conversation that message belongs (optional) (default to null)

// List of Messages
[apiInstance listMessagesWith:authorization
    page:page
    limit:limit
    keyword:keyword
    conversationId:conversationId
              completionHandler: ^(ListMessages output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var GiKApi = require('gi_k_api');
var defaultClient = GiKApi.ApiClient.instance;

// Configure Bearer (JWT) access token for authorization: networkAuth
var networkAuth = defaultClient.authentications['networkAuth'];
networkAuth.accessToken = "YOUR ACCESS TOKEN";

// Create an instance of the API class
var api = new GiKApi.MessagesApi()
var authorization = authorization_example; // {String} Bearer token for authentication
var opts = {
  'page': 56, // {Integer} Page to show (default: 1)
  'limit': 56, // {Integer} Amount of results (default: 10; maximum: 100)
  'keyword': keyword_example, // {String} Search text of the Message
  'conversationId': 56 // {Integer} id of the conversation that message belongs
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.listMessages(authorization, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class listMessagesExample
    {
        public void main()
        {
            // Configure Bearer (JWT) access token for authorization: networkAuth
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            // Create an instance of the API class
            var apiInstance = new MessagesApi();
            var authorization = authorization_example;  // String | Bearer token for authentication (default to null)
            var page = 56;  // Integer | Page to show (default: 1) (optional)  (default to null)
            var limit = 56;  // Integer | Amount of results (default: 10; maximum: 100) (optional)  (default to null)
            var keyword = keyword_example;  // String | Search text of the Message (optional)  (default to null)
            var conversationId = 56;  // Integer | id of the conversation that message belongs (optional)  (default to null)

            try {
                // List of Messages
                ListMessages result = apiInstance.listMessages(authorization, page, limit, keyword, conversationId);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling MessagesApi.listMessages: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure Bearer (JWT) access token for authorization: networkAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setAccessToken('', 'YOUR_ACCESS_TOKEN');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\MessagesApi();
$authorization = authorization_example; // String | Bearer token for authentication
$page = 56; // Integer | Page to show (default: 1)
$limit = 56; // Integer | Amount of results (default: 10; maximum: 100)
$keyword = keyword_example; // String | Search text of the Message
$conversationId = 56; // Integer | id of the conversation that message belongs

try {
    $result = $api_instance->listMessages($authorization, $page, $limit, $keyword, $conversationId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling MessagesApi->listMessages: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::MessagesApi;

# Configure Bearer (JWT) access token for authorization: networkAuth
$WWW::OPenAPIClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::MessagesApi->new();
my $authorization = authorization_example; # String | Bearer token for authentication
my $page = 56; # Integer | Page to show (default: 1)
my $limit = 56; # Integer | Amount of results (default: 10; maximum: 100)
my $keyword = keyword_example; # String | Search text of the Message
my $conversationId = 56; # Integer | id of the conversation that message belongs

eval {
    my $result = $api_instance->listMessages(authorization => $authorization, page => $page, limit => $limit, keyword => $keyword, conversationId => $conversationId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling MessagesApi->listMessages: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Configure Bearer (JWT) access token for authorization: networkAuth
openapi_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# Create an instance of the API class
api_instance = openapi_client.MessagesApi()
authorization = authorization_example # String | Bearer token for authentication (default to null)
page = 56 # Integer | Page to show (default: 1) (optional) (default to null)
limit = 56 # Integer | Amount of results (default: 10; maximum: 100) (optional) (default to null)
keyword = keyword_example # String | Search text of the Message (optional) (default to null)
conversationId = 56 # Integer | id of the conversation that message belongs (optional) (default to null)

try:
    # List of Messages
    api_response = api_instance.list_messages(authorization, page=page, limit=limit, keyword=keyword, conversationId=conversationId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling MessagesApi->listMessages: %s\n" % e)
extern crate MessagesApi;

pub fn main() {
    let authorization = authorization_example; // String
    let page = 56; // Integer
    let limit = 56; // Integer
    let keyword = keyword_example; // String
    let conversationId = 56; // Integer

    let mut context = MessagesApi::Context::default();
    let result = client.listMessages(authorization, page, limit, keyword, conversationId, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Header parameters
Name Description
Authorization*
String
Bearer token for authentication
Required
Query parameters
Name Description
page
Integer
Page to show (default: 1)
limit
Integer
Amount of results (default: 10; maximum: 100)
keyword
String
Search text of the Message
conversation_id
Integer
id of the conversation that message belongs

Responses


llm

Make a LLM request

Creates a request for a LLM message response


/v1/llm

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Bearer [[accessToken]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "https://getgik.com/v1/llm" \
 -d '{
  "prompt" : "Eres un Banco La Cruz y tiene creditos como:  Credito mujer,  Credito comerciante y credito libre",
  "text" : "Can you provide me with my account summary?",
  "message_history" : [ {
    "user" : "How is my portfolio doing?",
    "ai" : "Your portfolio growth is positive."
  }, {
    "user" : "Return over the past year?",
    "ai" : "Your ROI stands as of latest analysis at 14%"
  } ]
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.MessagesApi;

import java.io.File;
import java.util.*;

public class MessagesApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure Bearer (JWT) access token for authorization: networkAuth
        HttpBearerAuth networkAuth = (HttpBearerAuth) defaultClient.getAuthentication("networkAuth");
        networkAuth.setBearerToken("BEARER TOKEN");

        // Create an instance of the API class
        MessagesApi apiInstance = new MessagesApi();
        String authorization = authorization_example; // String | Bearer token for authentication
        LLMRequest lLMRequest = ; // LLMRequest | 

        try {
            LLMResponse result = apiInstance.llm(authorization, lLMRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MessagesApi#llm");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.MessagesApi;

public class MessagesApiExample {
    public static void main(String[] args) {
        MessagesApi apiInstance = new MessagesApi();
        String authorization = authorization_example; // String | Bearer token for authentication
        LLMRequest lLMRequest = ; // LLMRequest | 

        try {
            LLMResponse result = apiInstance.llm(authorization, lLMRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MessagesApi#llm");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure Bearer (JWT) access token for authorization: networkAuth
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];

// Create an instance of the API class
MessagesApi *apiInstance = [[MessagesApi alloc] init];
String *authorization = authorization_example; // Bearer token for authentication (default to null)
LLMRequest *lLMRequest = ; //  (optional)

// Make a LLM request
[apiInstance llmWith:authorization
    lLMRequest:lLMRequest
              completionHandler: ^(LLMResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var GiKApi = require('gi_k_api');
var defaultClient = GiKApi.ApiClient.instance;

// Configure Bearer (JWT) access token for authorization: networkAuth
var networkAuth = defaultClient.authentications['networkAuth'];
networkAuth.accessToken = "YOUR ACCESS TOKEN";

// Create an instance of the API class
var api = new GiKApi.MessagesApi()
var authorization = authorization_example; // {String} Bearer token for authentication
var opts = {
  'lLMRequest':  // {LLMRequest} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.llm(authorization, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class llmExample
    {
        public void main()
        {
            // Configure Bearer (JWT) access token for authorization: networkAuth
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            // Create an instance of the API class
            var apiInstance = new MessagesApi();
            var authorization = authorization_example;  // String | Bearer token for authentication (default to null)
            var lLMRequest = new LLMRequest(); // LLMRequest |  (optional) 

            try {
                // Make a LLM request
                LLMResponse result = apiInstance.llm(authorization, lLMRequest);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling MessagesApi.llm: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure Bearer (JWT) access token for authorization: networkAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setAccessToken('', 'YOUR_ACCESS_TOKEN');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\MessagesApi();
$authorization = authorization_example; // String | Bearer token for authentication
$lLMRequest = ; // LLMRequest | 

try {
    $result = $api_instance->llm($authorization, $lLMRequest);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling MessagesApi->llm: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::MessagesApi;

# Configure Bearer (JWT) access token for authorization: networkAuth
$WWW::OPenAPIClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::MessagesApi->new();
my $authorization = authorization_example; # String | Bearer token for authentication
my $lLMRequest = WWW::OPenAPIClient::Object::LLMRequest->new(); # LLMRequest | 

eval {
    my $result = $api_instance->llm(authorization => $authorization, lLMRequest => $lLMRequest);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling MessagesApi->llm: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Configure Bearer (JWT) access token for authorization: networkAuth
openapi_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# Create an instance of the API class
api_instance = openapi_client.MessagesApi()
authorization = authorization_example # String | Bearer token for authentication (default to null)
lLMRequest =  # LLMRequest |  (optional)

try:
    # Make a LLM request
    api_response = api_instance.llm(authorization, lLMRequest=lLMRequest)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling MessagesApi->llm: %s\n" % e)
extern crate MessagesApi;

pub fn main() {
    let authorization = authorization_example; // String
    let lLMRequest = ; // LLMRequest

    let mut context = MessagesApi::Context::default();
    let result = client.llm(authorization, lLMRequest, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Header parameters
Name Description
Authorization*
String
Bearer token for authentication
Required
Body parameters
Name Description
lLMRequest

A Message process request object

Responses


sendMessage

Process a message for a Conversation

Creates a request for a LLM message response


/v1/messages

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Bearer [[accessToken]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "https://getgik.com/v1/messages" \
 -d '{
  "text" : "Can you provide me with my account summary?",
  "conversation_id" : "891abc31ef082_cut",
  "message_history" : [ {
    "user" : "How is my portfolio doing?",
    "ai" : "Your portfolio growth is positive."
  }, {
    "user" : "Return over the past year?",
    "ai" : "Your ROI stands as of latest analysis at 14%"
  } ]
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.MessagesApi;

import java.io.File;
import java.util.*;

public class MessagesApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure Bearer (JWT) access token for authorization: networkAuth
        HttpBearerAuth networkAuth = (HttpBearerAuth) defaultClient.getAuthentication("networkAuth");
        networkAuth.setBearerToken("BEARER TOKEN");

        // Create an instance of the API class
        MessagesApi apiInstance = new MessagesApi();
        String authorization = authorization_example; // String | Bearer token for authentication
        MessageRequest messageRequest = ; // MessageRequest | 

        try {
            MessageResponse result = apiInstance.sendMessage(authorization, messageRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MessagesApi#sendMessage");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.MessagesApi;

public class MessagesApiExample {
    public static void main(String[] args) {
        MessagesApi apiInstance = new MessagesApi();
        String authorization = authorization_example; // String | Bearer token for authentication
        MessageRequest messageRequest = ; // MessageRequest | 

        try {
            MessageResponse result = apiInstance.sendMessage(authorization, messageRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MessagesApi#sendMessage");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure Bearer (JWT) access token for authorization: networkAuth
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];

// Create an instance of the API class
MessagesApi *apiInstance = [[MessagesApi alloc] init];
String *authorization = authorization_example; // Bearer token for authentication (default to null)
MessageRequest *messageRequest = ; //  (optional)

// Process a message for a Conversation
[apiInstance sendMessageWith:authorization
    messageRequest:messageRequest
              completionHandler: ^(MessageResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var GiKApi = require('gi_k_api');
var defaultClient = GiKApi.ApiClient.instance;

// Configure Bearer (JWT) access token for authorization: networkAuth
var networkAuth = defaultClient.authentications['networkAuth'];
networkAuth.accessToken = "YOUR ACCESS TOKEN";

// Create an instance of the API class
var api = new GiKApi.MessagesApi()
var authorization = authorization_example; // {String} Bearer token for authentication
var opts = {
  'messageRequest':  // {MessageRequest} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.sendMessage(authorization, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class sendMessageExample
    {
        public void main()
        {
            // Configure Bearer (JWT) access token for authorization: networkAuth
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            // Create an instance of the API class
            var apiInstance = new MessagesApi();
            var authorization = authorization_example;  // String | Bearer token for authentication (default to null)
            var messageRequest = new MessageRequest(); // MessageRequest |  (optional) 

            try {
                // Process a message for a Conversation
                MessageResponse result = apiInstance.sendMessage(authorization, messageRequest);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling MessagesApi.sendMessage: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure Bearer (JWT) access token for authorization: networkAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setAccessToken('', 'YOUR_ACCESS_TOKEN');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\MessagesApi();
$authorization = authorization_example; // String | Bearer token for authentication
$messageRequest = ; // MessageRequest | 

try {
    $result = $api_instance->sendMessage($authorization, $messageRequest);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling MessagesApi->sendMessage: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::MessagesApi;

# Configure Bearer (JWT) access token for authorization: networkAuth
$WWW::OPenAPIClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::MessagesApi->new();
my $authorization = authorization_example; # String | Bearer token for authentication
my $messageRequest = WWW::OPenAPIClient::Object::MessageRequest->new(); # MessageRequest | 

eval {
    my $result = $api_instance->sendMessage(authorization => $authorization, messageRequest => $messageRequest);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling MessagesApi->sendMessage: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Configure Bearer (JWT) access token for authorization: networkAuth
openapi_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# Create an instance of the API class
api_instance = openapi_client.MessagesApi()
authorization = authorization_example # String | Bearer token for authentication (default to null)
messageRequest =  # MessageRequest |  (optional)

try:
    # Process a message for a Conversation
    api_response = api_instance.send_message(authorization, messageRequest=messageRequest)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling MessagesApi->sendMessage: %s\n" % e)
extern crate MessagesApi;

pub fn main() {
    let authorization = authorization_example; // String
    let messageRequest = ; // MessageRequest

    let mut context = MessagesApi::Context::default();
    let result = client.sendMessage(authorization, messageRequest, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Header parameters
Name Description
Authorization*
String
Bearer token for authentication
Required
Body parameters
Name Description
messageRequest

A Message process request object

Responses


WebBotConfig

getWebBotConfig

Get a Web Bot Configuration

Retrieves the configuration settings for a specific web bot. If bot_id is set search for it but if not exists uses enterprise_default


/v1/get_web_bot_config

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Bearer [[accessToken]]" \
 -H "Accept: application/json" \
 "https://getgik.com/v1/get_web_bot_config?bot_id=56&last_update_date=lastUpdateDate_example"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.WebBotConfigApi;

import java.io.File;
import java.util.*;

public class WebBotConfigApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure Bearer (JWT) access token for authorization: networkAuth
        HttpBearerAuth networkAuth = (HttpBearerAuth) defaultClient.getAuthentication("networkAuth");
        networkAuth.setBearerToken("BEARER TOKEN");

        // Create an instance of the API class
        WebBotConfigApi apiInstance = new WebBotConfigApi();
        String authorization = authorization_example; // String | Bearer token for authentication
        Integer botId = 56; // Integer | Id of the bot to filter by
        String lastUpdateDate = lastUpdateDate_example; // String | Last update date to filter by

        try {
            WebBotConfigResponse result = apiInstance.getWebBotConfig(authorization, botId, lastUpdateDate);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling WebBotConfigApi#getWebBotConfig");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.WebBotConfigApi;

public class WebBotConfigApiExample {
    public static void main(String[] args) {
        WebBotConfigApi apiInstance = new WebBotConfigApi();
        String authorization = authorization_example; // String | Bearer token for authentication
        Integer botId = 56; // Integer | Id of the bot to filter by
        String lastUpdateDate = lastUpdateDate_example; // String | Last update date to filter by

        try {
            WebBotConfigResponse result = apiInstance.getWebBotConfig(authorization, botId, lastUpdateDate);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling WebBotConfigApi#getWebBotConfig");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure Bearer (JWT) access token for authorization: networkAuth
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];

// Create an instance of the API class
WebBotConfigApi *apiInstance = [[WebBotConfigApi alloc] init];
String *authorization = authorization_example; // Bearer token for authentication (default to null)
Integer *botId = 56; // Id of the bot to filter by (optional) (default to null)
String *lastUpdateDate = lastUpdateDate_example; // Last update date to filter by (optional) (default to null)

// Get a Web Bot Configuration
[apiInstance getWebBotConfigWith:authorization
    botId:botId
    lastUpdateDate:lastUpdateDate
              completionHandler: ^(WebBotConfigResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var GiKApi = require('gi_k_api');
var defaultClient = GiKApi.ApiClient.instance;

// Configure Bearer (JWT) access token for authorization: networkAuth
var networkAuth = defaultClient.authentications['networkAuth'];
networkAuth.accessToken = "YOUR ACCESS TOKEN";

// Create an instance of the API class
var api = new GiKApi.WebBotConfigApi()
var authorization = authorization_example; // {String} Bearer token for authentication
var opts = {
  'botId': 56, // {Integer} Id of the bot to filter by
  'lastUpdateDate': lastUpdateDate_example // {String} Last update date to filter by
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getWebBotConfig(authorization, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class getWebBotConfigExample
    {
        public void main()
        {
            // Configure Bearer (JWT) access token for authorization: networkAuth
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            // Create an instance of the API class
            var apiInstance = new WebBotConfigApi();
            var authorization = authorization_example;  // String | Bearer token for authentication (default to null)
            var botId = 56;  // Integer | Id of the bot to filter by (optional)  (default to null)
            var lastUpdateDate = lastUpdateDate_example;  // String | Last update date to filter by (optional)  (default to null)

            try {
                // Get a Web Bot Configuration
                WebBotConfigResponse result = apiInstance.getWebBotConfig(authorization, botId, lastUpdateDate);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling WebBotConfigApi.getWebBotConfig: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure Bearer (JWT) access token for authorization: networkAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setAccessToken('', 'YOUR_ACCESS_TOKEN');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\WebBotConfigApi();
$authorization = authorization_example; // String | Bearer token for authentication
$botId = 56; // Integer | Id of the bot to filter by
$lastUpdateDate = lastUpdateDate_example; // String | Last update date to filter by

try {
    $result = $api_instance->getWebBotConfig($authorization, $botId, $lastUpdateDate);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling WebBotConfigApi->getWebBotConfig: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::WebBotConfigApi;

# Configure Bearer (JWT) access token for authorization: networkAuth
$WWW::OPenAPIClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::WebBotConfigApi->new();
my $authorization = authorization_example; # String | Bearer token for authentication
my $botId = 56; # Integer | Id of the bot to filter by
my $lastUpdateDate = lastUpdateDate_example; # String | Last update date to filter by

eval {
    my $result = $api_instance->getWebBotConfig(authorization => $authorization, botId => $botId, lastUpdateDate => $lastUpdateDate);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling WebBotConfigApi->getWebBotConfig: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Configure Bearer (JWT) access token for authorization: networkAuth
openapi_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# Create an instance of the API class
api_instance = openapi_client.WebBotConfigApi()
authorization = authorization_example # String | Bearer token for authentication (default to null)
botId = 56 # Integer | Id of the bot to filter by (optional) (default to null)
lastUpdateDate = lastUpdateDate_example # String | Last update date to filter by (optional) (default to null)

try:
    # Get a Web Bot Configuration
    api_response = api_instance.get_web_bot_config(authorization, botId=botId, lastUpdateDate=lastUpdateDate)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling WebBotConfigApi->getWebBotConfig: %s\n" % e)
extern crate WebBotConfigApi;

pub fn main() {
    let authorization = authorization_example; // String
    let botId = 56; // Integer
    let lastUpdateDate = lastUpdateDate_example; // String

    let mut context = WebBotConfigApi::Context::default();
    let result = client.getWebBotConfig(authorization, botId, lastUpdateDate, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Header parameters
Name Description
Authorization*
String
Bearer token for authentication
Required
Query parameters
Name Description
bot_id
Integer
Id of the bot to filter by
last_update_date
String
Last update date to filter by

Responses