Campaign Links are links to external sites and are displayed as images.
Resource | Description |
---|---|
GET campaign_links | Returns a list of campaign links currently featured in the Global Navigation |
Returns a list of campaign links currently featured in the Global Navigation.
http://www.dsg.com/global-navigation/api/v1/campaign_links.json
image_size optional | Specifies size of the image to be returned (width x height). Uploaded images are 600x500 so it's highly recommended to stay within that aspect ratio. Example values: 300x250 |
GET http://www.dsg.com/global-navigation/api/v1/campaign_links.json?image_size=300x250
[
{
"image":
"/media-files/W1siZiIsIjIwMTQvMDUvMjkveTNwbnJxOTdsX2Jhc2ViYWxsLmpwZyJdLFsicCIsInRodW1iIiwiNzAweDI1MCJdXQ/baseball.jpg",
"image_alt": "Gear in Action",
"label": "Baseball",
"url": "http://www.dsg.com/baseball"
},
{
"image":"/media-files/W1siZiIsIjIwMTQvMDUvMjkvOGYwbjZ3c3I1MV9ydW5uaW5nLmpwZyJdLFsicCIsInRodW1iIiwiNzAweDI1MCJdXQ/running.jpg",
"image_alt": "Running",
"label": "Running",
"url": "http://www.dsg.com/running"
}
]
Is there a way to limit the amount of returns?