tricycle/morty-api/4.0.0

Rerouted (cache, verified). The original is gone. This copy comes from a Lamdera package cache made before it went. The Lamdera package server serves a copy recovered from a Lamdera package cache from 2021-02-13.

What we checked: Rebuilt from the unpacked sources in a Lamdera package cache (5 copies agree), which Elm only writes after the published SHA-1 checked out; elm.json is byte-identical to package.elm-lang.org's; the exposed modules match docs.json; the zip is our own, so its SHA-1 is not the published one.

The Lamdera compiler uses this copy and prints a one-line notice saying so. elm itself fails to download this version.

Details · package.elm-lang.org's zip: https://github.com/tricycle/morty-api/zipball/4.0.0/

Morty API

A library for interfacing with the Morty API. Morty is a time tracking system used by Bellroy (built originally by TrikeApps, who became part of Bellroy in late 2017).

Installation

elm install tricycle/morty-api

Usage

To retrieve details of a task:

init : ( Model, Cmd Msg )
init =
    let
        taskParameters =
                    { mortyApiToken = "my api token"
                    , mortyHost = "https://morty.trikeapps.com"
                    , taskId = 234873
                    , msgType = MyApplicationMsg
                    }
    in
        ( model, Cmd.batch [ MortyAPI.Command.getTaskCommand taskParameters ])

Other operations available:

  • Get current user details (matching API token)
  • Search for tasks
  • Retrieve task details
  • Update a tasks details
  • Add an approach for a task
  • Retrieve the Kanban lanes for a specific user
  • Retrieve the Kanban lanes for a specific team
  • Retrieve all teams and their members