http://book.cakephp.org/2.0/en/models/datasources.html
Check out the example usage of "FarAwaySource"


On Mon, Jan 7, 2013 at 9:59 AM, marcus33cz <[email protected]> wrote:

> Hi all,
>
> I have several external APIs which I'd like to use - such as this one:
> http://www.pinnaclesports.com/apimanual/commands.aspx
>
> The scripts I want to create will use the HttpSocket class (to get the
> data via API) and some model classes such as Match (to save the data in my
> DB).
> The scripts should be run by CRON (and I guess it should be accessible
> manually as well).
>
> Now the question is *where in the structure of cakePHP should I put my
> scripts that get data from the API and save them?*
> *(I think it is not exactly a plugin and I don't want to create another
> model either - because all my models are mapped to a DB table and the API
> wouldn't be.)*
>
> Thanks a lot!
>
> --
> Like Us on FaceBook https://www.facebook.com/CakePHP
> Find us on Twitter http://twitter.com/CakePHP
>
> ---
> You received this message because you are subscribed to the Google Groups
> "CakePHP" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> Visit this group at http://groups.google.com/group/cake-php?hl=en.
>
>
>

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
Visit this group at http://groups.google.com/group/cake-php?hl=en.


Reply via email to