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.
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