Skip to content

[mirror from GitLab] library to find Webmention endpoints from website for Crystal-lang

License

Notifications You must be signed in to change notification settings

eniehack/webmention.cr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

webmention-cr

Docs status Gitlab pipeline status

WebMention library for Crystal lang.

Installation

  1. Add the dependency to your shard.yml:

    dependencies:
      webmention:
        gitlab: eniehack/webmention.cr
  2. Run shards install

Usage

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

Development

TODO: Write development instructions here

Contributing

  1. Fork it (https://gitlab.com/eniehack/webmention-cr/-/forks/new)
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors

About

[mirror from GitLab] library to find Webmention endpoints from website for Crystal-lang

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published