This is an alternative site for discovering Elm packages. You may be looking for the official Elm package site instead.
Nexosis API Client
version 4.0.0
license Apache-2.0
native-modules False
elm-version 0.18.0 <= v < 0.19.0
Tag 4.0.0
Committed At 2018-04-30 20:34:07 UTC
lukewestby/elm-http-builder 5.2.0 <= v < 6.0.0 5.2.0
elm-lang/http 1.0.0 <= v < 2.0.0 1.0.0
elm-lang/core 5.1.1 <= v < 6.0.0 5.1.1
elm-community/json-extra 2.7.0 <= v < 3.0.0 2.7.0
elm-community/elm-time 1.0.8 <= v < 1.0.11 1.0.10
NoRedInk/elm-decode-pipeline 3.0.0 <= v < 4.0.0 3.0.1

README

Nexosis Api Client for Elm

This package provides functions which allow you to easily call the Nexosis Api. It allows you to interact upload data, run machine learning algorithms, and make predictions on new data using a trained model.

Build Status

Basic usage

You will need to register an account and get an Api key. This will allow you to create a ClientConfig.

The Api modules contain functions to create Http requests. The Types modules contain the types need to make requests, or the response types that will be returned.

import Http
import Nexosis
import Nexosis.Api.Data
import Nexosis.Types.DataSet
import Nexosis.Types.SortParameters exposing (SortDirection(..))

type Msg
    = DataSetListResponse (Result Http.Error Nexosis.Types.DataSet.DataSetList)


loadDataSetList : Cmd Msg
loadDataSetList =
    let
        config =
            Nexosis.createConfigWithApiKey "my-api-key"

        pageSorting =
            { sortName: "dataSetName"
            , direction: Ascending
            }
    in
        Nexosis.Api.Data.get config 0 1 pageSorting
            |> Cmd.map DataSetListResponse

Refer to the Api Documentation for more high level information of how to work with the Nexosis Api.