Get a specific Canadian Province by code
Description
Retrieves a specific Canadian Province by code.
Package Details
Interface
IAddressManager
Syntax
IAddressManager.GetProvinceByCode(string provinceCode)
Returns
CountrySubdivision
API
[GET] /api/v1/provinces/{code}
Parameter
code - alphabetical code
Returns
200 OK - Canadian Province
Example
Code Block | ||
---|---|---|
| ||
var code = "QC"; |
...
var subdivisionList = await addressesManager.GetProvinceByCode(code); |