8000 GitHub - WhatYouThing/sellapp-rs: Simple asynchronous wrapper for the Sell.App API.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

WhatYouThing/sellapp-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sell.App API Wrapper for Rust

Simple asynchronous wrapper for the Sell.App API, using the reqwest crate under the hood.

Example Usage

use sellapp;
use serde_json::{self, Value};
use tokio;

#[tokio::main]
async fn main() {
    let api = sellapp::init("your_api_key", "");

    let res = api.invoices_list_all("?limit=25").await.unwrap();

    let text = res.text().await;
    let data: Value = serde_json::from_str(&text.unwrap()).unwrap();
    println!("The ID of the 4th invoice is: {}", data["data"][3]["id"]);
}

About

Simple asynchronous wrapper for the Sell.App API.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

0