ThreatExchange icon indicating copy to clipboard operation
ThreatExchange copied to clipboard

[py-tx][hack] Implement NCMEC Upvote/Downvote in reference API

Open Dcallies opened this issue 6 months ago • 0 comments

NCMEC has added a new API to "upvote" and "downvote" hash entries.

Add a simple implementation to call that API. Here's the documentation: https://report.cybertip.org/hashsharing/v2/documentation/ (ctrl+f vote).

You won't be able to get NCMEC credentials, but @dcallies can test that the implementation is right by patching your PR and using Meta's test API access.

The PR should include a unittest that mocks the NCMEC API response, and potentially updating the existing test response to include feedback data: https://github.com/facebook/ThreatExchange/blob/main/python-threatexchange/threatexchange/exchanges/clients/ncmec/tests/test_hash_api.py#L38

Dcallies avatar Aug 21 '24 17:08 Dcallies