#api-client #client #api #neutrinoapi

neutral

Unofficial rust client for neutrinoapi.com

7 releases

0.2.6 Oct 26, 2022
0.2.5 Oct 26, 2022
0.1.0 Oct 20, 2022

#617 in #api-client

Download history 1/week @ 2024-02-10 47/week @ 2024-02-17 6/week @ 2024-02-24 2/week @ 2024-03-09

56 downloads per month

MIT license

34KB
746 lines

neutral - unofficial rust client for neutrinoapi.com

crate.io-badge Rust documentation bagde

Provide an API to interact with some features provided by neutrinoapi.com.

What is neutrinoapi.com

A general-purpose tool that solves recurring problems encountered during the development of software systems. It is used across many industries by software developers, data scientists and systems operators.

How to use the neutral crate ?

The Neutral structure act as an API client of neutrinoapi. Features are represented by modules, each module contains a struct which implement a send method to call neutrinoapi.com. Use an instance of Neutral to interact with neutrinoapi.

Example for ip_info endpoint:

let api_auth = ApiAuth::new("userid".to_string(), "apikey".to_string());
let neutral = Neutral::try_new("https://neutrinoapi.net", api_auth).unwrap();
let ip_info_response = neutral.ip_info().send(ip_addr).await.unwrap();

Dependencies

~9–24MB
~323K SLoC