REST API Integration

Connect your Metaverse with any remote REST API.

HoloFair provides support for custom REST API requests through the SDK. You may call HTTP methods using the GetRequestHandler and PostRequestHandler.

Add your request handler of choice to an empty object

You have two unity events that are invoked based on the response from the server. Successful request responses (ex. 200) invoke OnSuccess and errors (ex. 404 or 502) invoke OnFail. You also have a URL input. See Smart String on how to set it up within your Metaverse. You also have variables that allow you to prase JSON values. In the output (and input in the case of POST), you may specify variable parsers and their behaviours. See Serialized Variables for more clarification.

Last updated