Skip to content

Commit 0e6d4a2

Browse files
author
Samuel Hassine
committed
[client] Update examples
1 parent a46fe7f commit 0e6d4a2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/import_stix2_file.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
from pycti import OpenCTIApiClient
44

55
# Variables
6-
api_url = "http://localhost:4000"
7-
api_token = "1197406e-9d93-4d87-be55-a4f96f400995"
6+
api_url = "https://demo.opencti.io"
7+
api_token = "2b4f29e3-5ea8-4890-8cf5-a76f61f1e2b2"
88

99
# OpenCTI initialization
1010
opencti_api_client = OpenCTIApiClient(api_url, api_token)
@@ -13,4 +13,4 @@
1313
file_to_import = "./test.json"
1414

1515
# Import the bundle
16-
opencti_api_client.stix2.import_bundle_from_file(file_to_import, True)
16+
opencti_api_client.stix2.import_bundle_from_file(file_to_import, True)

0 commit comments

Comments
 (0)