Ejemplo n.º 1
0
def performerEvents(user_id, performerId):
    searchString = "&id=" + performerId
    url = DOMAIN + "/performers/events/list?app_key=" + API_KEY + searchString
    print url
    eventslist = getEventsFromUrl(url, user_id)
    put_events(eventslist)
    response = make_response("")
    return response
Ejemplo n.º 2
0
def filterEvents(user_id, filterDictionary):
    searchString = ""
    dictionary = json.loads(filterDictionary)
    print dictionary
    for (key, value) in dictionary.items():
        searchString += "&" + key + "=" + value
    searchString += "&page_size=100"
    url = DOMAIN+"/events/search?app_key="+API_KEY+searchString
    eventslist = getEventsFromUrl(url, user_id)

    put_events(eventslist)

    response = make_response("")
    return response