0.4.1 • Published 3 years ago

@ryb73/bs-superagent v0.4.1

Weekly downloads
12
License
MIT
Repository
github
Last release
3 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

3 years ago

0.4.0

4 years ago

0.4.0-bs6.1

4 years ago

0.4.0-bs6.0

4 years ago

0.3.1

5 years ago

0.3.0

5 years ago

0.2.3

5 years ago

0.2.2

5 years ago

0.2.1

5 years ago

0.2.0

5 years ago

0.1.0

5 years ago

0.0.13

5 years ago

0.0.12

5 years ago

0.0.11

5 years ago

0.0.10

5 years ago

0.0.9

5 years ago

0.0.8

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago