The following script is an example that can be used to test connectivity to ThreatConnect’s API.
- Rename the config.sh-template file to config.sh.
- Update the following variables in the config.sh file:
- API_ID
- API_SECRET
- API_HOST
- DEFAULT_OWNER
- Execute
chmod 755 threatconnect.sh
and then./threatconnect.sh
. If the script was executed successfully, all Organizations and Communities that the API credentials have access will be returned.
NOTE:
Using sh threatconnect.com
does not work on OSX.