getNodeDetails

Request Method: GET

Description: Retrieves details of a node

URL: https://api.iovox.com:444/Nodes?v=3&method=getNodeDetails

The following parameters can be sent in the querystring

ParameterDescriptionDefault ValueData TypeMandatory
vAPI version to use
INTEGERYES
pageThe page number to return. Use together with limit to achieve paginated results1INTEGERNO
limitDetermines how many results to return. Use together with page to achieve paginated results. Maximum here is 2000020000INTEGERNO
node_idReturns the specified Node ID
STRINGYES
link_idReturns the node for the specified Link ID
STRINGNO
req_fieldsComma separated list of abbreviated fields to return in response. nid=Node id, nn= Node Name, nt= Node Type, nd = ??, lid = Link Id, ln = Link Name, lt = Link Type, ld = ??, vn = VoxNumber, cid = Category Id, cl = Category Label , cv = Category Value.nid, nn, nt, nd, lid, ln, lt, ld, vn, cid, cl, cvSTRINGNO
orderDetermines which field to order the output result by. Use a field name from the req_fields list and suffix with ASC or DESC for ascending or descending respectively. For example, "nd_DESC" will return results ordered by order_date with the most recent firstnn_DESCSTRINGNO
return_rule_nameReturns the rule name for the specified Node. Can be true / falsetrueSTRINGNO
return_voxnumberReturns the VoxNumber used for the specified Node. Can be true / false
STRINGNO
outputSpecifying XML or JSON returns data in XML or JSON formatXMLSTRINGNO

Result

Error Result

HTTP CodeError StringResolution
400API Version EmptyAdd a value for the v parameter in the query string
400API Version InvalidCorrect v parameter
400Request Method must be GET. x attemptedSwitch request method x to GET
400Page Number not an integerRemove non-numerics from page
400Limit not an integerRemove non-numerics from limit
400Limit must be between 1 and 20000Correct the limit parameter
400Required Fields Invalid: id,csCorrect the req_fields parameter.
400Node ID Doesn't existCorrect Node ID parameter
400Output Type InvalidCorrect output parameter
500Internal Server ErrorRetry later

Success Result

<?xml version="1.0" encoding="utf-8"?>
<response>
    <current_page>1<current_page>
     <total_pages>4<total_pages>
     <total_results>100<total_results>
     <results>
         <result>
             <node_id>3604</node_id>
             <node_name>153 Westbourne Grove</node_name>
             <node_type>1290</node_type>
             <links>
                 <link>
                     <link_id>1290</link_id>
                     <link_name>1290</link_name>
                     <link_type>1290</link_type>
                     <voxnumber>441224466437</voxnumber>
                     <rule_template_name>Call</rule_template_name>
                     <rules>
                          <rule>
                               <rule_id>1</rule_id>
                               <rule_type>call</rule_type>
                               <rule_label>Call</rule_label>
                               <contact>
                                    <contact_id>23113123</contact_id>
                                    <phone_number>449789122233</phone_number>
                               </contact>
                               <caller_message>
                                    <sound_files>
                                         <sound_file>Sound Group 1|Sound File 1</sound_file>
                                    </sound_files>
                               </caller_message>
                               <called_message>
                                    <sound_files>
                                         <sound_file>Sound Group 1|Sound File 2</sound_file>
                                         <sound_file>Sound Group 2|Sound File 3</sound_file>
                                    </sound_files>
                               </called_message>
                          </rule>
                     </rules>
                     <cats>
                         <cat>
                             <category_id>12</category_id>
                             <label>Location</label>
                             <value>Mayfair</value>
                         </cat>
                         <cat>
                             ...
                         </cat>
                     </cats>
                 </link>
                 <link>
                     ...
                 </link>
             </links>
         </result>
     </results>
 </response>