https://github.com/eniehack/webmention.cr
[mirror from GitLab] library to find Webmention endpoints from website for Crystal-lang
https://github.com/eniehack/webmention.cr
crystal shards webmention
Last synced: 8 months ago
JSON representation
[mirror from GitLab] library to find Webmention endpoints from website for Crystal-lang
- Host: GitHub
- URL: https://github.com/eniehack/webmention.cr
- Owner: eniehack
- License: apache-2.0
- Created: 2021-03-27T17:11:32.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-03-28T05:12:25.000Z (almost 5 years ago)
- Last Synced: 2025-04-07T00:54:13.004Z (12 months ago)
- Topics: crystal, shards, webmention
- Language: Crystal
- Homepage:
- Size: 25.4 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# webmention-cr
[](https://eniehack.gitlab.io/webmention.cr/)

[WebMention](https://www.w3.org/TR/webmention) library for Crystal lang.
## Installation
1. Add the dependency to your `shard.yml`:
```yaml
dependencies:
webmention:
gitlab: eniehack/webmention.cr
```
2. Run `shards install`
## Usage
```crystal
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 ()
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
- [eniehack](https://gitlab.com/eniehack) - creator and maintainer