【发布时间】:2011-12-03 07:07:01
【问题描述】:
我需要通过我的 iphone 应用程序在linkedIn 的墙上发帖。
为此,我正在从the source 下载代码。
在这个贴在墙上的代码是
- (RDLinkedInConnectionID *)updateStatus:(NSString *)newStatus {
NSURL* url = [NSURL URLWithString:[kAPIBaseURL stringByAppendingString:@"/v1/people/~/current-status"]];
newStatus = [newStatus length] > kRDLinkedInMaxStatusLength ? [newStatus substringToIndex:kRDLinkedInMaxStatusLength] : newStatus;
NSData* body = [RDLinkedInRequestBuilder buildSimpleRequestWithRootNode:@"current-status" content:newStatus];
return [self sendAPIRequestWithURL:url HTTPMethod:@"PUT" body:body];
}
这是仅发布当前状态的代码,但我需要像 facebook 一样发布标题、描述和网址。
我该怎么做,谁能帮帮我。
【问题讨论】:
标签: iphone social-networking linkedin