Skip to content

Commit 8d1ecca

Browse files
committed
Set async in example
1 parent 0c029d1 commit 8d1ecca

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@ getGeolocation(handleResponse, "YOUR_API_KEY");
5151
// To use the _Request Origin_ feature at IP Geolocation API, you skip the API key parameter.
5252
getGeolocation(handleResponse);
5353

54+
// Toggle API calls' async behavior. By default, async is true.
55+
setAsync(false)
56+
5457
// Query geolocation for an IP address e.g., '1.1.1.1'
5558
setIPAddressParameter("1.1.1.1");
5659
getGeolocation(handleResponse, "YOUR_API_KEY");
@@ -82,6 +85,9 @@ getTimezone(handleResponse, "YOUR_API_KEY");
8285
// To use the _Request Origin_ feature at IP Geolocation API, you skip the API key parameter.
8386
getTimezone(handleResponse);
8487

88+
// Toggle API calls' async behavior. By default, async is true.
89+
setAsync(false)
90+
8591
// Query time zone information for an IP address e.g., '1.1.1.1'
8692
setIPAddressParameter("1.1.1.1");
8793
getTimezone(handleResponse, "YOUR_API_KEY");

0 commit comments

Comments
 (0)