logIn : String -> String -> Platform.Cmd.Cmd (Result Http.Error ())
Logs into your Urbit at the given root path and password.
logIn "http://localhost:8080" "lidlut-tabwed-pillex-ridrup"
getShipName : String -> Platform.Cmd.Cmd (Result Http.Error Types.Ship)
Queries the name of the current ship.
Return strings like ~zod
or ~racfer-hattes
.
getShipName "http://localhost:8080"
scry : { url : String, agent : Types.Agent, path : Types.Path, error : msg, success : Deconstructor msg } -> Platform.Cmd.Cmd msg
Scry an agent at some path
scry
{ url = "http://localhost:8080"
, agent = "journal"
, path = [ "entries", "all" ]
, error = Noop
, success =
D.cell D.ignore
(D.cell (D.const D.cord "jrnl")
(D.list (D.cell D.bigint D.cord |> D.map (\a b -> ( a, b ))))
|> D.map GotListings
)
}
scryTask : { url : String, agent : Types.Agent, path : Types.Path, error : msg, success : Deconstructor msg } -> Platform.Task a msg
Same as scry
but returns a Task
instead of a Cmd
.