pengwynn/linkedin — pull request #116 by micahcraig (2012-05-07 18:56:47+00:00)
Title: Very simple implementation and test for the send_message API method

This implementation uses to_json on a simple hash to produce the call payload, not LinkedIn::* classes as indicated in the commented-out implementation currently in place. The hash approach seemed to be a more straightforward technique for simply producing well formatted JSON, and since the LinkedIn Messaging API does not currently include any read functionality, there's no need to re-materialize the structure for external consumption. If you have a strong preference for a class based implementation, I'd be happy build it out.

This implementation has been tested against the production API, and confirmed to work as expected. I've provided a spec test in the same format as most of the other tests in api_spec.rb. If you'd like more extensive test validation, just let me know.

Thanks! This Gem is a huge help in building out our LinkedIn integration.