Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request events on a specific date #18

Open
phil-newman opened this issue Jul 14, 2016 · 5 comments
Open

Request events on a specific date #18

phil-newman opened this issue Jul 14, 2016 · 5 comments

Comments

@phil-newman
Copy link

Other than today/tomorrow, is it possible to request events for a specific date in the future?

@mfoti
Copy link
Contributor

mfoti commented Jul 14, 2016

Uou can do this just for city and venue events, there is not active free search ATM.

@phil-newman
Copy link
Author

I can see /api/v3/venues/{id}/dates for venue but not a date filter for city?

@hpatoio
Copy link
Member

hpatoio commented Jul 15, 2016

@phil-newman what do you want to do exactly ? Search for the events in a city in for a certain day ?

If this is your need you can use

GET /api/v3/cities/{city_id}/events?date_from=YYYY-MM-DD&date_to=YYYY-MM-DD

If you only specify date_from you get the event available for that day.

@phil-newman
Copy link
Author

Calling /api/v3/cities/1/events?date_from=2016-12-20&limit=1 returns a single event:

title=Fisherman's Friend StrongmanRun 2016 Rovereto
id=7250

I wanted to verify the dates of the event (which by the way it would be useful to have at least a start and end date for each event available for all event requests....)
If I call /api/v3/events/7250/dates
I get:

date=2016-09-24

This does not seem correct.

@hpatoio
Copy link
Member

hpatoio commented Jul 22, 2016

  1. /api/v3/cities/1/events?date_from=2016-12-20&limit=1 should not return that event. Because the event start and end on September the 24th. Gonna check what happen

  2. I've open an internal task to add start and end date to GET /events/{id}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants