@orchesty/connector-myob
v2.0.1
Published
Readme
MYOB Connector
An Orchesty connector for MYOB, an accounting and business management software that helps businesses manage payroll, monitor cash flow, and track finances.
Application Type
OAuth 2.0
This connector uses the MYOB OAuth 2.0 authorization flow. After entering your credentials in Orchesty, you will be redirected to MYOB to authorize access. All API requests include the custom x-myobapi-version: v2 header required by the MYOB Business API.
| Field | Description |
|---|---|
| client_id | OAuth Client ID from the MYOB Developer Portal |
| client_secret | OAuth Client Secret from the MYOB Developer Portal |
Components
| Class | Type | Description |
|---|---|---|
| MYOBGetEmployeeBatch | Batch | Paginates through all employees (100 per page) via GET /Contact/Employee using OData $top/$skip |
Setup
Credentials
- Register or log in at the MYOB Developer Portal.
- Create a new app to receive a Client ID and Client Secret.
- Add the Orchesty OAuth callback URL to the list of allowed redirect URIs.
- In Orchesty, open the MYOB application settings, enter the credentials, and complete the OAuth authorization flow.
API Documentation
MYOB Business API: https://developer.myob.com/api/myob-business-api/v2/
Installation & Usage
Install the package:
npm install @orchesty/connector-myob @orchesty/nodejs-sdk
# or
pnpm add @orchesty/connector-myob @orchesty/nodejs-sdkRegister the application and nodes in your Orchesty DI container:
import { container } from '@orchesty/nodejs-sdk';
import { OAuth2Provider } from '@orchesty/nodejs-sdk/dist/lib/Authorization/Provider/OAuth2/OAuth2Provider';
import MYOBApplication from '@orchesty/connector-myob/dist/MYOBApplication';
import MYOBGetEmployeeBatch from '@orchesty/connector-myob/dist/Batch/MYOBGetEmployeeBatch';
const app = new MYOBApplication(container.get(OAuth2Provider));
container.setApplication(app);
container.setNode(new MYOBGetEmployeeBatch(), app);License
This connector is released under the Apache License 2.0. See the LICENSE file for the full license text.
Contributing
Contributions are welcome! This connector is part of the open-source Orchesty Node.js Connectors monorepo.
For guidelines on how to create or update connectors — including project setup, coding conventions, and how to write tests — please refer to the Contributing to Connectors guide.
All contributions should include:
- Source code in
src/following the existing connector structure - Tests in
src/**/__tests__/withinput.json,mock.json, andoutput.jsonfixtures - An updated
CHANGELOG.mdentry
