我正在尝试更新 Linkedin Objective-c 库 https://github.com/synedra/LinkedIn-OAuth-Sample-Client
以允许检索电子邮件地址。
我怎样才能做到这一点?
我试着改变
OARequestParameter *nameParam = [[OARequestParameter alloc] initWithName:@"scope"
value:@"r_fullprofile r_contactinfo r_emailaddress"];
NSArray *params = [NSArray arrayWithObjects:nameParam, nil];
[request setParameters:params];
OARequestParameter * scopeParameter=[OARequestParameter requestParameter:@"scope" value:@"r_fullprofile r_contactinfo r_emailaddress"];
[request setParameters:[NSArray arrayWithObject:scopeParameter]];
但这不起作用