Skip to content

send_message returns 400 error always. #22

@nicooga

Description

@nicooga

Just in case, yes I have configured the gem with my app_id, app_secret, and I'm getting user tokens through the oauth2 login process using omniauth.
Other endpoints, like #connections are working fine and returning data, but not #send_message.

client = LinkedIn::API.new User.find(8).linkedin_oauth2_token
client.connections
=> [stuff, stuff, ...]
user_id = client.connections.all.find { |c| c.last_name == 'Pitt' }.id
client.send_message 'test', 'asdf', [user_id]
=> Faraday::ClientError: the server responded with status 400
from /home/nicolas/.rvm/gems/ruby-2.1.1/gems/faraday-0.9.0/lib/faraday/response/raise_error.rb:13:in `on_complete'

Is possible #send_message is outdated? Can I put Faraday on verbose mode so I can debug this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions