Using the Personality Insights API

Using the Personality Insights Package

Next, we'll make use of the watson_developer_cloud Python package we imported earlier.

Similar to how we interacted with the Twitter API, we'll create an instance, initialize it with a username and password, and set it equal to a variable called personality_insights, like so:

personality_insights = PersonalityInsights(username=pi_username, password=pi_password)

The variable personality_insights represents the Personality Insights API that we'll interact with.

Community Forums
Get help and ask questions in the Codecademy Forums
Report a Bug
If you see a bug or any other issue with this page, please report it here.