Skip to content

Commit

Permalink
test(env): Update key for personality insights
Browse files Browse the repository at this point in the history
  • Loading branch information
ehdsouza committed Jan 29, 2020
1 parent 4aa6ce3 commit bdfd2c3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Binary file modified .env.enc
Binary file not shown.
7 changes: 4 additions & 3 deletions examples/personality_insights_v3.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@
../resources/personality-v3-expect2.txt
"""
import json
from os.path import join, dirname
import os
from os.path import join
from ibm_watson import PersonalityInsightsV3
import csv
from ibm_cloud_sdk_core.authenticators import IAMAuthenticator

# Authentication via IAM
# # Authentication via IAM
# authenticator = IAMAuthenticator('your_api_key')
# service = PersonalityInsightsV3(
# version='2017-10-13',
Expand All @@ -17,7 +18,7 @@

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

############################
# Profile with JSON output #
Expand Down

0 comments on commit bdfd2c3

Please sign in to comment.