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
Copy file name to clipboardExpand all lines: README.md
+41-35Lines changed: 41 additions & 35 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,7 +18,7 @@ Developers can use this JQuery SDK for software and web projects related to, but
18
18
19
19
You need a valid 'IPGeolocation API key' to use this SDK. [Sign up](https://ipgeolocation.io/signup) here and get your free API key if you don't have one.
20
20
21
-
**Note:** Complete documentation to use this SDK is also available at [IP Geolocation API JQuery SDK Documentation](https://ipgeolocation.io/documentation/ip-geolocation-api-jquery-sdk-201809051507).
21
+
**Note:** Complete documentation to use this SDK is also available at [IP Geolocation API JQuery SDK Documentation](https://ipgeolocation.io/documentation/ip-geolocation-api-jquery-sdk.html).
22
22
23
23
## System Requirements
24
24
@@ -30,7 +30,7 @@ Internet connection is required to run this component.
// Don't pass the API key if you're using the "Request Origin" feature at IP Geolocation API
52
-
getGeolocation(handleResponse);
52
+
_ipgeolocation.getGeolocation(handleResponse);
53
+
54
+
// Toggle sessionStorage usage to store API response on client-side. (This is very handy as it will help users to avoid making duplicate API calls for a single visitor.)
55
+
_ipgeolocation.enableSessionStorage(true);
53
56
54
57
// Toggle API calls' async behavior. By default, async is true.
@@ -85,26 +88,29 @@ function handleResponse(response) {
85
88
}
86
89
87
90
// Get time zone information for the calling machine's IP address with an API key (optional, if you're using "Request Origin" feature at IP Geolocation API)
// Don't pass the API key if you're using the "Request Origin" feature at IP Geolocation API
91
-
getTimezone(handleResponse);
94
+
_ipgeolocation.getTimezone(handleResponse);
95
+
96
+
// Toggle sessionStorage usage to store API response on client-side. (This is very handy as it will help users to avoid making duplicate API calls for a single visitor.)
97
+
_ipgeolocation.enableSessionStorage(true);
92
98
93
99
// Toggle API calls' async behavior. By default, async is true.
94
-
setAsync(false)
100
+
_ipgeolocation.makeAsyncCallsToAPI(false);
95
101
96
102
// Get time zone information for an IP address "1.1.1.1" and geolocation information in Italian language **
0 commit comments