-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
fix: fixed verification logic & endpoint for AyrShare #3452
fix: fixed verification logic & endpoint for AyrShare #3452
Conversation
Please don't ping me for every change that you make. |
Sure, sorry for that. |
I thought you were an active contributor, so added you, else I don't know who is managing Hacktoberfest here. |
I am, but I'm just a random guy. |
@@ -48,7 +49,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result | |||
} | |||
|
|||
if verify { | |||
req, err := http.NewRequestWithContext(ctx, "GET", "https://app.ayrshare.com/api/analytics/links", nil) | |||
req, err := http.NewRequestWithContext(ctx, "GET", "https://app.ayrshare.com/api/user", nil) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The /user
API returns useful information, such as the user's email, which can be included in the extra data.
I also recommend reviewing the status code documentation to handle responses appropriately.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @sahil9001 for fixing this detector regex. Changes LGTM!
First official hacktoberfest-2024 merged PR 🥂. Nice work. |
Description:
Fixes #3451 , tests screenshots:
Checklist:
make test-community
)?make lint
this requires golangci-lint)?