WebMention library for Crystal lang.
-
Add the dependency to your
shard.yml
:dependencies: webmention: gitlab: eniehack/webmention.cr
-
Run
shards install
require "webmention"
require "http/client"
require "uri"
url = URI.parse "https://www.example.com"
response = HTTP::Client.get url
webmention = Webmention::Discover.new response, url
endpoint = webmention.discover
TODO: Write development instructions here
- Fork it (https://gitlab.com/eniehack/webmention-cr/-/forks/new)
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request
- eniehack - creator and maintainer