I am using CakePHP 1.3. I have successfully created an Indeed DataSource and am looking to create more complicated ones. I am looking into creating a Yahoo Answers DataSource and was wondering about a few best practices. The API exposes a few functions:
1) Ability to search for questions
2) Ability to get questions in a category
3) Ability to get details on a specific question
4) Ability to get details on a specific user
As is, I might only use the question and user search functions. Here are my questions:
Do I created 1 DataSource that can perform both tasks or separate ones (i.e. one to find users and another to find questions?
If i create 1 DataSource then how do I identify if the model is $this->YahooUser->find() (find users) vs $this->YahooQuestion->find() (find questions) so that I may create the right URL for the request.