The list on the sidebar are the commands that the User & Key pair above can access. Click on the command to view its description, parameters as well as request & response examples.




The Test Connection command is used to check if a connection can be established with the RWM Api.

Reference nwrapi-1.0.5.min.js before using any code below. You may try the code below by clicking here.
phoenix.userId = 'test.user'; //Do NOT store your API Key on a script.
phoenix.apiKey = 'c9d525ea08f16a40082d069d30d4a7e92549e4b4';
phoenix.send({
    cgrp:'$',
    cmnd:'test',
    prms:{
        'testparam':'NonOptionalNotNullableData',
    }
}, function callbackF(data) {
    //alert(data);
    var d = JSON.parse(data);
    if (d.exitCode === 0)
        alert(JSON.stringify(d.response['error']));
    else alert(JSON.stringify(d,undefined,2));
    //alert(JSON.stringify(d.response['test.param']));
});
Follow the instructions here before using any code below.
string userId = "test.user";
string apiKey = "c9d525ea08f16a40082d069d30d4a7e92549e4b4";
com.rwmanila.Phoenix rwm = new com.rwmanila.Phoenix(userId, apiKey);
Dictionary<string, string> param = new Dictionary<string, string>();
param.Add("testparam", "");
com.rwmanila.PhoenixResponse res = rwm.send("$", "test", param);
if (res.exitCode == 0)
    Console.WriteLine("Error: " + res.response["error"]);
else
{
    Console.WriteLine(res.response["test.param"]);
}
Follow the instructions here before using any code below.
Dim userId, apiKey As String
userId = "test.user"
apiKey = "c9d525ea08f16a40082d069d30d4a7e92549e4b4"
Dim rwm As New com.rwmanila.Phoenix(userId, apiKey)
Dim param As New Dictionary(Of String, String)
param.Add("testparam", "")
Dim res As com.rwmanila.PhoenixResponse
res = rwm.send("$", "test", param)
If (res.exitCode = 0) Then
    Console.WriteLine(res.response("error"))
Else
    Console.WriteLine(res.response("test.param"))
End If
Follow the instructions here before using any code below.
<?php
    include 'phoenix.php';
    $user = 'test.user';
    $key = 'c9d525ea08f16a40082d069d30d4a7e92549e4b4';
    $phoenix = new phoenix($user,$key);
    $d = $phoenix->send('{
        "cgrp":"$",
        "cmnd":"test",
        "prms":{
            "testparam":"NonOptionalNotNullableData",
        }
    }');
    $data = json_decode($d, true);
    if ($data['exitCode'] == 0)
         echo 'ERROR: '.$data['response']['error'];
    else {
         echo $data['response']['test.param'];
    }
?>

Request Parameters

Parameter
Default Description Opt.
testparamTest ParameterNo

Response Key/Value Pairs

Key Value Description
test.paramTest Parameter Echo