troubleshooting Question

Using a WebAPI to load MySQL database

Avatar of Morgan
Morgan asked on
11 Comments2 Solutions1571 ViewsLast Modified:
I've signed up with template monster's affiliate program. And instead of using all the scripts provided by them (where I just make requests from my site to their server, which is not easy for SEO and can create lag (they say this even themselves)) I am wanting to use their webAPI to create my own database from theirs.

The web API specification can be found here:

I've tried using the method from the link below:

Now I've created the database "tmtemplates" and I've imported the .sql file for the categories on my server. Where I am having trouble is on how to export the data from their server and import the data into my database. The steps from the method i'm following are below:

1) Import the static data (types, categories, etc.) using the file "ImportDirInfo.php" script. All data is included in the single XML file called.

2) Import the bigger XML file for all the other template data, use the script called "ImportXmlInfo.php" DON'T try to run this script via the browser

3) Transfer the screenshots from template monster to your server using the script "ImportScreenshots.php".
Use the script "TestMissingImages.php" once to check/copy missing screenshots.

4) Run the Template Update script "DailyTemplateUpdate.php" once to get the latest templates
Now template monster states: WebAPI scripts for getting information about templates should be invoked at least once per 24 hours. The best time to invoke them is about 8.00 AM EST. Currency rate script (currency.php) should be invoked once per hour.

How is the above done (running the DailyTemplateUpdate.php"? I would assume there is a way to have the server do this automatically. Would be a pain in the butt to have to do this everyday manually.

Any help would be appreciated.


Join our community to see this answer!
Unlock 2 Answers and 11 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 11 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros