linkedin icon indicating copy to clipboard operation
linkedin copied to clipboard

Two new API's added for companies

Open pramodshinde opened this issue 11 years ago • 2 comments

Added two new companies API's for

  • Retrieving a List of companies user currently following
  • Retrieving a List of companies suggested companies to follow

pramodshinde avatar Dec 27 '13 14:12 pramodshinde

I think the API needs some cleanup.

#companies points to both suggested and companies that someone is following which to me violates a single responsibility. I'd rather see two methods for this like

def suggested_companies
  simple_query('/people/~/suggestions/to-follow/companies')
end

def followed_companies
  simple_query('/people/~/following/companies')
end

hexgnu avatar Dec 27 '13 20:12 hexgnu

Nice catch for :suggestions, cleaned up for single responsibility

pramodshinde avatar Dec 28 '13 08:12 pramodshinde