Skip to content

Latest commit

 

History

History
36 lines (28 loc) · 865 Bytes

File metadata and controls

36 lines (28 loc) · 865 Bytes

Simple Examples

This folder provides a generic python script to send payload to IP Copilot's Ingestion Endpoint.

IP Copilot Payload Breakdown

Please see the top level README's section for more details

Setup

Dependencies

Simple example requires:

  • Python (>= 3.10)

Installation

  1. Install requirements
pip install requirements.txt
  1. (optional) Create your .env file
# IP Copilot API Config
IPCOPILOT_INGESTION_ENDPOINT = <IPCOPILOT_INGESTION_ENDPOINT>
IPCOPILOT_ORG_API_KEY = <IPCOPILOT_ORG_API_KEY>

Running the script

Run command: python simple_ingestion.py

Run with optional parameters:

python simple_ingestion.py \
  --ipcopilot-ingestion-endpoint "<IPCOPILOT_INGESTION_ENDPOINT>" \
  --ipcopilot-org-api-key "<IPCOPILOT_ORG_API_KEY>"