Accroding to the document,the data format should be like:'{"query": {"measures":["users.count"]}}'
modify
var query = new
{
measures = new[] { "room_occupancies.count" },
dimensions = new[] { "room_occupancies.roomtype", "room_occupancies.checkindate" },
limit = 10
};
var jsonQuery = JsonSerializer.Serialize(query);
to
var query = new
{
query = new
{
measures = new[] { "room_occupancies.count" },
dimensions = new[]
{
"room_occupancies.roomtype",
"room_occupancies.checkindate"
},
limit = 10
}
};
var jsonQuery = JsonSerializer.Serialize(query);
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
Best regards,
Ruikai Feng