Development discussions around Shopify APIs
Hello,
My client has a product with a video on it which is viewable from the website. https://www.totencarry.com/collections/tote-carry-in-stock-travel-sets/products/black-apollo-ii-trav...
When I am retrieving the same product from the android sdk, the media object in only returning MediaImage Type.
I am using the following query to retrieve the media under a product,
.media({ args -> args.first(50) },
{ mediaQuery ->
mediaQuery.edges { mediaEdge ->
mediaEdge
.node { mediaNode ->
mediaNode
.previewImage { prevQue ->
prevQue
.originalSrc()
}
.onExternalVideo { exVideoQuery ->
exVideoQuery
.embeddedUrl()
.previewImage { prevQue ->
prevQue
.originalSrc()
}
}
.onVideo { videoQue ->
videoQue
.previewImage { prevQue ->
prevQue
.originalSrc()
}
.sources { sourceQue ->
sourceQue
.url()
}
}
}
}
})
How can I retrieve video in this product? Thanks.
User | RANK |
---|---|
5 | |
5 | |
5 | |
4 | |
4 |
Learn these 5 things I had to learn the hard way with starting and running my own business
By Kitana Jan 27, 2023Would you love to unleash the unbridled power of the Google Shopping Channel into your sho...
By Gabe Jan 6, 2023How can you turn a hobby into a career? That’s what Emmanuel did while working as a wa...
By Skye Dec 30, 2022