APIVoid updated to v2 Closes #3006#3208
Conversation
There was a problem hiding this comment.
Pull request overview
This PR updates the APIVoid analyzer integration from API v1 to v2, addressing issue #3006.
Changes:
- Updated API base URL from
https://endpoint.apivoid.comtohttps://api.apivoid.com/v2 - Modernized endpoint paths (e.g.,
domainbl→domain-reputation,iprep→ip-reputation,urlrep→url-reputation) - Changed authentication method from query parameter to HTTP header using
X-API-Key
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
@mlodic can we merge? |
|
compile the PR template appropriately, there's missing stuff |
|
Hi @mlodic I have updated the requested changes and compiled the same. |
|
Hey, thanks for raising this. |
|
Hi @fgibertoni The api is now paid so I am unable to test the same. But I have checked the changelog docs thoroughly and also tested the analyzer that returns a 403 forbidden error because of api key. |
|
considering I confirm this is a paid analyzer, it's not necessary to test it with a live analysis. Also, these analyzers are not currently supported anymore by the project, as an open source free project we assist for integrations with free analyzers. So I think it is fair to just merge this anyway. |
|
Just FYI, the v2 I see uses POST with JSON payload, so I think this:
Should be changed to:
|
Please check the latest commit. |
|
Yes sorry, didn't notice it was already done. |
* udated to v2 * updated get request to post * updated test file
Closes #3006
Description
Updated v1 API to v2
Type of change
Please delete options that are not relevant.
Checklist
developdumpplugincommand and added it in the project as a data migration. ("How to share a plugin with the community")test_files.zipand you added the default tests for that mimetype in test_classes.py.FREE_TO_USE_ANALYZERSplaybook by following this guide.urlthat contains this information. This is required for Health Checks (HEAD HTTP requests).get_mocker_response()method of the unittest class. This serves us to provide a valid sample for testing.DataModelfor the new analyzer following the documentation# This file is a part of IntelOwl https://github.com/intelowlproject/IntelOwl # See the file 'LICENSE' for copying permission.Black,Flake,Isort) gave 0 errors. If you have correctly installed pre-commit, it does these checks and adjustments on your behalf.testsfolder). All the tests (new and old ones) gave 0 errors.DeepSource,Django Doctorsor other third-party linters have triggered any alerts during the CI checks, I have solved those alerts.Important Rules