Hi @dennis, Thank you very much, I was trying in a thousand ways, even installing other environments, but it still didn’t work, I consult you in this thread that is related to the subject, through the API can I rescue the PDFs of the reports? I would like to create a table on my intranet where I can retrieve the sites and the pdfs of reports apart from dates, associated with these sites.
So with a custom PHP script you could grab those and then do what you want with them from there. But they will still be tied to the Dates Chosen when they were generated. If you want custom dates you will need custom code & the MainWP API to pull that off as “Reports” are generated “on the fly”.
We’ve just released Pro Reports v4.1.1, which includes the fix for the REST API authentication process, and we’ve added a new feature that offers options to customize titles, subtitles, and table headings.
@bojan@kwcjr Hello, good evening, I appreciate all your help so far, I have not been able to achieve what I want, I would like to be able to retrieve a table with the list of sites and their respective pdfs, I saw that a copy of the PDFs is saved in the upload folder However, I don’t see a possible way to recover them as I wish, do you have a snippet script or sql query where I can retrieve that information?
@bojan I have about 30 websites, the reason for this is because I have an Intranet where I provide all the service information to my clients, among those maintenance and I want him to be able to see his sites in a table and also the maintenance reports in PDF that It is done every month, that all this is automatic
Something like that would have to be custom-built.
Unfortunately, there is no query that can return a list of sites and their respective PDFs.
One solution, as explained earlier, you would need to fetch the data via REST API, but you would then need a tool that would create the actual PDF with that data.
Another solution would be to create a report for each of the 30 sites, and rename the PDF file as explained in the previous post. But again, you would need a tool or custom code that would fetch the PDFs, and a list of sites and make it presentable to your client.