pub struct EbayClient { /* private fields */ }
Expand description
Main eBay API client - provides unified access to all eBay APIs
Implementations§
Source§impl EbayClient
impl EbayClient
Sourcepub fn new(config: EbayConfig) -> HermesResult<Self>
pub fn new(config: EbayConfig) -> HermesResult<Self>
Create a new eBay client
Sourcepub fn feed(&mut self) -> HermesResult<&FeedClient>
pub fn feed(&mut self) -> HermesResult<&FeedClient>
Get the Feed API client (lazy initialization)
Sourcepub fn marketing(&mut self) -> HermesResult<&MarketingClient>
pub fn marketing(&mut self) -> HermesResult<&MarketingClient>
Get the Marketing API client (lazy initialization)
Sourcepub fn offer(&mut self) -> HermesResult<&OfferClient>
pub fn offer(&mut self) -> HermesResult<&OfferClient>
Get the Offer API client (lazy initialization)
Sourcepub fn order(&mut self) -> HermesResult<&OrderClient>
pub fn order(&mut self) -> HermesResult<&OrderClient>
Get the Order API client (lazy initialization)
Sourcepub fn catalog(&mut self) -> HermesResult<&CatalogClient>
pub fn catalog(&mut self) -> HermesResult<&CatalogClient>
Get the Catalog API client (lazy initialization)
Sourcepub fn taxonomy(&mut self) -> HermesResult<&TaxonomyClient>
pub fn taxonomy(&mut self) -> HermesResult<&TaxonomyClient>
Get the Taxonomy API client (lazy initialization) Critical for Intelligence API schema suggestions
Sourcepub fn identity(&mut self) -> HermesResult<&IdentityClient>
pub fn identity(&mut self) -> HermesResult<&IdentityClient>
Get the Identity API client (lazy initialization)
Sourcepub fn translation(&mut self) -> HermesResult<&TranslationClient>
pub fn translation(&mut self) -> HermesResult<&TranslationClient>
Get the Translation API client (lazy initialization)
Sourcepub fn analytics(&mut self) -> HermesResult<&AnalyticsClient>
pub fn analytics(&mut self) -> HermesResult<&AnalyticsClient>
Get the Analytics API client (lazy initialization)
Sourcepub fn account(&mut self) -> HermesResult<&AccountClient>
pub fn account(&mut self) -> HermesResult<&AccountClient>
Get the Account API client (lazy initialization)
Sourcepub fn inventory(&mut self) -> HermesResult<&InventoryClient>
pub fn inventory(&mut self) -> HermesResult<&InventoryClient>
Get the Inventory API client (lazy initialization)
Sourcepub fn fulfillment(&mut self) -> HermesResult<&FulfillmentClient>
pub fn fulfillment(&mut self) -> HermesResult<&FulfillmentClient>
Get the Fulfillment API client (lazy initialization)
Sourcepub fn compliance(&mut self) -> HermesResult<&ComplianceClient>
pub fn compliance(&mut self) -> HermesResult<&ComplianceClient>
Get the Compliance API client (lazy initialization)
Sourcepub fn finances(&mut self) -> HermesResult<&FinancesClient>
pub fn finances(&mut self) -> HermesResult<&FinancesClient>
Get the Finances API client (lazy initialization)
Sourcepub fn metadata(&mut self) -> HermesResult<&MetadataClient>
pub fn metadata(&mut self) -> HermesResult<&MetadataClient>
Get the Metadata API client (lazy initialization)
Sourcepub fn negotiation(&mut self) -> HermesResult<&NegotiationClient>
pub fn negotiation(&mut self) -> HermesResult<&NegotiationClient>
Get the Negotiation API client (lazy initialization)
Sourcepub fn recommendation(&mut self) -> HermesResult<&RecommendationClient>
pub fn recommendation(&mut self) -> HermesResult<&RecommendationClient>
Get the Recommendation API client (lazy initialization)
Sourcepub async fn search_items(
&self,
query: &str,
limit: Option<i32>,
) -> HermesResult<SearchPagedCollection>
pub async fn search_items( &self, query: &str, limit: Option<i32>, ) -> HermesResult<SearchPagedCollection>
Search for items on eBay
Sourcepub async fn get_item(
&self,
item_id: &str,
fieldgroups: Option<&str>,
) -> HermesResult<Item>
pub async fn get_item( &self, item_id: &str, fieldgroups: Option<&str>, ) -> HermesResult<Item>
Get item details by ID
Sourcepub async fn get_item_by_legacy_id(
&self,
legacy_item_id: &str,
fieldgroups: Option<&str>,
) -> HermesResult<Item>
pub async fn get_item_by_legacy_id( &self, legacy_item_id: &str, fieldgroups: Option<&str>, ) -> HermesResult<Item>
Get item by legacy ID
Sourcepub async fn check_compatibility(
&self,
item_id: &str,
compatibility_payload: CompatibilityPayload,
) -> HermesResult<CompatibilityResponse>
pub async fn check_compatibility( &self, item_id: &str, compatibility_payload: CompatibilityPayload, ) -> HermesResult<CompatibilityResponse>
Check item compatibility
Sourcepub async fn get_categories(
&self,
marketplace_id: Option<&str>,
) -> HermesResult<CategoryTree>
pub async fn get_categories( &self, marketplace_id: Option<&str>, ) -> HermesResult<CategoryTree>
Get eBay categories
Sourcepub async fn get_items(
&self,
item_ids: Option<&str>,
item_group_ids: Option<&str>,
) -> HermesResult<Items>
pub async fn get_items( &self, item_ids: Option<&str>, item_group_ids: Option<&str>, ) -> HermesResult<Items>
Get multiple items by IDs
Sourcepub async fn get_items_by_item_group(
&self,
item_group_id: &str,
fieldgroups: Option<&str>,
) -> HermesResult<ItemGroup>
pub async fn get_items_by_item_group( &self, item_group_id: &str, fieldgroups: Option<&str>, ) -> HermesResult<ItemGroup>
Get items by item group ID
Sourcepub async fn search_items_advanced(
&self,
query: Option<&str>,
aspect_filter: Option<&str>,
category_ids: Option<&str>,
filter: Option<&str>,
limit: Option<i32>,
offset: Option<i32>,
sort: Option<&str>,
) -> HermesResult<SearchPagedCollection>
pub async fn search_items_advanced( &self, query: Option<&str>, aspect_filter: Option<&str>, category_ids: Option<&str>, filter: Option<&str>, limit: Option<i32>, offset: Option<i32>, sort: Option<&str>, ) -> HermesResult<SearchPagedCollection>
Search items with advanced parameters
Sourcepub async fn search_by_image(
&self,
image_data: &[u8],
category_ids: Option<&str>,
limit: Option<i32>,
) -> HermesResult<SearchPagedCollection>
pub async fn search_by_image( &self, image_data: &[u8], category_ids: Option<&str>, limit: Option<i32>, ) -> HermesResult<SearchPagedCollection>
Search items by image
Sourcepub fn get_mock_items() -> SearchPagedCollection
pub fn get_mock_items() -> SearchPagedCollection
Mock data for development (when no credentials provided)