Skip to content
ShopentlyLearn

Photo · WebP

Read and preview article photos

GET/api/v1/addons/shopently.blog/media/{media_id}/file

cURL request

: "${SHOPENTLY_SHOP_URL:?}"

curl --disable --globoff --fail-with-body --silent --show-error \
  --proto '=https' --connect-timeout 5 --max-time 30 \
  --request GET \
  --header "Authorization: Bearer ${SHOPENTLY_ACCESS_TOKEN:?}" \
  --max-filesize 5242880 \
  --output "${SHOPENTLY_OUTPUT_FILE:?}" \
  --url "${SHOPENTLY_SHOP_URL%/}"'/api/v1/addons/shopently.blog/media/e8663afe-3c38-461c-a142-a980085630af/file?variant=thumbnail'

Response

Content-Type: image/webp
Content-Disposition: inline; filename="image.webp"

Required permissions

Authentication
Access token
Available from
BASIC
Key permission
Read and preview article photosaddon.shopently.blog:media_read
Required installed module

shopently.blog