hexgnu / linkedin

Ruby wrapper for the LinkedIn API
http://rdoc.info/gems/linkedin
MIT License
756 stars 407 forks source link

Unable to find client.profile for authenticated user #264

Open gandhinikita opened 8 years ago

gandhinikita commented 8 years ago

When I am doing client.profile(:id => 'xxxx') its working fine but for my own profile i.e client.profile it is giving error inkedIn::Errors::NotFoundError (404): Not Found I don't know what I am doing wrong

Also it is giving error "Could not find person based on: ~\"

Please help

hexgnu commented 8 years ago

Not entirely sure could you please post what code you are using?

arthurtofani commented 8 years ago

+1

revelutions commented 7 years ago

Fixed: The problem was I need to have URLs in Oauth1.0a setup in linkedin

I folllowed the example on Ubuntu and get the same error with client.profile

LinkedIn::Errors::NotFoundError: (404): Not Found from /var/lib/gems/2.1.0/gems/linkedin-1.1.0/lib/linked_in/helpers/request.rb:54:in raise_errors' from /var/lib/gems/2.1.0/gems/linkedin-1.1.0/lib/linked_in/helpers/request.rb:16:inget' from /var/lib/gems/2.1.0/gems/linkedin-1.1.0/lib/linked_in/api/query_helpers.rb:27:in simple_query' from /var/lib/gems/2.1.0/gems/linkedin-1.1.0/lib/linked_in/api/people.rb:22:inprofile' from (irb):15 from /usr/bin/irb:11:in `

'