Skip to main content

data_for_seo/api/merchant/
mod.rs

1use crate::DataForSeoClient;
2
3mod amazon;
4mod google;
5
6pub use amazon::*;
7pub use google::*;
8
9/// Entry point for the Merchant API domain.
10/// See <https://docs.dataforseo.com/v3/merchant/>.
11pub struct MerchantApi<'a> {
12    client: &'a DataForSeoClient,
13}
14
15impl DataForSeoClient {
16    /// Access the Merchant API (Amazon and Google Shopping).
17    /// See <https://docs.dataforseo.com/v3/merchant/>.
18    pub fn merchant(&self) -> MerchantApi<'_> {
19        MerchantApi { client: self }
20    }
21}