Hi ![]()
I want to implement this banner in my app:
Which Shopify API can return to me a status active/inactive in the current theme?
I found a similar thread, but it’s outdated I think:
Hi ![]()
I want to implement this banner in my app:
Which Shopify API can return to me a status active/inactive in the current theme?
I found a similar thread, but it’s outdated I think:
I think this one I need:
/admin/api/2023-07/themes/{theme_id}/assets.json?asset[key]=config/settings_data.json
But the app, which is built using Remix template, returns a 401 error
How to pass the correct authentication credentials?
Hi,
did you get any solution, since Asset API’s are deprecated not sure how to get status for extension enable or disable?
Shopify API version: 2024-01
I use this code:
const sessionId = await shopify.session.getCurrentId({
isOnline: true,
rawRequest: req,
rawResponse: res,
});
const session = await sessionHandler.loadSession(sessionId);
const client = new shopify.clients.Rest({ session });
const response = await client.get({
path: "assets",
query: {
"asset[key]": "config/settings_data.json",
},
});