Click here to Skip to main content
15,890,438 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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
Posted

1 solution

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.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900