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.
Thanks to all Community members that participated in our inaugural 2 week AMA on the new E...
By Jacqui Mar 10, 2023Upskill and stand out with the new Shopify Foundations Certification program
By SarahF_Shopify Mar 6, 2023One of the key components to running a successful online business is having clear and co...
By Ollie Mar 6, 2023