You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Christian Kruse b98a5bfa48 version push 2 years ago
config initial commit 4 years ago
lib ref: no longer use deprecated String.strip/1 2 years ago
test mix format 2 years ago
.formatter.exs mix format 2 years ago
.gitignore initial commit 4 years ago
LICENSE adding a license file 4 years ago
README.md version push 4 years ago
mix.exs version push 2 years ago
mix.lock mix deps.update --all 2 years ago

README.md

Webmentions

A Webmention module for Elixir.

Installation

This package is available in Hex

  1. Add webmentions to your list of dependencies in mix.exs:

    def deps do [{:webmentions, “~> 0.0.4”}] end

Usage

Just call Webmentions.send_webmentions("http://example.org/") where the URL is the URL of the source document:

Webmentions.send_webmentions("http://example.org/")

This will give you either

{:ok, ["list", "of", "urls"]}

where the list contains a list of URLs we sent a webmention to or

{:error, reason}

Dependencies

We need Floki for HTML parsing and HTTPotion for HTTP communication.