gpt4 book ai didi

cocoa-touch - Restkit,使用 loadObjectsAtResourcePath 发送发布数据

转载 作者:行者123 更新时间:2023-12-02 05:32:10 24 4
gpt4 key购买 nike

如果我使用restkit发出请求,我可以使用共享客户端发送post参数。我怎样才能对共享对象管理器做同样的事情,似乎没有在请求对象时发布数据的功能。

重申一下,我希望在使用 loadObjectsAtResourcePath 时发送一些发布数据

谢谢

最佳答案

必须使用loadObjectsAtResourcePath吗?这是我用来向我的服务器发送 POST 请求的内容

    RKParams* params = [RKParams params];
[params setValue:@"The text" forParam:@"text"];

RKClient* myClient = [RKClient sharedClient];
[myClient post:resourceURL params:params delegate:self];

你会得到回复

    - (void)request:(RKRequest *)request didLoadResponse:(RKResponse *)response

PS:刚刚找到这个链接:https://github.com/RestKit/RestKit/wiki/Posting-NSDictionary-as-JSON

关于cocoa-touch - Restkit,使用 loadObjectsAtResourcePath 发送发布数据,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10310174/

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