Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Nov 2012
    Thanked 0 Times in 0 Posts

    Import API - php

    I would just like to start by saying sorry if this is the wrong area.
    I am trying to import data from a a Game site API http://worldoftanks.com/community/cl...fset=0&limit=1, however I am not sure where to start with this one.
    It doesn't appear to be standard xml.

    What I am trying to do is create a script on my website which will read this page and import the data into the database, and via a cron will update it every day.

    A tap in the right direction with this one would be a great help.

    Thankyou in advance

  2. #2
    God Emperor Fou-Lu's Avatar
    Join Date
    Sep 2002
    Saskatoon, Saskatchewan
    Thanked 2,662 Times in 2,631 Posts
    Its not XML, it looks to me that its JSON. Use PHP's json_decode function to return it to an array PHP can deal with.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts