GetCountries

GetCountries

Filter inputs

Name

Type

Description

Mandatory

Available from version

Additional information

BrickIds

Guid[]

Filter by array of BrickIds.

 

2.30 

 

IsoCodes

string[]

Filter by IsoCodes (https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)

 

2.30

Example of IsoCode: "SE", "NO", "FI".

Response rows (Array) inherits from EntityBase

Name

Type

Description

Available from version

BrickId

Guid

The BrickId (unique id).

2.30 

IsoCode

string

The IsoCode of the country

2.30

FullNameSwedish

string

The full name of the country in Swedish.

2.30

FullNameEnglish

string

The full name of the country in English

2.30

Code examples

var request = new GetCountryRequest(); request.Credentials = CorrectCredentials(); request.identify = CorrectIdentify(); request.Fields = new GetCountryFields(); request.Args = new GetCountryArgs { IsoCodes = new[] { "SE" } }; var countriesResponse = client.GetCountries(request); foreach (var country in countriesResponse.Result) { Console.WriteLine($"BrickId: {country.BrickId}"); Console.WriteLine($"IsoCode: {country.IsoCode}"); Console.WriteLine($"FullNameSwedish: {country.FullNameSwedish}"); Console.WriteLine($"FullNameEnglish: {country.FullNameEnglish}"); }