Skip to content

A utility tool that helps speed up the development process at Unit4.

Notifications You must be signed in to change notification settings

waLLxAck/Unit4-Manager

Repository files navigation

Unit4-Manager

A tool that helps you manage all things - Unit4.

How to use

  1. Add your new project settings This is done in new_bookmarks.json

2022-06-25 09 48 37 Unit4-Manager – new_bookmarks

  1. Run main.py.

image

  1. Check your bookmarks to confirm results.

image

Available tools

Bookmark manager

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

Insomnia collection builder

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.

image

Note: The GET request is set to /v1/objects/attribute-values and it has a filter to look for attribute C1 (Cost Center).

Errors

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

2022-06-25 10 15 20 Unit4-Manager – settings

About

A utility tool that helps speed up the development process at Unit4.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages