[py-tx][hack] Implement NCMEC Upvote/Downvote in reference API #1614
Labels
hackathon
Included as part of a recent hackathon
ncmec
Pertaining to the NCMEC Hash API or cybertips
python-threatexchange
Items related to the threatexchange python tool / library
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
The text was updated successfully, but these errors were encountered: