ezomyte
Client library for Path of Exile API
Warning: The crate is in early stages and the interface (esp. the data model for items) is likely to evolve over time.
Installation
Add ezomyte to your project's [dependencies]
in Cargo.toml:
[]
= "0.0.2"
Usage
ezomyte::Client
provides access to various part of Path of Exile API:
public stashes (Client::stashes
), current & past leagues (Client::leagues
), and so on.
All endpoints return asynchronous Stream
s of structures
that has been deserialized from PoE API.
Here's a simple example of accessing public stash tabs
and looking for items with the unique rarity:
extern crate ezomyte;
extern crate futures;
extern crate tokio_core;
use Rarity;
use Stream;
use Core;
See the examples directory for more examples.
Development
Besides the current version of Rust compiler and Cargo, you would want:
- the just task runner (
cargo install just
) - jq, the command line JSON manipulator (
apt-get install jq
or similar)
Running just
will execute all the tests and compile examples.