-
Notifications
You must be signed in to change notification settings - Fork 3
Netlify Analytics API requests #4
base: main
Are you sure you want to change the base?
Conversation
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/oceanprotocol/market-stats/DRSZzEENvQ8QNcAydzUeE8Rh4X6T |
Works with query string, not with body 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 |
Fixes #355.
Changes proposed in this PR:
index.ts
For 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
: