• Register

ACTIVE Network API Forums

API Forum

RSS Feed

I want JUST official races, not training or virtual events

    • Stuart
    • Topic created 12 years ago

    Message edited by Stuart 12 years ago

  1. jarredd12 years ago

    Hi there Stuart,

    Currently, we do not have a way to filter events in this way through the API call itself. Some our our other partners have implemented code within their applications to exclude these additional types of events. As a solution to clean up our data, an example would be to use cold fusion to filter out (Ex: cityrunningtours, foundation, virtual/program, a specific university email, jackrabbit,etc); see code below:

    <cfif isdefined("currentEvent.meta.seourl") AND NOT (isdefined("currentEvent.meta.eventUrl") AND refindnocase('cityrunningtours|morlockfoundation',currentEvent.meta.eventUrl.xmltext) gt 0) AND NOT (isdefined("currentEvent.meta.contactEmail") AND refindnocase('gwc.cccd.edu',currentEvent.meta.contactEmail.xmltext) gt 0) AND NOT (isdefined("currentEvent.meta.assetName") AND refindnocase('virtual',currentEvent.meta.assetName.xmltext) gt 0) AND NOT (isdefined("currentEvent.meta.assetName") AND refindnocase('program',currentEvent.meta.assetName.xmltext) gt 0) AND NOT (isdefined("currentEvent.meta.assetName") AND refindnocase('JackRabbit',currentEvent.meta.assetName.xmltext) gt 0) >

    We are working on some enhancements on our end that will allow for better filtering of events through the API. I will send an announcement once the updates have been made and the new functionality is available. For now, the filtering must be done within your application.

    Best regards,

    Jarred

    Technical Account Manager, ACTIVE Network

[ Page 1 of 1 ]