Skip to content

Commit 0f87c4a

Browse files
author
Samuel Hassine
committed
[examples] Update all tokens to the new one
1 parent 4258d70 commit 0f87c4a

11 files changed

+12
-14
lines changed

examples/add_organization_to_sector.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
# Variables
88
api_url = 'https://demo.opencti.io'
9-
api_token = '22566f94-9091-49ba-b583-efd76cf8b29c'
9+
api_token = 'ab027454-ba10-4db2-831b-5e0fee129086'
1010

1111
# OpenCTI initialization
1212
opencti_api_client = OpenCTIApiClient(api_url, api_token)

examples/create_incident_with_ttps_and_observables.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
# Variables
99
api_url = 'https://demo.opencti.io'
10-
api_token = '22566f94-9091-49ba-b583-efd76cf8b29c'
10+
api_token = 'ab027454-ba10-4db2-831b-5e0fee129086'
1111

1212
# OpenCTI initialization
1313
opencti_api_client = OpenCTIApiClient(api_url, api_token)

examples/create_intrusion_set.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
# Variables
77
api_url = 'https://demo.opencti.io'
8-
api_token = '22566f94-9091-49ba-b583-efd76cf8b29c'
8+
api_token = 'ab027454-ba10-4db2-831b-5e0fee129086'
99

1010
# OpenCTI initialization
1111
opencti_api_client = OpenCTIApiClient(api_url, api_token)

examples/export_intrusion_set_stix2.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
# Variables
77
api_url = 'https://demo.opencti.io'
8-
api_token = '22566f94-9091-49ba-b583-efd76cf8b29c'
8+
api_token = 'ab027454-ba10-4db2-831b-5e0fee129086'
99

1010
# OpenCTI initialization
1111
opencti_api_client = OpenCTIApiClient(api_url, api_token)

examples/export_report_stix2.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
# Variables
77
api_url = 'https://demo.opencti.io'
8-
api_token = '22566f94-9091-49ba-b583-efd76cf8b29c'
8+
api_token = 'ab027454-ba10-4db2-831b-5e0fee129086'
99

1010
# OpenCTI initialization
1111
opencti_api_client = OpenCTIApiClient(api_url, api_token)

examples/get_attack_pattern_by_mitre_id.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
# Variables
66
api_url = 'https://demo.opencti.io'
7-
api_token = '22566f94-9091-49ba-b583-efd76cf8b29c'
7+
api_token = 'ab027454-ba10-4db2-831b-5e0fee129086'
88

99
# OpenCTI initialization
1010
opencti_api_client = OpenCTIApiClient(api_url, api_token)

examples/get_malwares_of_intrusion_set.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
# Variables
66
api_url = 'https://demo.opencti.io'
7-
api_token = '22566f94-9091-49ba-b583-efd76cf8b29c'
7+
api_token = 'ab027454-ba10-4db2-831b-5e0fee129086'
88

99
# OpenCTI initialization
1010
opencti_api_client = OpenCTIApiClient(api_url, api_token)

examples/get_marking_definitions.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
# Variables
66
api_url = 'https://demo.opencti.io'
7-
api_token = '22566f94-9091-49ba-b583-efd76cf8b29c'
7+
api_token = 'ab027454-ba10-4db2-831b-5e0fee129086'
88

99
# OpenCTI initialization
1010
opencti_api_client = OpenCTIApiClient(api_url, api_token)

examples/get_reports_about_intrusion_set.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
# Variables
66
api_url = 'https://demo.opencti.io'
7-
api_token = '22566f94-9091-49ba-b583-efd76cf8b29c'
7+
api_token = 'ab027454-ba10-4db2-831b-5e0fee129086'
88

99
# OpenCTI initialization
1010
opencti_api_client = OpenCTIApiClient(api_url, api_token)

examples/import_stix2_file.py

+2-2
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 = '22566f94-9091-49ba-b583-efd76cf8b29c'
6+
api_url = 'https://demo.opencti.io'
7+
api_token = 'ab027454-ba10-4db2-831b-5e0fee129086'
88

99
# OpenCTI initialization
1010
opencti_api_client = OpenCTIApiClient(api_url, api_token)

pycti/entities/opencti_attack_pattern.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -203,9 +203,7 @@ def create_raw(self, **kwargs):
203203
query = """
204204
mutation AttackPatternAdd($input: AttackPatternAddInput) {
205205
attackPatternAdd(input: $input) {
206-
id
207-
entity_type
208-
alias
206+
""" + self.properties + """
209207
}
210208
}
211209
"""

0 commit comments

Comments
 (0)