Quantcast
Channel: Opinion: Shopify Community - Shopify APIs & SDKs
Viewing all articles
Browse latest Browse all 25503

Embedded App SDK feature request: admin API calls by Marius Andreiana

$
0
0

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.

 

 


Viewing all articles
Browse latest Browse all 25503

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>