Skip to main content
Team erstellen
Fügen Sie Ihre API hinzu
Dokumente
Anmelden
Anmeldung
Team erstellen
Fügen Sie Ihre API hinzu
Dokumente
Anmelden
Anmeldung
Simon Tribus / simontribus1996
FatturaCheck
Check XML file - Fattura elettronica
9.1
113 ms
100%
Diskussionen
2
All
Questions
Answers
Title
Created at
(Click to sort ascending)
A
1
Hi Stefano, you have to put the XML contents there. This would look something like this: CURLOPT_POSTFIELDS => array("XML" => "$xml"), Where $xml is the content of the XML file ("<?xml version=\"1.0\" encoding=\"utf-8\"?><p:FatturaElettronica.....").
Wed 1:50
12/4/23
A
2
Hi, the following should work (it did for me with Firefox and Edge/Chromium): <script src="https://code.jquery.com/jquery-3.6.0.min.js" integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=" crossorigin="anonymous"></script> <form id="data"> <input type="file" name="XML"></input> <input type="submit" value="Submit"></input> </form> <script> $("form#data").submit(function(e) { e.preventDefault(); var data = new FormData(this); const options = { method: 'POST', headers: { 'X-RapidAPI-Key': 'YOUR_API_KEY', 'X-RapidAPI-Host': 'fatturacheck.p.rapidapi.com' }, body: data }; fetch('https://fatturacheck.p.rapidapi.com/API/FatturaGetRicevuta', options) .then(response => response.blob()) .then(response => { var fileURL = URL.createObjectURL(response); window.open(fileURL); }) .catch(err => console.error(err)); }); </script>
Thu 1:55
11/8/22