You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 22, 2022. It is now read-only.
# Fetch a list of postal codes (within a specific area)
38
+
# Fetch a list of postal codes (within a specific area)
39
39
# The area parameter is optional
40
40
data = client.get_all_postal_codes(area="5038")
41
-
postal_codes = data['_embedded']['postcodes'] # List of postal codes
41
+
postal_codes = data["results"] # List of postal codes
42
42
43
43
# Fetch a single postal code
44
44
postal_code = client.get_postal_code("5038EA")
@@ -51,5 +51,5 @@ For more information about the data that is returned, please refer to the [offic
51
51
To run the tests, make sure you have the dev dependencies installed, and run `pytest` in the root of the project.
52
52
53
53
## Issues
54
-
If you have any issues with the API wrapper, please post them [here](https://github.com/infoklik/postcodeapi/issues). If you have issues with the actual API,
54
+
If you have any issues with the API wrapper, please post them [here](https://github.com/infoklik/postcodeapi/issues). If you have issues with the actual API,
55
55
please post them in the [official issue tracker](https://github.com/postcodeapi/postcodeapi/issues) of Postcode API.
0 commit comments