Hello,
What do you think about making possible to make API calls using Embedded App SDK?
Sample use case: an app which needs to query products
Current solution (unless I'm missing something): app developer has to write an app server-side API which calls Shopify API to query products using permanent access token, basically a wrapper which passes data around.
Desired solution: a ShopifyApp.api wrapper which behaves like $.ajax(), .e.g
ShopifyApp.api({ type: "GET", url: '/admin/products.json', data: JSON.stringify({ vendor: 'Zara' }), success: function (res) { //do something with result data } })
One could also update, create items etc. using the same wrapper.
The Embedded App SDK could then also be used internally to build Shopify admin.