1. I have corrected the e-mail settings so that outgoing e-mails from these forums should be sent now. If you tried to Register or Reset your Password, please try again!
    Dismiss Notice

Data API documentation and usage

Discussion in 'Census: Planetside 2' started by Superdadsuper, May 26, 2014.

  1. Is there a documentation which can teach me how to implement the Planetside 2 api? Does this require any programming knowledge (hopefully I can do this with html, css, js)? Can I embed data on a locally hosted webfile, for personal use, and to obtain data about my character specifically?
     
  2. Ryekir

    Ryekir Guest

    The documentation can be found here: https://census.daybreakgames.com/ However, it may not be all that friendly if you aren't familiar with working with APIs and JSON data.

    I would recommend using something like the JSONView add-on for Firefox (which will let you view the JSON data directly in the browser formatted into a tree structure), and then playing around with the examples in the documentation to familiarize yourself with whats there and how it's structured first. You can also see the full list of available endpoints here: http://census.daybreakgames.com/get/ps2:v2/
     
  3. I am learning JavaScript so hopefulyl I can get into JSON eventually.
     
  4. I actually have gone through Jquery (not the best at it, I understand the syntax, but since I never used it for a while i forgot how to use syntax correctly, the names for diffent things) and now that I am going through JavaScript it helps a lot, but I am way far from being able to use API's
     
  5. Ryekir

    Ryekir Guest

    I highly recommend looking into jQuery (http://jquery.com/), it's going to make everything a lot easier, I honestly don't know how I did Javascript before that :)

    And FYI, if you use jQuery and want to make direct calls to the census API, you'll need to use the JSONP method due to the same-domain origin security policies in browsers (meaning you can't just use the $.getJSON() shorthand function)
     

Share This Page