Hi, im trying to implement a system where my API keys are in Unity Secrets in dashboard, im following the documentation have done the part where im able to call a cloud code method via Unity c# script. The issue im having right now is that i cant seem to retrieve the Secrets value for my API via cloud coding, the code given in documentation
[CloudCodeFunction("GetSecretExampleFoo")]
public async Task GetSecretExampleFoo(IExecutionContext context, IGameApiClient gameApiClient)
{
Secret SECRET_EXAMPLE = await gameApiClient.SecretManager.GetSecret(context, "SECRET_EXAMPLE");
// The secret value can be accessed via SECRET_EXAMPLE.Value
// Be wary of how this secret value is utilised within your code and avoid logging the secret value or passing it as a response/ exception
...
}
shows me that gameApiClient does not contain a definition for SecretManager, i do have the using Unity.Services.CloudCode.Apis; added in the script. Any help or suggestion is helpful since im new to cloud coding