Note: This API is used to call HTTP functions exposed using the Velo HTTP Functions API with authentication context. It is not equivalent to the Velo API.
The http-functions
module allows you to call HTTP functions exposed using the Velo HTTP Functions API from your app with authentication.
Velo HTTP functions allow you to expose the functionality of a Wix site as a service in the form of APIs. If you’ve added functionality to a site with code and want to use it in an app, you can expose HTTP functions and call the APIs in your code.
Calls made to a site's exposed HTTP functions with the Velo http-functions
module automatically include authentication context. This means you can use methods that return different responses based on the user who calls them, such as getCurrentMember()
, in your HTTP functions.
Your site's HTTP function's prefix defines which SDK method to use to call it. For example, call the HTTP function get_myFunction()
using get()
.