search
Search in universities around the world
/search
Usage and SDK Samples
curl -X GET "https://api.apieco.ir/universities/search?country =&name ="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.SearchApi;
import java.io.File;
import java.util.*;
public class SearchApiExample {
public static void main(String[] args) {
SearchApi apiInstance = new SearchApi();
String apiecoKey = apiecoKey_example; // String |
String country = country _example; // String | country of the university
String name = name _example; // String | name of the university
try {
array[inline_response_200] result = apiInstance.search(apiecoKey, country , name );
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling SearchApi#search");
e.printStackTrace();
}
}
}
import io.swagger.client.api.SearchApi;
public class SearchApiExample {
public static void main(String[] args) {
SearchApi apiInstance = new SearchApi();
String apiecoKey = apiecoKey_example; // String |
String country = country _example; // String | country of the university
String name = name _example; // String | name of the university
try {
array[inline_response_200] result = apiInstance.search(apiecoKey, country , name );
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling SearchApi#search");
e.printStackTrace();
}
}
}
String *apiecoKey = apiecoKey_example; //
String *country = country _example; // country of the university (optional)
String *name = name _example; // name of the university (optional)
SearchApi *apiInstance = [[SearchApi alloc] init];
// Search in universities around the world
[apiInstance searchWith:apiecoKey
country :country
name :name
completionHandler: ^(array[inline_response_200] output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var UniversityDomainsAndNamesDataListApi = require('university_domains_and_names_data_list__api');
var api = new UniversityDomainsAndNamesDataListApi.SearchApi()
var apiecoKey = apiecoKey_example; // {String}
var opts = {
'country ': country _example, // {String} country of the university
'name ': name _example // {String} name of the university
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.search(apiecoKey, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class searchExample
{
public void main()
{
var apiInstance = new SearchApi();
var apiecoKey = apiecoKey_example; // String |
var country = country _example; // String | country of the university (optional)
var name = name _example; // String | name of the university (optional)
try
{
// Search in universities around the world
array[inline_response_200] result = apiInstance.search(apiecoKey, country , name );
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling SearchApi.search: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\Api\SearchApi();
$apiecoKey = apiecoKey_example; // String |
$country = country _example; // String | country of the university
$name = name _example; // String | name of the university
try {
$result = $api_instance->search($apiecoKey, $country , $name );
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling SearchApi->search: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::SearchApi;
my $api_instance = WWW::SwaggerClient::SearchApi->new();
my $apiecoKey = apiecoKey_example; # String |
my $country = country _example; # String | country of the university
my $name = name _example; # String | name of the university
eval {
my $result = $api_instance->search(apiecoKey => $apiecoKey, country => $country , name => $name );
print Dumper($result);
};
if ($@) {
warn "Exception when calling SearchApi->search: $@\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.SearchApi()
apiecoKey = apiecoKey_example # String |
country = country _example # String | country of the university (optional)
name = name _example # String | name of the university (optional)
try:
# Search in universities around the world
api_response = api_instance.search(apiecoKey, country =country , name =name )
pprint(api_response)
except ApiException as e:
print("Exception when calling SearchApi->search: %s\n" % e)
Parameters
Header parameters
Name | Description |
---|---|
apieco-key* |
String
Required
|
Query parameters
Name | Description |
---|---|
country |
String
country of the university
|
name |
String
name of the university
|