File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 3
3
../resources/personality-v3-expect2.txt
4
4
"""
5
5
import json
6
- from os .path import join , dirname
6
+ import os
7
+ from os .path import join
7
8
from ibm_watson import PersonalityInsightsV3
8
9
import csv
9
10
from ibm_cloud_sdk_core .authenticators import IAMAuthenticator
10
11
11
- # Authentication via IAM
12
+ # # Authentication via IAM
12
13
# authenticator = IAMAuthenticator('your_api_key')
13
14
# service = PersonalityInsightsV3(
14
15
# version='2017-10-13',
17
18
18
19
# Authentication via external config like VCAP_SERVICES
19
20
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 ' )
21
22
22
23
############################
23
24
# Profile with JSON output #
You can’t perform that action at this time.
0 commit comments