Skip to content

Latest commit

 

History

History
17 lines (12 loc) · 640 Bytes

README.md

File metadata and controls

17 lines (12 loc) · 640 Bytes

Overview

The following script is an example that can be used to test connectivity to ThreatConnect’s API.

Testing API Connectivty

  1. Rename the config.sh-template file to config.sh.
  2. Update the following variables in the config.sh file:
    • API_ID
    • API_SECRET
    • API_HOST
    • DEFAULT_OWNER
  3. 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.