eventsSearchGet
Filter events.
/events/search
Usage and SDK Samples
curl -X GET "https://api.apieco.ir/lahzenegar/v3/events/search?query="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.EventsApi;
import java.io.File;
import java.util.*;
public class EventsApiExample {
public static void main(String[] args) {
EventsApi apiInstance = new EventsApi();
String query = query_example; // String |
try {
array[EVENT OBJECT] result = apiInstance.eventsSearchGet(query);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling EventsApi#eventsSearchGet");
e.printStackTrace();
}
}
}
import io.swagger.client.api.EventsApi;
public class EventsApiExample {
public static void main(String[] args) {
EventsApi apiInstance = new EventsApi();
String query = query_example; // String |
try {
array[EVENT OBJECT] result = apiInstance.eventsSearchGet(query);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling EventsApi#eventsSearchGet");
e.printStackTrace();
}
}
}
String *query = query_example; // (optional)
EventsApi *apiInstance = [[EventsApi alloc] init];
[apiInstance eventsSearchGetWith:query
completionHandler: ^(array[EVENT OBJECT] output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var LahzenegarApi = require('lahzenegar_api');
var api = new LahzenegarApi.EventsApi()
var opts = {
'query': query_example // {String}
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.eventsSearchGet(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class eventsSearchGetExample
{
public void main()
{
var apiInstance = new EventsApi();
var query = query_example; // String | (optional)
try
{
array[EVENT OBJECT] result = apiInstance.eventsSearchGet(query);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling EventsApi.eventsSearchGet: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\Api\EventsApi();
$query = query_example; // String |
try {
$result = $api_instance->eventsSearchGet($query);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling EventsApi->eventsSearchGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::EventsApi;
my $api_instance = WWW::SwaggerClient::EventsApi->new();
my $query = query_example; # String |
eval {
my $result = $api_instance->eventsSearchGet(query => $query);
print Dumper($result);
};
if ($@) {
warn "Exception when calling EventsApi->eventsSearchGet: $@\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.EventsApi()
query = query_example # String | (optional)
try:
api_response = api_instance.events_search_get(query=query)
pprint(api_response)
except ApiException as e:
print("Exception when calling EventsApi->eventsSearchGet: %s\n" % e)
Parameters
Name | Description |
---|---|
query |
String
|