Ejemplo n.º 1
0
<?php

$xcom = new Xcom("https://api.sandbox.x.com/fabric/", "YOUR_FABRIC_TOKEN", "YOUR_CAPABILITY_TOKEN");
var_dump($xcom->decode(file_get_contents("php://input"), file_get_contents("schema.avpr")));
Ejemplo n.º 2
0
<?php

$data = new stdClass();
$data->a_string = "hi";
$data->how_long = 238474757;
$data->boole = true;
$data->a_dub = 3.14159265;
$data->nul = null;
$xcom = new Xcom("https://api.sandbox.x.com/fabric/", "YOUR_FABRIC_TOKEN", "YOUR_CAPABILITY_TOKEN");
$xcom->__debug = true;
$http_code = $xcom->send("/topic/path", $data, file_get_contents("schema.avpr"));