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=&limit=&keyword="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.BotsApi;
import java.io.File;
import java.util.*;
public class BotsApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
BotsApi apiInstance = new BotsApi();
page page = ; // page | Page to show (default: 1)
limit limit = ; // limit | Amount of results (default: 10; maximum: 100)
keyword keyword = ; // keyword | Search name of the Bot
try {
ListBots result = apiInstance.listBots(page, limit, keyword);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling BotsApi#listBots");
e.printStackTrace();
}
}
}
import io.swagger.client.api.BotsApi;
public class BotsApiExample {
public static void main(String[] args) {
BotsApi apiInstance = new BotsApi();
page page = ; // page | Page to show (default: 1)
limit limit = ; // limit | Amount of results (default: 10; maximum: 100)
keyword keyword = ; // keyword | Search name of the Bot
try {
ListBots result = apiInstance.listBots(page, limit, keyword);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling BotsApi#listBots");
e.printStackTrace();
}
}
}
Configuration *apiConfig = [Configuration sharedConfig];
page *page = ; // Page to show (default: 1) (optional)
limit *limit = ; // Amount of results (default: 10; maximum: 100) (optional)
keyword *keyword = ; // Search name of the Bot (optional)
BotsApi *apiInstance = [[BotsApi alloc] init];
// List of Bots
[apiInstance listBotsWith: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;
var api = new GiKApi.BotsApi()
var opts = {
'page': , // {{page}} Page to show (default: 1)
'limit': , // {{limit}} Amount of results (default: 10; maximum: 100)
'keyword': // {{keyword}} 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(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class listBotsExample
{
public void main()
{
var apiInstance = new BotsApi();
var page = new page(); // page | Page to show (default: 1) (optional)
var limit = new limit(); // limit | Amount of results (default: 10; maximum: 100) (optional)
var keyword = new keyword(); // keyword | Search name of the Bot (optional)
try
{
// List of Bots
ListBots result = apiInstance.listBots(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');
$api_instance = new Swagger\Client\ApiBotsApi();
$page = ; // page | Page to show (default: 1)
$limit = ; // limit | Amount of results (default: 10; maximum: 100)
$keyword = ; // keyword | Search name of the Bot
try {
$result = $api_instance->listBots($page, $limit, $keyword);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling BotsApi->listBots: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::BotsApi;
my $api_instance = WWW::SwaggerClient::BotsApi->new();
my $page = ; # page | Page to show (default: 1)
my $limit = ; # limit | Amount of results (default: 10; maximum: 100)
my $keyword = ; # keyword | Search name of the Bot
eval {
my $result = $api_instance->listBots(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 swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = swagger_client.BotsApi()
page = # page | Page to show (default: 1) (optional)
limit = # limit | Amount of results (default: 10; maximum: 100) (optional)
keyword = # keyword | Search name of the Bot (optional)
try:
# List of Bots
api_response = api_instance.list_bots(page=page, limit=limit, keyword=keyword)
pprint(api_response)
except ApiException as e:
print("Exception when calling BotsApi->listBots: %s\n" % e)
Parameters
Name | Description |
---|---|
page |
page
Page to show (default: 1)
|
limit |
limit
Amount of results (default: 10; maximum: 100)
|
keyword |
keyword
Search name of the Bot
|