Skip to content

Instantly share code, notes, and snippets.

@shooley
Created June 9, 2014 19:04
Show Gist options
  • Save shooley/7cbb239b355af369712f to your computer and use it in GitHub Desktop.
Save shooley/7cbb239b355af369712f to your computer and use it in GitHub Desktop.

Resources

Campaign Links

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

GET campaign_links

Returns a list of campaign links currently featured in the Global Navigation.

Resource URL

http://www.dsg.com/global-navigation/api/v1/campaign_links.json

Parameters

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
#### Example Request

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"
}
]
@dks0280703
Copy link

Is there a way to limit the amount of returns?

@wpuccio
Copy link

wpuccio commented Jun 24, 2014

Is there any way that we can get a "status" and "code" with an array of these objects?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment