asylumApplications
Asylum Applications
Asylum claims submitted by year and countries of asylum and origin. Claims are submitted by asylum applicants and are applications for international protection.
/asylum-applications/
Usage and SDK Samples
curl -X GET \
-H "Accept: application/json" \
"https://api.unhcr.org/population/v1/asylum-applications/?limit=56&page=56&yearFrom=56&yearTo=56&year=&download=true&coo=coo_example&coa=coa_example&coo_all=true&coa_all=true&cf_type=cfType_example"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;
import java.io.File;
import java.util.*;
public class DefaultApiExample {
public static void main(String[] args) {
// Create an instance of the API class
DefaultApi apiInstance = new DefaultApi();
Integer limit = 56; // Integer | The numbers of items to return.
Integer page = 56; // Integer | If pagination is available, send the number of page you wish to fetch.
Integer yearFrom = 56; // Integer | The start year from which results will be filtered. The data results are inclusive of the given year (e.g. 2010 would result in data from and including 2010 up until the latest year, or the year specified in yearTo).
Integer yearTo = 56; // Integer | The end year up to which results will be filtered. The data results are inclusive of the given year (e.g. 2015 would result in data up to and including 2015 back through the available data, or the year specified in yearFrom).
array[Integer] year = ; // array[Integer] | Send array of years.
Boolean download = true; // Boolean | Get the result as a CSV file.
String coo = coo_example; // String | Filter the data to one or more countries of origin. The countries are specified using the three character country codes (e,g, AFG for Afghanistan). Use a comma separated list to filter to multiple countries (e.g. “AFG,PAK”) or use the array notation e.g. “coo[]=AFG&coo[]=PAK”. By default, UNHCR’s country codes are used. To use three character ISO codes instead, see the cfType parameter. See the lookup between UNHCR and ISO3 country codes, including also the regions. If not specified, data for this dimension will be summed and aggregated to one row.
String coa = coa_example; // String | Filter the data to one or more countries of asylum. The countries are specified using the three character country codes (e,g, AFG for Afghanistan). Use a comma separated list to filter to multiple countries (e.g. “AFG,PAK”) or use the array notation e.g. “coo[]=AFG&coo[]=PAK”. By default, UNHCR’s country codes are used. To use three character ISO codes instead, see the cfType parameter. See the lookup between UNHCR and ISO3 country codes, including also the regions. If not specified, data for this dimension will be summed and aggregated to one row.
Boolean cooAll = true; // Boolean | Automatically includes all countries of origin in the response if set to “true”. If set, this overrides the specific selection of countries provided to CoO.
Boolean coaAll = true; // Boolean | Automatically includes all countries of asylum in the response if set to “true”. If set, this overrides the specific selection of countries provided to CoA.
String cfType = cfType_example; // String | If set to “ISO” will cause the searches by origin and asylum to use the ISO3 codes. See the summary lookup table between UNHCR and ISO codes.
try {
AsylumApplicationsPagination result = apiInstance.asylumApplications(limit, page, yearFrom, yearTo, year, download, coo, coa, cooAll, coaAll, cfType);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#asylumApplications");
e.printStackTrace();
}
}
}
import 'package:openapi/api.dart';
final api_instance = DefaultApi();
final Integer limit = new Integer(); // Integer | The numbers of items to return.
final Integer page = new Integer(); // Integer | If pagination is available, send the number of page you wish to fetch.
final Integer yearFrom = new Integer(); // Integer | The start year from which results will be filtered. The data results are inclusive of the given year (e.g. 2010 would result in data from and including 2010 up until the latest year, or the year specified in yearTo).
final Integer yearTo = new Integer(); // Integer | The end year up to which results will be filtered. The data results are inclusive of the given year (e.g. 2015 would result in data up to and including 2015 back through the available data, or the year specified in yearFrom).
final array[Integer] year = new array[Integer](); // array[Integer] | Send array of years.
final Boolean download = new Boolean(); // Boolean | Get the result as a CSV file.
final String coo = new String(); // String | Filter the data to one or more countries of origin. The countries are specified using the three character country codes (e,g, AFG for Afghanistan). Use a comma separated list to filter to multiple countries (e.g. “AFG,PAK”) or use the array notation e.g. “coo[]=AFG&coo[]=PAK”. By default, UNHCR’s country codes are used. To use three character ISO codes instead, see the cfType parameter. See the lookup between UNHCR and ISO3 country codes, including also the regions. If not specified, data for this dimension will be summed and aggregated to one row.
final String coa = new String(); // String | Filter the data to one or more countries of asylum. The countries are specified using the three character country codes (e,g, AFG for Afghanistan). Use a comma separated list to filter to multiple countries (e.g. “AFG,PAK”) or use the array notation e.g. “coo[]=AFG&coo[]=PAK”. By default, UNHCR’s country codes are used. To use three character ISO codes instead, see the cfType parameter. See the lookup between UNHCR and ISO3 country codes, including also the regions. If not specified, data for this dimension will be summed and aggregated to one row.
final Boolean cooAll = new Boolean(); // Boolean | Automatically includes all countries of origin in the response if set to “true”. If set, this overrides the specific selection of countries provided to CoO.
final Boolean coaAll = new Boolean(); // Boolean | Automatically includes all countries of asylum in the response if set to “true”. If set, this overrides the specific selection of countries provided to CoA.
final String cfType = new String(); // String | If set to “ISO” will cause the searches by origin and asylum to use the ISO3 codes. See the summary lookup table between UNHCR and ISO codes.
try {
final result = await api_instance.asylumApplications(limit, page, yearFrom, yearTo, year, download, coo, coa, cooAll, coaAll, cfType);
print(result);
} catch (e) {
print('Exception when calling DefaultApi->asylumApplications: $e\n');
}
import org.openapitools.client.api.DefaultApi;
public class DefaultApiExample {
public static void main(String[] args) {
DefaultApi apiInstance = new DefaultApi();
Integer limit = 56; // Integer | The numbers of items to return.
Integer page = 56; // Integer | If pagination is available, send the number of page you wish to fetch.
Integer yearFrom = 56; // Integer | The start year from which results will be filtered. The data results are inclusive of the given year (e.g. 2010 would result in data from and including 2010 up until the latest year, or the year specified in yearTo).
Integer yearTo = 56; // Integer | The end year up to which results will be filtered. The data results are inclusive of the given year (e.g. 2015 would result in data up to and including 2015 back through the available data, or the year specified in yearFrom).
array[Integer] year = ; // array[Integer] | Send array of years.
Boolean download = true; // Boolean | Get the result as a CSV file.
String coo = coo_example; // String | Filter the data to one or more countries of origin. The countries are specified using the three character country codes (e,g, AFG for Afghanistan). Use a comma separated list to filter to multiple countries (e.g. “AFG,PAK”) or use the array notation e.g. “coo[]=AFG&coo[]=PAK”. By default, UNHCR’s country codes are used. To use three character ISO codes instead, see the cfType parameter. See the lookup between UNHCR and ISO3 country codes, including also the regions. If not specified, data for this dimension will be summed and aggregated to one row.
String coa = coa_example; // String | Filter the data to one or more countries of asylum. The countries are specified using the three character country codes (e,g, AFG for Afghanistan). Use a comma separated list to filter to multiple countries (e.g. “AFG,PAK”) or use the array notation e.g. “coo[]=AFG&coo[]=PAK”. By default, UNHCR’s country codes are used. To use three character ISO codes instead, see the cfType parameter. See the lookup between UNHCR and ISO3 country codes, including also the regions. If not specified, data for this dimension will be summed and aggregated to one row.
Boolean cooAll = true; // Boolean | Automatically includes all countries of origin in the response if set to “true”. If set, this overrides the specific selection of countries provided to CoO.
Boolean coaAll = true; // Boolean | Automatically includes all countries of asylum in the response if set to “true”. If set, this overrides the specific selection of countries provided to CoA.
String cfType = cfType_example; // String | If set to “ISO” will cause the searches by origin and asylum to use the ISO3 codes. See the summary lookup table between UNHCR and ISO codes.
try {
AsylumApplicationsPagination result = apiInstance.asylumApplications(limit, page, yearFrom, yearTo, year, download, coo, coa, cooAll, coaAll, cfType);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#asylumApplications");
e.printStackTrace();
}
}
}
// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
Integer *limit = 56; // The numbers of items to return. (optional) (default to 100)
Integer *page = 56; // If pagination is available, send the number of page you wish to fetch. (optional) (default to null)
Integer *yearFrom = 56; // The start year from which results will be filtered. The data results are inclusive of the given year (e.g. 2010 would result in data from and including 2010 up until the latest year, or the year specified in yearTo). (optional) (default to null)
Integer *yearTo = 56; // The end year up to which results will be filtered. The data results are inclusive of the given year (e.g. 2015 would result in data up to and including 2015 back through the available data, or the year specified in yearFrom). (optional) (default to null)
array[Integer] *year = ; // Send array of years. (optional) (default to null)
Boolean *download = true; // Get the result as a CSV file. (optional) (default to null)
String *coo = coo_example; // Filter the data to one or more countries of origin. The countries are specified using the three character country codes (e,g, AFG for Afghanistan). Use a comma separated list to filter to multiple countries (e.g. “AFG,PAK”) or use the array notation e.g. “coo[]=AFG&coo[]=PAK”. By default, UNHCR’s country codes are used. To use three character ISO codes instead, see the cfType parameter. See the lookup between UNHCR and ISO3 country codes, including also the regions. If not specified, data for this dimension will be summed and aggregated to one row. (optional) (default to null)
String *coa = coa_example; // Filter the data to one or more countries of asylum. The countries are specified using the three character country codes (e,g, AFG for Afghanistan). Use a comma separated list to filter to multiple countries (e.g. “AFG,PAK”) or use the array notation e.g. “coo[]=AFG&coo[]=PAK”. By default, UNHCR’s country codes are used. To use three character ISO codes instead, see the cfType parameter. See the lookup between UNHCR and ISO3 country codes, including also the regions. If not specified, data for this dimension will be summed and aggregated to one row. (optional) (default to null)
Boolean *cooAll = true; // Automatically includes all countries of origin in the response if set to “true”. If set, this overrides the specific selection of countries provided to CoO. (optional) (default to null)
Boolean *coaAll = true; // Automatically includes all countries of asylum in the response if set to “true”. If set, this overrides the specific selection of countries provided to CoA. (optional) (default to null)
String *cfType = cfType_example; // If set to “ISO” will cause the searches by origin and asylum to use the ISO3 codes. See the summary lookup table between UNHCR and ISO codes. (optional) (default to null)
// Asylum Applications
[apiInstance asylumApplicationsWith:limit
page:page
yearFrom:yearFrom
yearTo:yearTo
year:year
download:download
coo:coo
coa:coa
cooAll:cooAll
coaAll:coaAll
cfType:cfType
completionHandler: ^(AsylumApplicationsPagination output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var RefugeeStatisticsApi = require('refugee_statistics_api');
// Create an instance of the API class
var api = new RefugeeStatisticsApi.DefaultApi()
var opts = {
'limit': 56, // {Integer} The numbers of items to return.
'page': 56, // {Integer} If pagination is available, send the number of page you wish to fetch.
'yearFrom': 56, // {Integer} The start year from which results will be filtered. The data results are inclusive of the given year (e.g. 2010 would result in data from and including 2010 up until the latest year, or the year specified in yearTo).
'yearTo': 56, // {Integer} The end year up to which results will be filtered. The data results are inclusive of the given year (e.g. 2015 would result in data up to and including 2015 back through the available data, or the year specified in yearFrom).
'year': , // {array[Integer]} Send array of years.
'download': true, // {Boolean} Get the result as a CSV file.
'coo': coo_example, // {String} Filter the data to one or more countries of origin. The countries are specified using the three character country codes (e,g, AFG for Afghanistan). Use a comma separated list to filter to multiple countries (e.g. “AFG,PAK”) or use the array notation e.g. “coo[]=AFG&coo[]=PAK”. By default, UNHCR’s country codes are used. To use three character ISO codes instead, see the cfType parameter. See the lookup between UNHCR and ISO3 country codes, including also the regions. If not specified, data for this dimension will be summed and aggregated to one row.
'coa': coa_example, // {String} Filter the data to one or more countries of asylum. The countries are specified using the three character country codes (e,g, AFG for Afghanistan). Use a comma separated list to filter to multiple countries (e.g. “AFG,PAK”) or use the array notation e.g. “coo[]=AFG&coo[]=PAK”. By default, UNHCR’s country codes are used. To use three character ISO codes instead, see the cfType parameter. See the lookup between UNHCR and ISO3 country codes, including also the regions. If not specified, data for this dimension will be summed and aggregated to one row.
'cooAll': true, // {Boolean} Automatically includes all countries of origin in the response if set to “true”. If set, this overrides the specific selection of countries provided to CoO.
'coaAll': true, // {Boolean} Automatically includes all countries of asylum in the response if set to “true”. If set, this overrides the specific selection of countries provided to CoA.
'cfType': cfType_example // {String} If set to “ISO” will cause the searches by origin and asylum to use the ISO3 codes. See the summary lookup table between UNHCR and ISO codes.
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.asylumApplications(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class asylumApplicationsExample
{
public void main()
{
// Create an instance of the API class
var apiInstance = new DefaultApi();
var limit = 56; // Integer | The numbers of items to return. (optional) (default to 100)
var page = 56; // Integer | If pagination is available, send the number of page you wish to fetch. (optional) (default to null)
var yearFrom = 56; // Integer | The start year from which results will be filtered. The data results are inclusive of the given year (e.g. 2010 would result in data from and including 2010 up until the latest year, or the year specified in yearTo). (optional) (default to null)
var yearTo = 56; // Integer | The end year up to which results will be filtered. The data results are inclusive of the given year (e.g. 2015 would result in data up to and including 2015 back through the available data, or the year specified in yearFrom). (optional) (default to null)
var year = new array[Integer](); // array[Integer] | Send array of years. (optional) (default to null)
var download = true; // Boolean | Get the result as a CSV file. (optional) (default to null)
var coo = coo_example; // String | Filter the data to one or more countries of origin. The countries are specified using the three character country codes (e,g, AFG for Afghanistan). Use a comma separated list to filter to multiple countries (e.g. “AFG,PAK”) or use the array notation e.g. “coo[]=AFG&coo[]=PAK”. By default, UNHCR’s country codes are used. To use three character ISO codes instead, see the cfType parameter. See the lookup between UNHCR and ISO3 country codes, including also the regions. If not specified, data for this dimension will be summed and aggregated to one row. (optional) (default to null)
var coa = coa_example; // String | Filter the data to one or more countries of asylum. The countries are specified using the three character country codes (e,g, AFG for Afghanistan). Use a comma separated list to filter to multiple countries (e.g. “AFG,PAK”) or use the array notation e.g. “coo[]=AFG&coo[]=PAK”. By default, UNHCR’s country codes are used. To use three character ISO codes instead, see the cfType parameter. See the lookup between UNHCR and ISO3 country codes, including also the regions. If not specified, data for this dimension will be summed and aggregated to one row. (optional) (default to null)
var cooAll = true; // Boolean | Automatically includes all countries of origin in the response if set to “true”. If set, this overrides the specific selection of countries provided to CoO. (optional) (default to null)
var coaAll = true; // Boolean | Automatically includes all countries of asylum in the response if set to “true”. If set, this overrides the specific selection of countries provided to CoA. (optional) (default to null)
var cfType = cfType_example; // String | If set to “ISO” will cause the searches by origin and asylum to use the ISO3 codes. See the summary lookup table between UNHCR and ISO codes. (optional) (default to null)
try {
// Asylum Applications
AsylumApplicationsPagination result = apiInstance.asylumApplications(limit, page, yearFrom, yearTo, year, download, coo, coa, cooAll, coaAll, cfType);
Debug.WriteLine(result);
} catch (Exception e) {
Debug.Print("Exception when calling DefaultApi.asylumApplications: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$limit = 56; // Integer | The numbers of items to return.
$page = 56; // Integer | If pagination is available, send the number of page you wish to fetch.
$yearFrom = 56; // Integer | The start year from which results will be filtered. The data results are inclusive of the given year (e.g. 2010 would result in data from and including 2010 up until the latest year, or the year specified in yearTo).
$yearTo = 56; // Integer | The end year up to which results will be filtered. The data results are inclusive of the given year (e.g. 2015 would result in data up to and including 2015 back through the available data, or the year specified in yearFrom).
$year = ; // array[Integer] | Send array of years.
$download = true; // Boolean | Get the result as a CSV file.
$coo = coo_example; // String | Filter the data to one or more countries of origin. The countries are specified using the three character country codes (e,g, AFG for Afghanistan). Use a comma separated list to filter to multiple countries (e.g. “AFG,PAK”) or use the array notation e.g. “coo[]=AFG&coo[]=PAK”. By default, UNHCR’s country codes are used. To use three character ISO codes instead, see the cfType parameter. See the lookup between UNHCR and ISO3 country codes, including also the regions. If not specified, data for this dimension will be summed and aggregated to one row.
$coa = coa_example; // String | Filter the data to one or more countries of asylum. The countries are specified using the three character country codes (e,g, AFG for Afghanistan). Use a comma separated list to filter to multiple countries (e.g. “AFG,PAK”) or use the array notation e.g. “coo[]=AFG&coo[]=PAK”. By default, UNHCR’s country codes are used. To use three character ISO codes instead, see the cfType parameter. See the lookup between UNHCR and ISO3 country codes, including also the regions. If not specified, data for this dimension will be summed and aggregated to one row.
$cooAll = true; // Boolean | Automatically includes all countries of origin in the response if set to “true”. If set, this overrides the specific selection of countries provided to CoO.
$coaAll = true; // Boolean | Automatically includes all countries of asylum in the response if set to “true”. If set, this overrides the specific selection of countries provided to CoA.
$cfType = cfType_example; // String | If set to “ISO” will cause the searches by origin and asylum to use the ISO3 codes. See the summary lookup table between UNHCR and ISO codes.
try {
$result = $api_instance->asylumApplications($limit, $page, $yearFrom, $yearTo, $year, $download, $coo, $coa, $cooAll, $coaAll, $cfType);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->asylumApplications: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;
# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $limit = 56; # Integer | The numbers of items to return.
my $page = 56; # Integer | If pagination is available, send the number of page you wish to fetch.
my $yearFrom = 56; # Integer | The start year from which results will be filtered. The data results are inclusive of the given year (e.g. 2010 would result in data from and including 2010 up until the latest year, or the year specified in yearTo).
my $yearTo = 56; # Integer | The end year up to which results will be filtered. The data results are inclusive of the given year (e.g. 2015 would result in data up to and including 2015 back through the available data, or the year specified in yearFrom).
my $year = []; # array[Integer] | Send array of years.
my $download = true; # Boolean | Get the result as a CSV file.
my $coo = coo_example; # String | Filter the data to one or more countries of origin. The countries are specified using the three character country codes (e,g, AFG for Afghanistan). Use a comma separated list to filter to multiple countries (e.g. “AFG,PAK”) or use the array notation e.g. “coo[]=AFG&coo[]=PAK”. By default, UNHCR’s country codes are used. To use three character ISO codes instead, see the cfType parameter. See the lookup between UNHCR and ISO3 country codes, including also the regions. If not specified, data for this dimension will be summed and aggregated to one row.
my $coa = coa_example; # String | Filter the data to one or more countries of asylum. The countries are specified using the three character country codes (e,g, AFG for Afghanistan). Use a comma separated list to filter to multiple countries (e.g. “AFG,PAK”) or use the array notation e.g. “coo[]=AFG&coo[]=PAK”. By default, UNHCR’s country codes are used. To use three character ISO codes instead, see the cfType parameter. See the lookup between UNHCR and ISO3 country codes, including also the regions. If not specified, data for this dimension will be summed and aggregated to one row.
my $cooAll = true; # Boolean | Automatically includes all countries of origin in the response if set to “true”. If set, this overrides the specific selection of countries provided to CoO.
my $coaAll = true; # Boolean | Automatically includes all countries of asylum in the response if set to “true”. If set, this overrides the specific selection of countries provided to CoA.
my $cfType = cfType_example; # String | If set to “ISO” will cause the searches by origin and asylum to use the ISO3 codes. See the summary lookup table between UNHCR and ISO codes.
eval {
my $result = $api_instance->asylumApplications(limit => $limit, page => $page, yearFrom => $yearFrom, yearTo => $yearTo, year => $year, download => $download, coo => $coo, coa => $coa, cooAll => $cooAll, coaAll => $coaAll, cfType => $cfType);
print Dumper($result);
};
if ($@) {
warn "Exception when calling DefaultApi->asylumApplications: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
limit = 56 # Integer | The numbers of items to return. (optional) (default to 100)
page = 56 # Integer | If pagination is available, send the number of page you wish to fetch. (optional) (default to null)
yearFrom = 56 # Integer | The start year from which results will be filtered. The data results are inclusive of the given year (e.g. 2010 would result in data from and including 2010 up until the latest year, or the year specified in yearTo). (optional) (default to null)
yearTo = 56 # Integer | The end year up to which results will be filtered. The data results are inclusive of the given year (e.g. 2015 would result in data up to and including 2015 back through the available data, or the year specified in yearFrom). (optional) (default to null)
year = # array[Integer] | Send array of years. (optional) (default to null)
download = true # Boolean | Get the result as a CSV file. (optional) (default to null)
coo = coo_example # String | Filter the data to one or more countries of origin. The countries are specified using the three character country codes (e,g, AFG for Afghanistan). Use a comma separated list to filter to multiple countries (e.g. “AFG,PAK”) or use the array notation e.g. “coo[]=AFG&coo[]=PAK”. By default, UNHCR’s country codes are used. To use three character ISO codes instead, see the cfType parameter. See the lookup between UNHCR and ISO3 country codes, including also the regions. If not specified, data for this dimension will be summed and aggregated to one row. (optional) (default to null)
coa = coa_example # String | Filter the data to one or more countries of asylum. The countries are specified using the three character country codes (e,g, AFG for Afghanistan). Use a comma separated list to filter to multiple countries (e.g. “AFG,PAK”) or use the array notation e.g. “coo[]=AFG&coo[]=PAK”. By default, UNHCR’s country codes are used. To use three character ISO codes instead, see the cfType parameter. See the lookup between UNHCR and ISO3 country codes, including also the regions. If not specified, data for this dimension will be summed and aggregated to one row. (optional) (default to null)
cooAll = true # Boolean | Automatically includes all countries of origin in the response if set to “true”. If set, this overrides the specific selection of countries provided to CoO. (optional) (default to null)
coaAll = true # Boolean | Automatically includes all countries of asylum in the response if set to “true”. If set, this overrides the specific selection of countries provided to CoA. (optional) (default to null)
cfType = cfType_example # String | If set to “ISO” will cause the searches by origin and asylum to use the ISO3 codes. See the summary lookup table between UNHCR and ISO codes. (optional) (default to null)
try:
# Asylum Applications
api_response = api_instance.asylum_applications(limit=limit, page=page, yearFrom=yearFrom, yearTo=yearTo, year=year, download=download, coo=coo, coa=coa, cooAll=cooAll, coaAll=coaAll, cfType=cfType)
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->asylumApplications: %s\n" % e)
extern crate DefaultApi;
pub fn main() {
let limit = 56; // Integer
let page = 56; // Integer
let yearFrom = 56; // Integer
let yearTo = 56; // Integer
let year = ; // array[Integer]
let download = true; // Boolean
let coo = coo_example; // String
let coa = coa_example; // String
let cooAll = true; // Boolean
let coaAll = true; // Boolean
let cfType = cfType_example; // String
let mut context = DefaultApi::Context::default();
let result = client.asylumApplications(limit, page, yearFrom, yearTo, year, download, coo, coa, cooAll, coaAll, cfType, &context).wait();
println!("{:?}", result);
}
Scopes
Parameters
Name | Description |
---|---|
limit |
Integer
The numbers of items to return.
|
page |
Integer
(int32)
If pagination is available, send the number of page you wish to
fetch.
|
yearFrom |
Integer
(int32)
The start year from which results will be filtered. The data
results are inclusive of the given year (e.g. 2010 would result
in data from and including 2010 up until the latest year, or the
year specified in yearTo).
|
yearTo |
Integer
(int32)
The end year up to which results will be filtered. The data
results are inclusive of the given year (e.g. 2015 would result
in data up to and including 2015 back through the available
data, or the year specified in yearFrom).
|
year |
array[Integer]
Send array of years.
|
download |
Boolean
Get the result as a CSV file.
|
coo |
String
Filter the data to one or more countries of origin. The
countries are specified using the three character country codes
(e,g, AFG for Afghanistan). Use a comma separated list to filter
to multiple countries (e.g. “AFG,PAK”) or use the array notation
e.g. “coo[]=AFG&coo[]=PAK”. By default, UNHCR’s
country codes are used. To use three character ISO codes
instead, see the cfType parameter. See the lookup between UNHCR
and ISO3 country codes, including also the regions. If not
specified, data for this dimension will be summed and aggregated
to one row.
|
coa |
String
Filter the data to one or more countries of asylum. The
countries are specified using the three character country codes
(e,g, AFG for Afghanistan). Use a comma separated list to filter
to multiple countries (e.g. “AFG,PAK”) or use the array notation
e.g. “coo[]=AFG&coo[]=PAK”. By default, UNHCR’s
country codes are used. To use three character ISO codes
instead, see the cfType parameter. See the lookup between UNHCR
and ISO3 country codes, including also the regions. If not
specified, data for this dimension will be summed and aggregated
to one row.
|
coo_all |
Boolean
Automatically includes all countries of origin in the response
if set to “true”. If set, this overrides the specific selection
of countries provided to CoO.
|
coa_all |
Boolean
Automatically includes all countries of asylum in the response
if set to “true”. If set, this overrides the specific selection
of countries provided to CoA.
|
cf_type |
String
If set to “ISO” will cause the searches by origin and asylum to
use the ISO3 codes. See the summary lookup table between UNHCR
and ISO codes.
|