A tool that helps you manage all things - Unit4.
- Add your new project settings
This is done in
new_bookmarks.json
- Run
main.py
.
- Check your bookmarks to confirm results.
Adds project information to your bookmarks.
It starts by creating a base 'Unit4' folder on the bookmarks tab, if that doesn't exist. It then creates a 'Projects' folder inside. Then inside 'Projects' it creates a folder using the project name that's supplied in new_bookmarks.json
. Inside, it proceeds to create the following URLS:
- Swagger API
- Extension Kit - PREV, ACPT, PROD
- ERP Lab - PREV, ACPT, PROD
Builds an insomnia JSON file that you can import into your insomnia environment that has all the settings supplied in the new_bookmarks.json
file.
The structure that it follows:
{
"urls": {
"swagger_api": ""
},
"authorization": {
"erp": {
"prev": {
"company_id": "",
"access_token_url": "",
"client_id": "",
"client_secret": ""
},
"acpt": {
"company_id": "",
"access_token_url": "",
"client_id": "",
"client_secret": ""
},
"prod": {
"company_id": "",
"access_token_url": "",
"client_id": "",
"client_secret": ""
}
}
}
}
Additionally, it creates a sample GET request with one of the environments' settings so that you can test the credentials straight away.
Note: The GET request is set to /v1/objects/attribute-values
and it has a filter to look for attribute C1 (Cost Center).
In the event of a defaulted browser not being found, update your 'Bookmarks' file path. Normally this is stored in:
C:\\Users\\_YOUR_USER\\AppData\\Local\\Google\\Chrome\\User Data\\Default\\Bookmarks