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
Name | Description |
---|---|
Authorization* |
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
|