This repository has been archived by the owner on Aug 1, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
ConnectWise API Base Path Change #9
Labels
Comments
SolutionsThese are my suggested solutions in order of preference.
No matter which solution, this module/lib should provide a function or method (a part of |
@sgtoj I am a fan of option 1 + 3 or 4. @mattheyan what do you think about this? |
There is a problem that will need to resolve first. The function the builds the CW Manage endpoint, will need to be async/promise or calls a callback because it's a web request. This complicates the logic little more than I originally thought when I proposed the solutions. That is because there should not be async code in a class constructor. There are ways to solve for this problem, though. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
ConnectWise API's base path can and will change. Furthermore, CW Manage partners may be on different codebase (even if it cloud hosted). Therefore, the best practice is to build the
basePath
after retrieving theCodebase
. This can be queried viahttps://{host}/login/companyinfo/{company-name}
.Acme Corporation (Fake) Example
The text was updated successfully, but these errors were encountered: