Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Filter inputs

NameTypeDescriptionMandatoryAvailable from versionAdditional information
BrickIdsGuid[] Filter by array of BrickIds.
2.30 
IsoCodesstring[]Filter by IsoCodes
2.30Example of IsoCode: "SE", "NO", "FI".

...

Code Block
languagec#
themeRDark
titleC# - Get specific country from a BFS instance
linenumberstrue
collapsetrue
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($"BrickId: {country.FullNameEnglish}");
}

...