magento SOAP API -
How can I use the Magento SOAP API description of an existing user's cart?
I have a Magento based e-commerce application already for a desktop application for this ecommerce application. My use case is -
-> User from desktop webpage Log in and then adds an item to the cart -> User now logs from mobile with the same credentials
I want to be able to show the item which is being added to the desktop page . But right now I do not see any SOAP API that asks for the current cart information for a user.
Note: I'm trying this with an Android application. So please suggest anything with the SOAP API
that you use the magento The information can be found in the API
. Using SOAP V1, you can get the information of the cart like
$ client = new SoapClient ('http: // magentohost / api / soap /? Wsdl'); // if somestuff requires api authentication, // a session token $ session = $ client- & gt; Get the login ('APIUser', 'APKY'); $ Result = $ client- & gt; Call ($ session, 'cart.info', $ quoteid); Var_dump ($ result);
Or you can use SOAP V2 just to see it for the full information.
Comments
Post a Comment