Open stambe opened 6 years ago
I believe I'm hitting this as well with the add_company_share
method. It seems the request is being sent as application/x-www-form-urlencoded
but it needs to be application/json
with the JSON payload as the body.
As said in the above comment, it seems fixed already but new version of gem hasn't been published?
Following code is throwing 400 error, because linkedin want data in Json format. I guess this code is updated but not yet published on rubygem. Are you going to publish these changes on rubygem or you are not supporting this gem now?
require 'linkedin-oauth2'
access_token = ""
api = LinkedIn::API.new(access_token)
api.add_share({comment: "hi access token"})
Thanks in advance.