You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 = "<TOKEN_VALUE>"
api = LinkedIn::API.new(access_token)
api.add_share({comment: "hi access token"})
Thanks in advance.
The text was updated successfully, but these errors were encountered:
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 = "<TOKEN_VALUE>"
api = LinkedIn::API.new(access_token)
api.add_share({comment: "hi access token"})
Thanks in advance.
The text was updated successfully, but these errors were encountered: