-
Notifications
You must be signed in to change notification settings - Fork 0
Credentials
To access the cards on your account, you will need to provide the application with a set of credentials you have generated.
This can be retrieved from your Investec account using the developer options.
When generating the keys, you only require the card scope. Limiting the scope ensures that the access you are granting is limited to what is needed.
The credentials needed are the client-id, client-secret and api-key.
The recommended route to configuring the app with credentials is using the ipb config command.
ipb config --client-id <client-id> --client-secret <client-secret> --api-key <api-key>
This will create a credentials.json file and store it in your home directory
On MacOS and Linux $HOME/.ipb/.credentials.json
On Windows USERPROFILE/.ipb/.credentials.json
**On Windows, it uses the USERPROFILE environment variable if it is defined. Otherwise, it uses the path to the current user's profile directory.
If you suspect you got one of the credentials incorrect or you need to update the API key, you do not need to send all the options again. You only need to send the option you want to update; the rest will remain unchanged.
ipb config --api-key <api-key>
For more advanced configurations, the credentials can be provided to the application in several additional ways.