我要为一家网上商店开发一个应用程序。当用户想要向购物车中添加某些商品时,必须检查购物车中商品的可用性,然后将其添加到购物车中。
对于这个操作,我开发了这样一个AsyncTask:
class AddItemTask extends AsyncTask<Void,Void,Void>{
@Override
protected Void doInBackground(Void... params) {
//try to check if item is available to order
availabilityFlag = isIt
As Alex Gusev cleared in their [reply][1] Magento 2 REST can not distinguish between authenticated and anonymous customers. Web services ACL is applied for admin users only. All customers are anonymous for REST services.
But there is a method in magento 2 for rest api swagger http://devdocs.magento