25 lines
649 B
Markdown
25 lines
649 B
Markdown
# spacetraders_api_httpc
|
|
|
|
[](https://hex.pm/packages/spacetraders_api_httpc)
|
|
[](https://hexdocs.pm/spacetraders_api_httpc/)
|
|
|
|
```sh
|
|
gleam add spacetraders_api_httpc@1
|
|
```
|
|
```gleam
|
|
import spacetraders_api_httpc
|
|
|
|
pub fn main() -> Nil {
|
|
let assert Ok(server_status) = spacetraders_api_httpc.get_server_status()
|
|
io.println(server_status.status)
|
|
}
|
|
```
|
|
|
|
Further documentation can be found at <https://hexdocs.pm/spacetraders_api_httpc>.
|
|
|
|
## Development
|
|
|
|
```sh
|
|
gleam run # Run the project
|
|
gleam test # Run the tests
|
|
```
|