Creating Amazon Product API - is it a model?

Hello,

I am creating an application who request to the Amazon Product API. And I have two short questions:

  • Where do I create the logic to do the API calls?

  • And which class do I have to extend from?

You may get some knowledge from this . :)

Thank you, but I have read the full beginner book of Yii. But this question is about creating a REST API who is calling Amazon.

I shall clarify my question:

  • Where do I create the logic to do the API calls? Is it a normal model?

  • And which class do I have to extend from? Is there a class who has functionality I need for the API class?