getMessage(); } } // Define the API Key / API URL $api_url = 'https://www.invoicera.com/app/api/xml/1.1/'; $api_token = 'ABCDESFGHIJKLMNOPQRSTUVWXYZ012345'; // Create / Fetch the XML that would be sent along with the API request $xml = << 1 10 EOD; // Make API call and print the output_add_rewrite_var echo sendRequest($api_url, $api_token, $xml); ?>