细节:
我正在使用 Manuel Lemos php oauth 类和 login_with_linkedin.php 脚本作为参考。
我已成功完成 oauth 流程并使用 API 'http://api.linkedin.com/v1/people/~' 检索用户信息
使用 Post Shares API (http://api.linkedin.com/v1/people/~/shares) 时出现错误
这是我上次尝试失败的相关代码;
// Scope settings
$client->scope = 'r_fullprofile r_emailaddress r_network rw_nus';
// Call to API (Post)
$success = $client->CallAPI(
'http://api.linkedin.com/v1/people/~/shares',
'POST', array(
"format"=>"json",
"comment"=> "Test"
), array('FailOnAccessError'=>true), $user);
这是错误消息:
Error: it was not possible to access the API call: it was returned an unexpected response status 401 Response: { "errorCode": 0, "message": "Unknown authentication scheme", "requestId": "8DWA0EBJTB", "status": 401, "timestamp": 1355774186502 }
任何帮助将不胜感激。谢谢你。