Home > Enterprise >  Copyleaks export query with scan id and results internet id?
Copyleaks export query with scan id and results internet id?

Time:12-28

I am using copyleaks in the Laravel your php sdk, and able to successfully submit & scans method.

If we have completed our scan successfully and getting response in our web hook, with scan id and multiple result internet id. So, do we need to export all result internet id or only first result internet id?

CodePudding user response:

You can use the Export API endpoint to export a query and its scan and results IDs using Copyleaks. This endpoint allows you to specify the ID of the scan and results that you want to export and returns a URL that you can use to download the exported query.

Here is an example of how you can use the Export API endpoint:

POST https://api.copyleaks.com/v3/businesses/scans/{scan_id}/results/{result_id}/export

In this example, {scan_id} is the ID of the scan that you want to export, and {result_id} is the ID of the results that you want to export.

To use the Export API endpoint, you'll need to send a POST request to the endpoint URL with your Copyleaks API key in the Authorization header. You'll also need to specify the format of the exported query in the Content-Type header.

For example, to export a query in PDF format, you can use the following Content-Type header:

Content-Type: application/pdf

If the export is successful, the API will return a URL in the Location header that you can use to download the exported query.

CodePudding user response:

Thanks for your valuable response.

We want to implement the same report page on our website. Kindly review the below link.

https://ibb.co/HdJFxyr

Also, we have implemented his suggested plagiarism report in angular, but when we are passing our scan_id it's not displaying properly, it is saying 100 % match but highlighted only some of the text.

kindly review for reference using the below URL

https://ibb.co/Hx18h7v

I think we are doing something wrong, while exporting, we are exporting only the first result id. is it correct?

and when we are exporting all results internet-id in the "For loop", then is saying to many requests kindly suggest.

Thank you!

  • Related