set_debug (true); # execute - result is stored to $API->result, save it to own array if multiple calls needed after execute $API->execute ("GET", "addresses", array("first_free", "7"), array(), $token_file); # get result $result = $API->get_result(); /** * Some examples * * Delete, POST examples * $API->execute ("DELETE", "subnets", array(7, "permissions"), array(), $token_file); * $API->execute ("POST", "vrf", array(), array("number"=>"114","name"=>"API"), $token_file); * * Get headers in array * $response_headers = $API->response_headers (); */ # print result print_r($response_headers); print_r(json_decode($result, true)); ?>