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 endpoint configuration #16

Open
fluffy-critter opened this issue Feb 27, 2021 · 2 comments
Open

Add endpoint configuration #16

fluffy-critter opened this issue Feb 27, 2021 · 2 comments

Comments

@fluffy-critter
Copy link
Collaborator

There are alternate endpoints that support the webmention.io API, such as mention.tech. Make it easier to support them!

@Ryuno-Ki
Copy link
Contributor

Ryuno-Ki commented Apr 8, 2021

Perhaps @kevinmarks could help by documenting the API?

So far it looks like https://mention.tech/listmentions?target=<url_encoded_domain>&json=on
(Now redirect to HTTPS version, too).

Its repo declares it as „webmention experiment”: https://github.com/kevinmarks/mentiontech

@Ryuno-Ki
Copy link
Contributor

Ryuno-Ki commented Apr 8, 2021

If we refactor

let apiURL = `https://webmention.io/api/mentions.jf2?per-page=${maxWebmentions}&sort-by=${sortBy}&sort-dir=${sortDir}`;
pages.forEach(function (path) {
apiURL += `&target[]=${encodeURIComponent('http:' + path)}&target[]=${encodeURIComponent('https:' + path)}`;
});

into its own function, it could be made parametrised.
That would like work via additional data-attribute on the script tag.

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

2 participants