Getting started
class ExampleApi
{
// Suggestion is to cache the api reference (do not create new instance for each call)
protected ref CRDTN_RestApiWrapper m_RestApi;
};class ExampleApi
{
// Suggestion is to cache the api reference (do not create new instance for each call)
protected ref CRDTN_RestApiWrapper m_RestApi;
void ExampleApi()
{
// https://my-backend-server
string url = ""; // Use some endpoint you need to call request on
m_RestApi = new CRDTN_RestApiWrapper(url);
}
};Using GET method
Using POST method
Last updated