Theme API
Read CallListShopMedia1
List a shop's images and videos: those of theme blocks and those of tiers, tier features, rewards, ways to earn, milestones, assets, referral programs, voting choices and the Apple wallet pass, with file URLs. By default only the ones that are set.
| Kind | Read API call |
|---|---|
| Method | GET or POST |
| URL | https://app.bubblehouse.com/api/v2023061/<shop>/ListShopMedia1 |
| Authentication | Shop TokenStaff Token |
Needs the media view permission or theme view. Theme images have keys like banner.background.image. Images of entities have keys like tier.1086983a00000123.hero.image or vendible.1086983a00000456.image, the same IDs that get_configuration shows. filter all also lists empty ones.
Replace or remove one with ReplaceShopMedia1.
Input
-
matchstring optionalReturn the keys matching this pattern, where
*matches any text:banner.*,*.string,tier.*.hero.image. -
filterstring optionalconfigured(the default) returns what is saved or in use;unconfiguredwhat is not;allboth. String lists also taketranslatedanduntranslated.unconfiguredandallneed the theme view permission. -
cursorstring optionalContinue a list: pass
next_cursorfrom the previous page. -
limitinteger optionalMost items to return. Defaults to 200; at most 2000.
Output
-
revisionstring requiredThe revision of the shop's configuration. Pass it to the matching write call as
expected_revision. -
The matching items in key order.
-
totalinteger requiredHow many items matched, on all pages.
-
next_cursorstring optionalSet when more items follow; pass it as
cursorto get them.
Usage Examples
Tier images
Request
{
"match": "tier.*"
}
Response
{
"revision": "1086983a00000003:2:7:3",
"settings": [
{
"in_effect": "s1086983a00000003-f1086983a00000789-k2m9q4w7x1.png",
"is_set": true,
"key": "tier.1086983a00000123.hero.image",
"size": 48211,
"source": "entity",
"type": "image",
"url": "https://app.bubblehouse.com/uploaded/s1086983a00000003-f1086983a00000789-k2m9q4w7x1.png",
"value": "s1086983a00000003-f1086983a00000789-k2m9q4w7x1.png"
}
],
"total": 1
}
Specific Errors
| Status | Error | Reason & Examples |
|---|---|---|
| 400 | bad_data |
An input is invalid. |
| 403 | access_denied |
Your permissions do not allow this call or filter. |
Global Errors
| Status | Error | Reason & Examples |
|---|---|---|
| 401 | invalid_token |
The provided authentication token is invalid or has expired. For example: |