brickset

Crates.iobrickset
lib.rsbrickset
version0.1.1
sourcesrc
created_at2023-05-24 20:52:48.710986
updated_at2023-05-24 20:52:48.710986
descriptionBrickSet API bindings
homepagehttps://github.com/ryukoposting/brickset-rs
repositoryhttps://github.com/ryukoposting/brickset-rs
max_upload_size
id873752
size118,220
(ryukoposting)

documentation

README

BrickSet API

This crate provides utilities for working with the BrickSet API. This includes:

  • Low-level tools for building API requests, and parsing API responses.
  • High-level client wrapper for reqwest

Features

  • log (default): Generate log messages using the log crate.
  • reqwest (default): High-level wrapper for reqwest. If you aren't using reqwest, you should disable this feature.

Examples

The examples in this crate require a couple of environment variables:

export BRICKSET_KEY="<your BrickSet API key>"
export BRICKSET_USERNAME="<your BrickSet username>"

get_wanted_sets

get_wanted_sets uses the high-level reqwest-based API to retrieve a BrickSet user's wantlist.

cargo run --example get_wanted_sets

get_wanted_sets_low

get_wanted_sets_low does the same thing as get_wanted_sets, but doesn't use the high-level wrapper.

Commit count: 4

cargo fmt