We've been working on a sub-module to add the ability for a user to send messages to selected LinkedIn connections.
This obviously relies on the user having already authenticated their account with LinkedIn.
The code is still in development, but I'll post a patch here in case it is of use in it's current form.

Comments

finn lewis’s picture

Patch attached.

This adds a sub-module linkedin_connections, based on the other sub-modules in the project. I needed to tweak some of the helper functions from the main linked module, so they would talk nicely with the LinkeIn Messaging API, so some functions have been simply copied across and tweaked. This could probably be done in a more efficient manner.

The module adds a tab on the user page where a user can view their LinkedIn connections (currently 10 at a time), and select up to 10 connections to send a message to. The pagination needs fixing as it currently does not parse the total number of connections, and it doesn't look very nice at present.

As mentioned, this is still a work in progress, but I would appreciate any feedback from the maintainers and community.

mayur.pimple’s picture

I got unauthorized error.

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<error>
  <status>401</status>
  <timestamp>111</timestamp>
  <request-id>ABC</request-id>
  <error-code>0</error-code>
  <message>[unauthorized]. OAU:0|0-0-0|*01|*01:0:0/0=</message>
</error>
mayur.pimple’s picture

Thanks this is working code for drupal 6

greg.harvey’s picture

Status: Active » Needs review