You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 4, 2023. It is now read-only.
All needed environment variables are pulled from Vercel (see endpoint-helper.ts)
Testing
To test the endpoints use the provided link from the vercel bot, select the desired route (ex. /page-views), and create a request while also providing the needed data in the request body.
This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.
Please add some correct examples/usage scenarios in the readme as well. The readme should be useful for both people that want to develop and people who want to just use this.
It seems I forgot to update the description after switching to using query string instead of body. Thanks for pointing this out
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
None yet
2 participants
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #355.
Changes proposed in this PR:
index.tsFor details regarding API request parameters and responses check the (un)official Netlify Analytics API docs
All needed environment variables are pulled from Vercel (see
endpoint-helper.ts)Testing
To test the endpoints use the provided link from the vercel bot, select the desired route (ex.
/page-views), and create a request while also providing the needed data in the request body.Example body for
/page-views:{ "from": 1613340000000, "to": 1616018399999, "resolution": "day" }