amazon-sp-api 0.1.16

A library to make working with Amazon SP-API a bit easier.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use reqwest::{Method, Response};
use crate::error_handling::Errors;
use crate::general::Client;

pub struct Sellers;
impl Sellers {
    pub async fn get_marketplace_participations(client: &mut Client) -> Result<Response, Errors> {
        const URL: &str = "/sellers/v1/marketplaceParticipations";

        client.make_request(URL, Method::GET, None::<Vec<(String, String)>> ).await
    }
    pub async fn get_account(client: &mut Client) -> Result<Response, Errors> {
        const URL: &str = "/sellers/v1/account";
        client.make_request(URL, Method::GET, None::<Vec<(String, String)>> ).await
    }
}