Skip to content
Webmentions implementation for Elixir
Elixir
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
config
lib
test
.gitignore
LICENSE
README.md
mix.exs
mix.lock

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.

Something went wrong with that request. Please try again.