0.4.1 • Published 5 years ago

@ryb73/bs-superagent v0.4.1

Weekly downloads
12
License
MIT
Repository
github
Last release
5 years ago

bs-superagent

What is it?

BuckleScript bindings for SuperAgent.

What state is it in?

Incomplete. The published version may lag behind the GitHub repo – feel free to file a bug if this is the case.

How do I install it?

npm i @ryb73/bs-superagent

How do I use it?

Example:

open Superagent;
open Js.Promise;

get("api/")
|> withCredentials
|> query("key", "value")
|> end_
|> then_((resp) => {
    switch (resp.body) {
        | None => Js.log("No Body")
        | Some(body) => Js.Json.decodeObject(body) |> doSomething
    };

    resolve();
});

See test/index.re and https://visionmedia.github.io/superagent/ for more.

0.4.1

5 years ago

0.4.0

6 years ago

0.4.0-bs6.1

6 years ago

0.4.0-bs6.0

6 years ago

0.3.1

6 years ago

0.3.0

6 years ago

0.2.3

6 years ago

0.2.2

6 years ago

0.2.1

6 years ago

0.2.0

6 years ago

0.1.0

6 years ago

0.0.13

6 years ago

0.0.12

6 years ago

0.0.11

6 years ago

0.0.10

6 years ago

0.0.9

6 years ago

0.0.8

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago