Magento API for mobile app - magento

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

Related

Add Google, Facebook and Instagram Login in Flutter APP with REST API

I have purchased this Multi-restaurant system from codecanyon. Backend is developed with Laravel and I want to add Social Login in customer app but i am not able to figure out the way to do it. Through Firebase we can do it but how do we manage it with API. Any kind of resource or help will be appreciated.

Shopify 3rd Party SSO WP Shopify Pro plugin

Hello I have a client with a wordpress website using WP Shopify Pro plugin. I only have access to the shopify store is this plugin able to interact with a custom shopify app? The client sells online courses and would like a single sign on solution I have jwt experience but trying to picture how this is gonna integrate being new to shopify. I've only played with adding admin functionality.
We have a Shopify+Thinkific site bridge (we have Thinkific Premium, with SSO available), we want our Shopify customers log into their Thinific account. SSO
How can this be accomplished with jwt token? Anyone done anything similar?
https://developers.thinkific.com/more/sso/
https://www.shopify.com/partners/blog/17056443-how-to-generate-a-shopify-api-token
Anyone have any examples of a custom app where they created successful 3rd party SSO interrogation without multipass?

Laravel Google Login, Calendar and Drive multiple API integration

I have a question maybe useful for most of Laravel developers.
I want to allow user to connect to one or more of these APIs:
Google Login
Google Calendar
Google Drive
I have used Laravel Socialite so far, which provides clear connection to many social accounts. My issue is that through Socialite I have only one google Driver, while I need to address to different Google API from different buttons.
My .env data, connected to the config/services.php are:
GOOGLE_CLIENT_ID=1.apps.googleusercontent.com
GOOGLE_CLIENT_SECRET=XXX
GOOGLE_CALLBACK_URL=https://mysite/google/login_callback
GOOGLE_CALENDAR_CLIENT_ID=2.apps.googleusercontent.com
GOOGLE_CALENDAR_CLIENT_SECRET=YYY
GOOGLE_CALENDAR_CALLBACK_URL=https://mysite/google/calendar_callback
GOOGLE_DRIVE_CLIENT_ID=3.apps.googleusercontent.com
GOOGLE_DRIVE_CLIENT_SECRET=WWW
GOOGLE_DRIVE_CALLBACK_URL=https://mysite/google/drive_callback
Now, it is now clear to me how to manage multiple APIs from different buttons. Here some options:
Use Socialite with unique credential entry point (google_login) from Google Console Cloud and in the callback function into the Controller I differentiate different cases (login, calendar, drive...)
I create a different Google credential for each API into API section, I use Socialite only for login and I create/download separate package for Calendar, for Drive, etc...
So the main point is: multiple Google APIs in Laravel need to be applied with unique API credential and at Controller level I address to relative code using scopes or I have to create a separate API credential of each API, make the relevant .env keys and the manage all separately.
I hope to have been not to much blur.
thanks!
With the socialite package, you can only do authentication. If you are developing for Calendar and Drive, I would suggest to use google client library
$client = new \Google_Client();
$client->setAccessToken($accessToken);
$client->setSubject($email);
$clien->addScope(['{scopes}']);
$client->authorize();
$client->get('https://www.googleapis.com/calendar/v3/calendars/' . $calendar_id . '/events');
Please also refer this document: Event apis
Drive Apis

Dashboard For Mobile App

I am building a native app in android / ios and using laravel 5.3 for server side API's development. This app is related to E-commerce where user and seller will come buy an sell their product. To browse all the users, products and other statistics and action I want to develop an admin / dashboard panel. What is the best way to do this.
There are number of ways to do it. You can use tokenized api from laravel for authentication and you can use jwt sort of libraries. Which will allow you to authenticate and with tokenized api you can securely make http request with your laravel back end. You just have to specify api guard specifically for your admin panel. There is one default api guard as well. You can use that one or create new. Completly upto you.
You can check this: https://asgardcms.com/. It's a modular multilingual CMS built with Laravel 5, with an MIT license.

Mixing MVC 5 + WEB API 2 Authentication for Website & Mobile App

I just got Visual Studio 2013 loaded up and want to create a new web/mobile app that uses the same authentication for the website version and the mobile version.
I loaded up both templates (MVC5 w/Indivual Account & WEB API w/Individual Account) to check them out but it looks like I actually want to do a merge of those projects so the MVC5 uses the Web Api 2 OWIN for normal username & password authentication along with Social Media logins via Oauth.
SPA - I did look at this template but I'm not looking for a SPA as my website will need to be SEO friendly plus I know MVC and want to keep using it.
This would seem like an obvious template that developers would like to have in order to support both websites and mobile apps in the same project.
If your target is to share user accounts between the MVC app and the Web Api app, then all you need to do is to have them both point to the same UserStore.
I think this is what you are looking for:
http://leastprivilege.com/2012/10/23/mixing-mvc-forms-authentication-and-web-api-basic-authentication/

Resources