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

Add 7x as a Geolocation API Provider #34

Merged
merged 3 commits into from
Feb 7, 2024

Conversation

meezaan
Copy link
Contributor

@meezaan meezaan commented Jan 16, 2024

Fixes #0000

Changes proposed in this pull request:

Added a new Service for the 7x API and updated the JS so the API key is also required for this API.

Reviewers should focus on:

Whether some error handling for rate limiting should be added. The free key allows for 20 requests a second, after which requests are all per second so there should be no reason for rate limiting on any paid plans.

Screenshot

Confirmed

  • [x ] Frontend changes: tested on a local Flarum installation.
  • Backend changes: tests are green (run composer test).

Copy link
Member

@imorland imorland left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for this contribution @meezaan :)

You raise a valid point on rate limit handling, which is something this extension needs to handle better for all providers, but I see no reason why this provider cannot be included ahead of that.

@imorland imorland merged commit c4b1f49 into FriendsOfFlarum:master Feb 7, 2024
6 of 7 checks passed
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

Successfully merging this pull request may close these issues.

2 participants