Skip to content

Conversation

@pramodshinde
Copy link

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 added 3 commits December 27, 2013 12:47
-Retrieving a List of Companies Followed
-Retrieving suggested list companies to Follow
- Retrieving a List of companies user currently following
- Retrieving a List of companies suggested companies to follow
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:suggestions not :suggetions

@hexgnu
Copy link
Owner

hexgnu commented Dec 27, 2013

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

-Retrieving a List of companies user currently following
-Retrieving a List of companies suggested companies to follow
@pramodshinde
Copy link
Author

Nice catch for :suggestions, cleaned up for single responsibility

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants