avh4 / elm-github-v3

Unofficial GitHub v3 API for Elm

Home Page:https://package.elm-lang.org/packages/avh4/elm-github-v3/latest/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build Status Latest Version

elm-github-v3

This is an unofficial Elm wrapper for the GitHub REST v3 API. The implementation is currently very incomplete (I've only implemented the exact requests, input parameters, and output decode that I've needed), but I decided to publish this in case it can save others some work. Pull requests to make the implementation more complete are welcome.

Example usage

elm install avh4/elm-github-v3
import Github

getPullRequestTitles : Cmd (Result String (List String))
getPullRequestTitles =
    Github.getPullRequests
        { authToken = "123..."
        , repo = "avh4/elm-format"
        }
        |> Task.map (List.map .title)
        |> Task.attempt identity

About

Unofficial GitHub v3 API for Elm

https://package.elm-lang.org/packages/avh4/elm-github-v3/latest/

License:MIT License


Languages

Language:Elm 100.0%