Are you using the SUGAR prefab in your scene, regardless of if you intend to use the default UI or not, this will make integration simpler and will allow you to use the SUGARManager.Client for API calls, make sure that you are logged in before making calls to the API.
To give an example of how you would do this, see below:
SUGARManager.Client.Session.LoginAsync(Id, new AccountRequest { Name = "[x]", Password = "[y]", SourceToken = "SUGAR" },
success => {
var example = SUGARManager.Client.Game.Get().First();
Debug.Log(example.Name);
}, exception => {
Debug.LogError(exception);
});
where Id is known from the admin panel, x and y are the login details provided.
In the Success callback we are just checking a game is returned in Game.Get(), this code is merely an example and probably not be very useful :)
If you want to use SUGARClient directly, it may be wise to host your own version of SUGAR locally so that you can debug it easily. We have provided details of how to setup its docker container here
Thanks