Class for interacting with Snap's RemoteServiceModule. Unlike "LensStudio:Network".performHttpRequestWithReply, the API requests done here are to specific endpoints that have been registered with Snap.
Example
// The LensStudio:RemoteServiceModule provides performApiRequest() for calling // Snap-registered API endpoints. Unlike generic HTTP requests via LensStudio:Network, // these target specific specs identified by a specId. // // Workflow: // 1. Create a RemoteApiRequest via RemoteApiRequest.create() // 2. Set endpoint, specId, parameters, and optional body // 3. Call performApiRequest(request, callback) to execute // 4. Callback receives a RemoteApiResponse with statusCode, body, linkedResources
Class for interacting with Snap's RemoteServiceModule. Unlike "LensStudio:Network".performHttpRequestWithReply, the API requests done here are to specific endpoints that have been registered with Snap.
Example