1
我简单的想从我的iOS应用程序做“与LinkedIn共享”。”如何为LinkedIn生成访问令牌?
如何分享关于联在之前生成访问托克,如何 产生的呢?
这里是我的在联在发布代码,但它不工作,因为我没有访问令牌。
// For positing on linked In
[[LISDKAPIHelper sharedInstance] apiRequest:@"https://api.linkedin.com/v1/people/~/shares?format=json" method:@"POST" body:[bodyTxtView.text dataUsingEncoding:NSUTF8StringEncoding]
success:^(LISDKAPIResponse *response)
{
NSLog(@"success called %@", response.data);
}
error:^(LISDKAPIError *apiError) {
NSLog(@"error called %@", apiError.description);
dispatch_sync(dispatch_get_main_queue(), ^{
LISDKAPIResponse *response = [apiError errorResponse];
NSString *errorText;
if (response)
{
errorText = response.data;
}
else
{
errorText = apiError.description;
}
NSLog(@"error called %@", errorText);
});
}];
访问http://stackoverflow.com/questions/21676731/generating-linkedin-access-token下载SDK(示例应用程序内)给出 –