Netlify Serverless Functions for the Foxy.io API
This repository allows for easily creating serverless functions to work with the Foxy.io API, deployed using Netlify. The goal is to make this as approachable as possible, so we're avoiding unnecessary
Functions
The functions provided in this repository can be used independently, or as a reference for building your own functinos. Be sure to check the README for each function in the functions folder.
- cart: Converts a cart between recurring and non-recurring.
- idevaffiliate-marketplace:
- pre-payment-webhook-webflow: Validates the price and/or availability of items against Webflow CMS collections before a payment is processed.
Localdev Setup
npm install -g netlify-cli
netlify login
netlify link
ornetlify init
netlify dev
will start things locally, and will launch your project athttp://localhost:8888
or comparable.
That will stay running in your terminal. Open up a new tab to your project's directory, and you can run netlify functions:list
to see your serverless functions. You can then load them up like http://localhost:8888/.netlify/functions/get_cart
to test.