linkedin
linkedin copied to clipboard
Two new API's added for companies
Added two new companies API's for
- Retrieving a List of companies user currently following
- Retrieving a List of companies suggested companies to follow
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
Nice catch for :suggestions, cleaned up for single responsibility