PHP Forums Archive

Templatemonster Web API

Tags: templatemonster, web api

saqs posted on 2008-02-18 23:47:33 #

I have been using your class for long time. We are modifying our scripts and now instead of saving templates in the DB we want to show them on the fly i.e. fetch templates from http://www.templatemonster.com/webapi/templates_screenshots4.php and show them on the website. Now this URL allows you to specify 'from' and 'to' arguments. In my case i want to show 40 templates per page. If i set from=1 and to=40, this doesn't give me 40 templates since records between 1 and 40 might have been deleted by templatemoster.com. I looked at the output returned, and it was confirmed that random template IDs exist in the output. e.g. I saw 1,2 and then 3,4,5 were missing, again 6,7,8 were present and no template ID from 9 to 15.

The problem is how can i get exactly 40 templates? Is there any specific parameter or any work around?

Any help is much appreciated.
Thx

Comments / discussions

Olaf posted on 2008-02-19 10:15:05 #

Hi,

I think the only thing you can do is to obtain xx more results and use some loop to show only the first 40 templates. Actually this is not a really good solution.

Do you checked the XML api?
...and why do you stopped using the class? Parsing the live api is not a very fast and safe solution.

planoweb posted on 2010-06-18 08:16:55 #

Hi,

I am a newbie in templatemonster and would like to use the web api. Is there any tutorial or help besides the TemplateMonster API Specification file?

Thank you

Olaf posted on 2010-06-18 08:27:02 #

Hello,

Check the new page:
http://www.finalwebsites.com/scripts/import-templates.php

Use only the XML version of the API.