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

Observations API endpoints #108

Open
bradders opened this issue Feb 25, 2016 · 4 comments
Open

Observations API endpoints #108

bradders opened this issue Feb 25, 2016 · 4 comments

Comments

@bradders
Copy link

Should http://www.avalanche.ca/api/observations be returning a response (like /forecasts)?

@bradders
Copy link
Author

bradders commented Mar 1, 2016

@wnh Hey man, is this API endpoint still available, maybe at a different location?

@nathanbertram
Copy link
Contributor

@bradders is this what you're looking for http://www.avalanche.ca/api/min/observations/ ? What are you trying to do?

@bradders
Copy link
Author

bradders commented Mar 1, 2016

@wnh That's the one, awesome, thanks! Just playing around with the CAC API! Can I paginate that list with url parameters?

@wnh
Copy link

wnh commented Mar 1, 2016

@bradders There isn't any pagination right now unfortunately as it was only designed to output the latest MIN posts. You can select the time frame going backwards with the last=<n>:days query string parameter where <n> is a number.

Also add client=web to get all the different post types from the API. If you leave it off you only get the quick posts, for backwards compatibility with mobile apps.

If you make something cool let me know!

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