Does the API support multiple values for a given parameter? The following reference is in the documentation regarding escaping, but I wanted to verify the API supports it and that it does work in this manner.
Filter parameters with multiple values are separated by a pipe (|) and encoded as %7C.
Example: channel=Baseball%7Cbasketball
Specifically, I'm looking to support multiple DMA and multiple event types per request.
Thanks!
Marc
Message edited by Marc Jones 3 years ago
active Admin
–
15 years ago
Hey Marc,
The "|" delimiter does indeed work. The following query, for example, returns Cycling events in the Denver and Baltimore DMAs, http://api.amp.active.com/assets/cycling?dma=Denver|Baltimore&api_key=rnxjx6ts3pg579gvrbe42qn7. It'll work without escaping the "|" character in Firefox, but you'll have to escape it when invoked programatically.
Does the API support multiple values for a given parameter? The following reference is in the documentation regarding escaping, but I wanted to verify the API supports it and that it does work in this manner.
Filter parameters with multiple values are separated by a pipe (|) and encoded as %7C.
Example: channel=Baseball%7Cbasketball
Specifically, I'm looking to support multiple DMA and multiple event types per request.
Thanks!
Marc
Message edited by Marc Jones 3 years ago
active Admin – 15 years ago
Hey Marc,
The "|" delimiter does indeed work. The following query, for example, returns Cycling events in the Denver and Baltimore DMAs, http://api.amp.active.com/assets/cycling?dma=Denver|Baltimore&api_key=rnxjx6ts3pg579gvrbe42qn7. It'll work without escaping the "|" character in Firefox, but you'll have to escape it when invoked programatically.