Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rate limit of ipinfo.io #10

Open
divemasterza opened this issue Jan 23, 2019 · 0 comments
Open

Rate limit of ipinfo.io #10

divemasterza opened this issue Jan 23, 2019 · 0 comments

Comments

@divemasterza
Copy link

divemasterza commented Jan 23, 2019

I am getting a 429 error (rate limit) from ipinfo.io.
Adding the ipinfo.io token (free account) will grant 1000 free API calls per day.
not sure if the implementation below would work...

$field.intlTelInput({
		initialCountry: "auto",
		geoIpLookup: function(callback) {
			$.get('//ipinfo.io?token=xxxxxxxxxx', function() {}, "jsonp").always(function(resp) {
				var countryCode = (resp && resp.country) ? resp.country : "";
				callback(countryCode);
			});
		}
	});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant