Skip to content
This repository has been archived by the owner on May 28, 2023. It is now read-only.

Configuration Before Usage (1.1)

Percy Mamedy edited this page Mar 11, 2017 · 3 revisions

Overview

The config file located at config/personality-insights.php contains all the package's configurations. You can explore this file to get a sense of what is configurable.

Credentials

The credentials key contains an array of Watson Service Credentials. A sensible default credential has been defined for you.

'credentials' => [

        'default' => [
            'url'      => env('PERSONALITY_INSIGHTS_URL', 'https://gateway.watsonplatform.net/personality-insights/api/'),
            'password' => env('PERSONALITY_INSIGHTS_PASSWORD', 'SomePassword'),
            'username' => env('PERSONALITY_INSIGHTS_USERNAME', 'SomeUsername'),
        ],

 ],

The default credential is the one used for all communication with Watson.

Feel free to add as many credentials as needed. You can then use defined credentials by specifying them when making API calls.