Skip to content

Commit bdfd2c3

Browse files
committed
test(env): Update key for personality insights
1 parent 4aa6ce3 commit bdfd2c3

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.env.enc

48 Bytes
Binary file not shown.

examples/personality_insights_v3.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,13 @@
33
../resources/personality-v3-expect2.txt
44
"""
55
import json
6-
from os.path import join, dirname
6+
import os
7+
from os.path import join
78
from ibm_watson import PersonalityInsightsV3
89
import csv
910
from ibm_cloud_sdk_core.authenticators import IAMAuthenticator
1011

11-
# Authentication via IAM
12+
# # Authentication via IAM
1213
# authenticator = IAMAuthenticator('your_api_key')
1314
# service = PersonalityInsightsV3(
1415
# version='2017-10-13',
@@ -17,7 +18,7 @@
1718

1819
# Authentication via external config like VCAP_SERVICES
1920
service = PersonalityInsightsV3(version='2017-10-13')
20-
service.set_service_url('https://gateway.watsonplatform.net/personality-insights/api')
21+
service.set_service_url('https://api.us-east.personality-insights.watson.cloud.ibm.com/instances/4c18b521-3abd-4c7c-bec7-6a3fd03644f1')
2122

2223
############################
2324
# Profile with JSON output #

0 commit comments

Comments
 (0)