如何获取linkedin用户的消息 [英] How to fetch the messages of linkedin user
问题描述
我想获取linkedin用户的消息(直接消息)。
我找到了一个代码示例,用于在此站点中发送消息
https://developer.linkedin.com/documents/sample-code-sending-message
但是,我没有任何样本来获取消息。
但是,当我尝试使用查询/ people /~ / mailbox获取消息时,我得到了错误
远程服务器返回错误:(403)Forbidden。
但是详细错误信息,我得到了">访问邮箱已拒绝" ;.
详情异常
############## ##############
<?xml version =" 1.0"编码= QUOT; UTF-8英寸standalone ="是"?>
<错误>
< status> 403< / status>
< timestamp> 1407492655499< / timestamp>
< request-id> Q925CD3H4M< / request-id>
< error-code> 0< / error-code>
< message>访问邮箱被拒绝< / message>
< / error>
############ ################
这两个文档仅列出了主要端点POST / people /~ / mailbox ;但是没有提到GET。
https://developer.linkedin.com/oauth-10a-overview
https:// developer.linkedin.com/documents/authentication#oauth2-redirecti-uri
有什么方法可以获取消息吗?或者有解决方法吗?
任何见解或帮助都将受到高度赞赏。
谢谢
Hi,
I wanted to fetch the messages (direct messaging) of linkedin users.
I found a code sample to send the message in this site
https://developer.linkedin.com/documents/sample-code-sending-message
But, I did not any sample to fetch the messages.
However, when I tried to fetch the message with the query "/people/~/mailbox", I got the error
"The remote server returned an error: (403) Forbidden."
But in detail error message, I got ">Access to mailbox denied".
Detail Exception
############################
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<error>
<status>403</status>
<timestamp>1407492655499</timestamp>
<request-id>Q925CD3H4M</request-id>
<error-code>0</error-code>
<message>Access to mailbox denied</message>
</error>
############################
These 2 documentations has listed only the Primary Endpoints "POST /people/~/mailbox" but has not mentioned about GET.
https://developer.linkedin.com/oauth-10a-overview
https://developer.linkedin.com/documents/authentication#oauth2-redirect-uri
Is there any way to fetch the message? Or Is there any workaround?
Any insights or help will be highly appreciated.
Thanks
推荐答案
它不是开放式开发人员API的一部分,因此无法使用该API。似乎可以使用合作伙伴帐户(Certified Custom Apps Partner)。请参见 https://developer.linkedin.com/partner [ ^ ]了解详情。
It's not part of the open developer API, so it's not possible using that API. It seems to be possible using a partnership account (Certified Custom Apps Partner). See https://developer.linkedin.com/partner[^] for details.
这篇关于如何获取linkedin用户的消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!