App reviews, troubleshooting, and recommendations
We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more
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?
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",
},
});