Update script.py

This commit is contained in:
Vallabh Chugh 2022-10-11 00:20:38 +05:30 committed by GitHub
parent 3072b534c8
commit df8febbd65
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,9 +2,14 @@
import json
import requests
from pathlib import Path
from dotenv import load_dotenv
env_path=Path('.')/'.env'
load_dotenv(dotenv_path=env_path)
#This Key should be available in .env file
ROUTING_KEY = "" # ENTER EVENTS V2 API INTEGRATION KEY HERE
ROUTING_KEY = os.environ['ROUTING_KEY'] # ENTER EVENTS V2 API INTEGRATION KEY HERE
# This function takes the payload info from the user and can be put in the right format