Get Celestial Body Data (by KWP dev team)

getCelestialBodyData

CelestialBody

Api Use:


        var data = JSON.stringify(
            {"ID":"User Provided ID",
              "Action":"getCelestialBodyData",
              "parameters":{
                    "name":"Name of the celestial body"
              }
            });
        var xhr = new XMLHttpRequest();

        xhr.addEventListener("readystatechange", function() {
            if(this.readyState === 4) {
                console.log(this.responseText);
            }
        });

        xhr.open("Post", "http://localhost:8080/api");
        xhr.setRequestHeader("Content-Type","application/json");
        xhr.send(data);
        

Parameters

name