1 min read
Magento Api Clients
Poq.Backend.Magento.Client namespace provides Contracts and Clients that allow quick usage of Magento API.
Contracts
Contain all necessary contracts to use Magento clients effectively.
Clients
List of Available Clients
AccountClient
Provides creation of user account in Magento, accessing user account details and etc
Methods
RegisterAsynccreates customer account with provided parameters.LoginAsyncloges customer in.GetCurrentUserDataAsyncreturns customer account details.UpdateUserDataAsyncupdates customer account details.
CartClient
Provides cart manipulation capabilities
Methods
GetGuestCartAsyncreturns guest cart.CreateGuestCartAsynccreates a guest cart.CreateUserCartFromGuestCartAsynccreates new guest cart from existing guest cart.AddGuestCartItemAsyncadds an item to guest cart.UpdateGuestCartItemAsyncupdates item in the guest cart.RemoveGuestCartItemAsyncremoves item from the guest cart.CreateRegisteredUserCartAsynccreates cart for the logged in user.GetRegisteredUserCartAsyncreturns cart for the logged in user.AddRegisteredCartItemAsyncadds item to the logged in user cart.UpdateRegisteredCartItemAsyncupdates item in the logged in user cartRemoveRegisteredCartItemAsyncremoves item from the logged in user cart.
CategoryClient
Provides methods to retrieve categories
Methods
GetCategoriesAsyncreturns categories.
ConfigurableProductsClient
Provides methods to retrieve configurable products
Methods
GetProductChildrenAsyncreturns simple products of the configurable prodduct.
ProductAttributesClient
Provides methods to retrieve product attributes
Methods
GetAttributeAsyncreturns product attribute by attribute code.GetProductAttributesAsyncreturns all product attributes.
ProductRenderInfoClient
Provides methods to retrieve render info
Methods
GetProductRenderInfoAsyncreturns product render info by entity ids.GetProductRenderInfoBySkusAsyncreturns product render info by skus.
ProductStockStatusClient
Provides methods to retrieve stock statuses
Methods
GetProductStockAsyncreturns product stock info.
SearchClient
Provides methods to retrieve search results
Methods
SearchAsyncreturns search result from /search endpoint.GetProductsByAttributeAsyncsearches product by attribute using /products endpoint.GetProductsBySkusAsyncsearches product by skus using /products endpoint.GetProductsByEntityIdsAsyncsearches product by entity ids using /products endpoint.