Skip to content

Commit f85f419

Browse files
Update README.md
1 parent c1dd67f commit f85f419

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ function geoResponse(json) {
7878
```ts
7979
// Query geolocations for multiple IP addresses and all fields
8080
var geolocationParams = new GeolocationParams();
81-
geolocationParams.setIps(['1.1.1.1', '2.2.2.2', '3.3.3.3']);
81+
geolocationParams.setIPList(['1.1.1.1', '2.2.2.2', '3.3.3.3']);
8282

8383
ipgeolocationApi.getGeolocation(geolocationParams, geoResponse);
8484
function geoResponse(json) {
@@ -87,7 +87,7 @@ function geoResponse(json) {
8787

8888
// Query geolocations for multiple IP addresses but only 'geo' field
8989
var geolocationParams = new GeolocationParams();
90-
geolocationParams.setIps(['1.1.1.1', '2.2.2.2', '3.3.3.3']);
90+
geolocationParams.setIPList(['1.1.1.1', '2.2.2.2', '3.3.3.3']);
9191
geolocationParams.setFields("geo");
9292

9393
ipgeolocationApi.getGeolocation(geolocationParams, geoResponse);

0 commit comments

Comments
 (0)