gpt4 book ai didi

ios - 登录后加载 QBCOCustomObject

转载 作者:行者123 更新时间:2023-11-29 13:05:38 25 4
gpt4 key购买 nike

EDIT: I've found the solution.

The right magic word is: [QBCustomObjects objectsWithClassName:@"Settings" extendedRequest:(NSMutableDictionary*)@{@"user_id": [NSNumber numberWithInt:userID]} delegate:self];

I was fooled by QuickBlox web interface, I saw the field "User ID" but its' right name is "user_id". Igor, thanks for link: http://quickblox.com/developers/Custom_Objects#Module_description

登录后,我立即尝试加载属于该用户的自定义对象。代码:

[QBCustomObjects objectsWithClassName:@"Settings" extendedRequest:(NSMutableDictionary*)@{@"User ID": [NSNumber numberWithInt:userID]} delegate:self];

我有这个错误:

Performing async request: 
RestRequest:
------
GET http://api.quickblox.com/data/Settings.xml
headers:{
"QB-SDK" = "iOS 1.7.1";
"Qb-Token" = 7cca2175045d14f5268d665b19e798f7240b5119;
"QuickBlox-REST-API-Version" = "0.1.1";
}
parameters:{
"User ID" = 503563;
}
raw body:
2013-09-10 14:54:30.771 DimChat[48597:6c0f] Request failed, response:
RestResponse:
------
<QBASIHTTPRequest: 0x996ae00>
headers:(null)
body:
error:Error Domain=QBASIHTTPRequestErrorDomain Code=5 "Unable to create request (bad url?)" UserInfo=0x7d693e0 {NSLocalizedDescription=Unable to create request (bad url?)}
2013-09-10 14:54:30.771 DimChat[48597:c07] (
"Connection closed due to timeout. Please check your internet connection."
)

可能是我做错了什么?

我可以在用户事件处理程序中创建一个新的自定义对象,甚至我可以使用它的 ID(重新)加载创建的对象

[QBCustomObjects objectWithClassName:@"Settings" ID:co.ID delegate:self];

但是当我只知道用户 ID 并且在登录后立即加载自定义对象。

最佳答案

有一个带有预定义字段解释的表格(粗体)http://quickblox.com/developers/Custom_Objects#Module_description

关于ios - 登录后加载 QBCOCustomObject,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18717282/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com