在CustomObject上查询Quickblox API group_by

时间:2014-07-25 11:38:05

标签: ios sql rest group-by quickblox

我想要使用最新日期group_by user_id检索所有customObjects。 我如何在IOS中提出此请求?

1 个答案:

答案 0 :(得分:0)

尝试这样的事情

NSMutableDictionary *getRequest = [NSMutableDictionary dictionary];
[getRequest setObject:@"user_id" forKey:@"group_by"];
[getRequest setObject:@"max" forKey:@"created_at[calc]"];

[QBCustomObjects objectsWithClassName:@"MyClass" extendedRequest:getRequest delegate:self];