Add Statement To a Topic
Parameter | Type | Mandatory |
apiKey | string | yes |
instanceId | int | yes |
graphId | int | yes |
Field | Type | Mandatory |
node_id - id of node to which this statement is a reply | int | yes |
title - statement title | string(255) | yes |
details - statement description | string(4000) | yes |
principal - statement principal type. Valid values: pro, con |
string(10) | yes |
error_reporting(E_ALL ^ E_WARNING ^ E_NOTICE ^ E_DEPRECATED); $post = "title=API not agreeing to this at all&details=Some details&node_id=657&principal=con"; $curl = curl_init(); $url = "https://truthsift.com/api/addStatement/54-c874ab70/1/144"; curl_setopt($curl, CURLOPT_URL, $url); curl_setopt($curl, CURLOPT_POSTFIELDS, $post); curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); $response = curl_exec($curl); curl_close($curl); var_dump($response);