使用所有可用权限(r_basicprofile,r_emailaddress,rw_company_admin,w_share)授权后尝试执行此类请求
$client->post(
'invitations',
[
'invitee' => "urn:li:person:bQKCsQOZUt",
'message' => [
"com.linkedin.invitations.InvitationMessage" => [
"body" => "Let's connect!"
]
]
]
获得此类回复
{"serviceErrorCode":100,"message":"Not enough permissions to access: POST /invitations","status":403}
答案 0 :(得分:0)
您需要请求LinkedIn的v2 API权限。
将此表格与您的信息一起提交给他们:https://business.linkedin.com/marketing-solutions/marketing-partners/become-a-partner/marketing-developer-program
批准后,它应该可以工作。