magento SOAP API - magento

How do i get the cart details of an existing user using Magento SOAP API.
I have an e-commerce Application based on Magento. There is already a desktop webpage for this e-commerce application. My use case is this -
-> User logs in from desktop webpage and then adds an item to the cart
-> User now logs in with the same credential from mobile
I want to be able to show the item that is being added from desktop page. But right now i don't see any SOAP API which helps me query any existing cart info for an user.
Note : I am trying this from an Android Application. So please suggest anything that i can with the SOAP API's

you can get cart information using magento api. using SOAP V1 you can get cart info like that
$client = new SoapClient('http://magentohost/api/soap/?wsdl');
// If somestuff requires api authentification,
// then get a session token
$session = $client->login('apiUser', 'apiKey');
$result = $client->call($session, 'cart.info', $quoteid);
var_dump ($result);
OR you can use SOAP V2. Just check this out for whole information.
http://www.magentocommerce.com/api/soap/checkout/cart/cart.info.html

Related

Shopify shop integration into Laravel

I want to add a Shopify shop into my Laravel app.
It's using Shopify customer's username and password into my Laravel login api.
Can I redirect the customer into his Shopify web page with login?
Yes it is possible, Shopify offers the multipass feature for this exact purpose. To do so you need to generate a Multipass token with customer information and redirect user to the generated URL with token. More information for Multipass implelmentation is in Shopify documentation.
The Multipass login feature is available to Shopify Plus merchants
only.

Shopify does not redirect to admin page after installation

I'm currently building a private app for Shopify. I've successfully passed the authorization step and get an appropriate response for it.
However, unlike other apps that I've seen, I'm not redirected to the Shopify's admin panel followed by my response page in the frame.
Instead, the redirection happens directly to my ngrok-generated address.
If you'd like to load your app within the Shopify admin then you can implement the Embedded App SDK.

Laravel Stormpath Social Login Error

I am using Laravel 5.1 and Stormpath for User management.
I followed this documentation to implement google login
Configuring Your Social Provider = DONE
I created project in Google Console and in “Authorized redirect URIs” I've added
https://{DNS-LABEL}.apps.stormpath.io/authorize/callback
Create a Stormpath Social Directory = DONE
Initiate Social Login - In my form when I click on Google Sign In it redirects to
https://{DNS-LABEL}.apps.stormpath.io/?response_type=stormpath_token&
account_store_href=https://api.stormpath.com/v1/directories/{id}
&redirect_uri=https%3A%2F%2Flocalhost
and returns
{"status":404,"message":"Resource not found."}
As per this documentation:
The user clicks on a “Login with Google” link pointing at your application’s /authorize endpoint
Stormpath handles the login to Google and redirects the user back to your app with a Stormpath Token JWT response
What am I doing wrong? Why isn't stormpath redirecting to the google login page?
It looks like the URL that you are creating is missing the /authorize part. If you update your URL to be
https://{DNS-LABEL}.apps.stormpath.io/authorize?response_type=stormpath_token&
account_store_href=https://api.stormpath.com/v1/directories/{id}
&redirect_uri=https%3A%2F%2Flocalhost
It should begin working for you.
In a future release of the PHP SDK (which powers the laravel integration), we will be able to generate this URL for you.
If you are using our Stormpath/Laravel integration, the views provided will automatically handle social logic for you. If you are doing this from scratch, it may be worth a look at https://github.com/stormpath/stormpath-laravel
-Brian

Get product and category from magento by using REST

I create application mobile with PhoneGap for shopping. I use Magento to add products and categories, the problem is how can get product and categories from Magento to my application mobile by using APi REST
I use version 1.9 of Magento .
please Help me and thank you
See This link
https://magento.stackexchange.com/questions/111338/how-to-retrieve-products-from-magento-rest-api
before that see official documentation of magento REST api
Then to get final oauth token and oauth token secrete see this link
How to use POSTMAN rest client with magento REST api with Oauth. How to get Token and Token Secret?
Then fill the oauth token and secrete in the example from first link, you will get the list of products

Magento API for mobile app

We are trying to to develop a mobile app for an eCommerce site developed with magento. I am trying to use magento api. But the problem is i have to use apiuser & apikey to use the api.
$proxy = new SoapClient('http://magentohost/api/soap/?wsdl');
$sessionId = $proxy->login('apiUser', 'apiKey');
So i was wondering is there any other way to use the api & build my mobile app. Because it is not possible to build app for each individual user.
You will use the same API User & API key for all your app users. The apiuser & apikey does not represent the logged in user (customer) of your store, but its merely the authentication details for accessing the Magento Soap endpoints.
Dayson is right, you have to use the same API key for all your users.
We've been working a lot on this kind of apps and we have just open sourced an SDK for Android and iOS to ease the connection with the Magento's APIs. Maybe it helps you with the rest of your development: http://meets.io

Resources