curl -X GET \
'https://api.appcharge.com/components/v1/badge' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'x-publisher-token: <x-publisher-token>'
[
{
"id": "507f1f77bcf86cd799439011",
"name": "New Item",
"publisherBadgeId": "new_item",
"type": "emblem",
"badgeImageId": "507f1f77bcf86cd799439011",
"badgeImageUrl": "https://media.appcharge.com/media/69133d595af23405d8e843a5"
},
{
"id": "507f1f77bcf86cd799439013",
"name": "Limited Offer",
"publisherBadgeId": "limited_offer",
"type": "emblem",
"badgeImageUrl": "https://images.pexels.com/photos/limited-offer.png"
},
{
"id": "507f1f77bcf86cd799439012",
"name": "New Year Celebration",
"publisherBadgeId": "new_year_celebration",
"type": "ribbon",
"badgeImageUrl": "https://images.pexels.com/photos/new-years.png",
"text": "New Year Sale",
"backgroundColor": {
"colorOne": "#00c6ff",
"colorTwo": "#0072ff",
"gradientDirection": "to right"
},
"textColor": {
"colorOne": "#ffffff"
}
}
]
Badges
Get All Badges
Retrieves a list of all badges.
GET
/
components
/
v1
/
badge
curl -X GET \
'https://api.appcharge.com/components/v1/badge' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'x-publisher-token: <x-publisher-token>'
[
{
"id": "507f1f77bcf86cd799439011",
"name": "New Item",
"publisherBadgeId": "new_item",
"type": "emblem",
"badgeImageId": "507f1f77bcf86cd799439011",
"badgeImageUrl": "https://media.appcharge.com/media/69133d595af23405d8e843a5"
},
{
"id": "507f1f77bcf86cd799439013",
"name": "Limited Offer",
"publisherBadgeId": "limited_offer",
"type": "emblem",
"badgeImageUrl": "https://images.pexels.com/photos/limited-offer.png"
},
{
"id": "507f1f77bcf86cd799439012",
"name": "New Year Celebration",
"publisherBadgeId": "new_year_celebration",
"type": "ribbon",
"badgeImageUrl": "https://images.pexels.com/photos/new-years.png",
"text": "New Year Sale",
"backgroundColor": {
"colorOne": "#00c6ff",
"colorTwo": "#0072ff",
"gradientDirection": "to right"
},
"textColor": {
"colorOne": "#ffffff"
}
}
]
curl -X GET \
'https://api.appcharge.com/components/v1/badge' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'x-publisher-token: <x-publisher-token>'
[
{
"id": "507f1f77bcf86cd799439011",
"name": "New Item",
"publisherBadgeId": "new_item",
"type": "emblem",
"badgeImageId": "507f1f77bcf86cd799439011",
"badgeImageUrl": "https://media.appcharge.com/media/69133d595af23405d8e843a5"
},
{
"id": "507f1f77bcf86cd799439013",
"name": "Limited Offer",
"publisherBadgeId": "limited_offer",
"type": "emblem",
"badgeImageUrl": "https://images.pexels.com/photos/limited-offer.png"
},
{
"id": "507f1f77bcf86cd799439012",
"name": "New Year Celebration",
"publisherBadgeId": "new_year_celebration",
"type": "ribbon",
"badgeImageUrl": "https://images.pexels.com/photos/new-years.png",
"text": "New Year Sale",
"backgroundColor": {
"colorOne": "#00c6ff",
"colorTwo": "#0072ff",
"gradientDirection": "to right"
},
"textColor": {
"colorOne": "#ffffff"
}
}
]
Was this page helpful?
