Can you provide c# example how to get Title Objects from Azure Cloud? How to get json with "Data" key?
var settings = new PlayFabApiSettings
{
TitleId = TITLE_ID,
DeveloperSecretKey = DEVELOPER_SECRET_KEY
};
var authContext = new PlayFabAuthenticationContext
{
EntityToken = context.TitleAuthenticationContext.EntityToken
};
var getObjectRequest = new GetObjectsRequest
{
Entity = new EntityKey()
{
Id = context.CallerEntityProfile.Entity.Id,
Type = context.CallerEntityProfile.Entity.Type
}
};
var dataApi = new PlayFabDataInstanceAPI(settings, authContext);
PlayFabResult<GetObjectsResponse>? getObjectsResponse = await dataApi.GetObjectsAsync(getObjectRequest);
Dictionary<string, ObjectResult>? getObjectsResult = getObjectsResponse.Result.Objects;