Authentication
Authentication is performed through the Login and Logout functions.
It is an HTTPS POST request that will include the username, password, and the accountId we're logging into.
Wherever a sessionId is accepted you can pass either a session token from a login or a long-lived access token. The library authenticates every request with Authorization: Bearer <token>, so it does not need to know which kind you hold.
Typescript
Javascript
Here is an example login screen you can reference. This example does not handle the success/failure gracefully and just displays a simple message. You will need to edit it to set your accountId.