@orchesty/connector-zoho 1.0.1 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +85 -0
- package/dist/package.json +2 -2
- package/package.json +6 -3
package/README.md
ADDED
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
# Zoho Connector
|
|
2
|
+
|
|
3
|
+
[](https://www.npmjs.com/package/@orchesty/connector-zoho)
|
|
4
|
+
[](https://github.com/Orchesty/orchesty-nodejs-connectors/blob/master/LICENSE)
|
|
5
|
+
|
|
6
|
+
An [Orchesty](https://orchesty.io) connector for Zoho Creator, a low-code application platform for managing form submissions and report data in custom Zoho apps.
|
|
7
|
+
|
|
8
|
+
## Application Type
|
|
9
|
+
|
|
10
|
+
**OAuth 2.0**
|
|
11
|
+
|
|
12
|
+
This connector uses the Zoho OAuth 2.0 authorization flow via `https://accounts.zoho.eu/oauth/v2/auth`. The API domain is determined from the token response and used to build all request URLs. Requests use a `Zoho-oauthtoken {access_token}` authorization header.
|
|
13
|
+
|
|
14
|
+
| Field (Authorization) | Description |
|
|
15
|
+
|---|---|
|
|
16
|
+
| `client_id` | Your Zoho app Client ID |
|
|
17
|
+
| `client_secret` | Your Zoho app Client Secret |
|
|
18
|
+
|
|
19
|
+
| Field (Creator Settings) | Description |
|
|
20
|
+
|---|---|
|
|
21
|
+
| `account_owner_name` | Zoho Creator account owner name |
|
|
22
|
+
| `app_link_name` | Link name of the Zoho Creator application |
|
|
23
|
+
| `form_link_name` | Link name of the form within the app |
|
|
24
|
+
| `report_link_name` | Link name of the report within the app |
|
|
25
|
+
|
|
26
|
+
## Components
|
|
27
|
+
|
|
28
|
+
| Class | Type | Description |
|
|
29
|
+
|---|---|---|
|
|
30
|
+
| `ZohoAddRecordsConnector` | Connector | Adds a record to a Zoho Creator form via `POST /{accountOwnerName}/{appLink}/form/{formLink}` |
|
|
31
|
+
| `ZohoGetRecordsConnector` | Connector | Fetches a single record from a Zoho Creator report via `GET /{accountOwnerName}/{appLink}/report/{reportLink}/{recordId}` |
|
|
32
|
+
|
|
33
|
+
## Setup
|
|
34
|
+
|
|
35
|
+
### Credentials
|
|
36
|
+
|
|
37
|
+
1. Log in to the [Zoho API Console](https://api-console.zoho.eu/) and create a new **Self Client** or **Web-based application**.
|
|
38
|
+
2. Copy the **Client ID** and **Client Secret**.
|
|
39
|
+
3. Add the Orchesty redirect URL to the **Authorized Redirect URIs** list.
|
|
40
|
+
4. In Orchesty, open the Zoho application settings, enter both values, and complete the OAuth authorization flow.
|
|
41
|
+
5. After authorization, fill in the **Creator Settings** form with your application and form/report link names from your Zoho Creator app.
|
|
42
|
+
|
|
43
|
+
### API Documentation
|
|
44
|
+
|
|
45
|
+
Zoho Creator API v2: [https://www.zoho.com/creator/help/api/v2/](https://www.zoho.com/creator/help/api/v2/)
|
|
46
|
+
|
|
47
|
+
## Installation & Usage
|
|
48
|
+
|
|
49
|
+
Install the package:
|
|
50
|
+
|
|
51
|
+
```bash
|
|
52
|
+
npm install @orchesty/connector-zoho @orchesty/nodejs-sdk
|
|
53
|
+
# or
|
|
54
|
+
pnpm add @orchesty/connector-zoho @orchesty/nodejs-sdk
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
Register the application and nodes in your Orchesty DI container:
|
|
58
|
+
|
|
59
|
+
```typescript
|
|
60
|
+
import { container } from '@orchesty/nodejs-sdk';
|
|
61
|
+
import { OAuth2Provider } from '@orchesty/nodejs-sdk/dist/lib/Authorization/Provider/OAuth2/OAuth2Provider';
|
|
62
|
+
import ZohoApplication from '@orchesty/connector-zoho/dist/ZohoApplication';
|
|
63
|
+
import ZohoAddRecordsConnector from '@orchesty/connector-zoho/dist/Connector/ZohoAddRecordsConnector';
|
|
64
|
+
import ZohoGetRecordsConnector from '@orchesty/connector-zoho/dist/Connector/ZohoGetRecordsConnector';
|
|
65
|
+
|
|
66
|
+
const app = new ZohoApplication(container.get(OAuth2Provider));
|
|
67
|
+
container.setApplication(app);
|
|
68
|
+
container.setNode(new ZohoAddRecordsConnector(), app);
|
|
69
|
+
container.setNode(new ZohoGetRecordsConnector(), app);
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
## License
|
|
73
|
+
|
|
74
|
+
This connector is released under the **Apache License 2.0**. See the [LICENSE](https://github.com/Orchesty/orchesty-nodejs-connectors/blob/master/LICENSE) file for the full license text.
|
|
75
|
+
|
|
76
|
+
## Contributing
|
|
77
|
+
|
|
78
|
+
Contributions are welcome! This connector is part of the open-source [Orchesty Node.js Connectors](https://github.com/Orchesty/orchesty-nodejs-connectors) monorepo.
|
|
79
|
+
|
|
80
|
+
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](https://orchesty.io/community/contributing-to-connectors)** guide.
|
|
81
|
+
|
|
82
|
+
All contributions should include:
|
|
83
|
+
- Source code in `src/` following the existing connector structure
|
|
84
|
+
- Tests in `src/**/__tests__/` with `input.json`, `mock.json`, and `output.json` fixtures
|
|
85
|
+
- An updated `CHANGELOG.md` entry
|
package/dist/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@orchesty/connector-zoho",
|
|
3
3
|
"description": "",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "2.0.0",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"url": "https://github.com/Orchesty/orchesty-nodejs-connectors",
|
|
7
7
|
"repository": "https://github.com/Orchesty/orchesty-nodejs-connectors",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"keywords": [],
|
|
18
18
|
"author": "info@hanaboso.com",
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@orchesty/nodejs-sdk": "^
|
|
20
|
+
"@orchesty/nodejs-sdk": "^5.0.13"
|
|
21
21
|
},
|
|
22
22
|
"engines": {
|
|
23
23
|
"node": ">=24"
|
package/package.json
CHANGED
|
@@ -1,17 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@orchesty/connector-zoho",
|
|
3
3
|
"description": "",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "2.0.1",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"url": "https://github.com/Orchesty/orchesty-nodejs-connectors",
|
|
7
|
-
"repository":
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "https://github.com/Orchesty/orchesty-nodejs-connectors"
|
|
10
|
+
},
|
|
8
11
|
"files": [
|
|
9
12
|
"dist"
|
|
10
13
|
],
|
|
11
14
|
"keywords": [],
|
|
12
15
|
"author": "info@hanaboso.com",
|
|
13
16
|
"dependencies": {
|
|
14
|
-
"@orchesty/nodejs-sdk": "^
|
|
17
|
+
"@orchesty/nodejs-sdk": "^5.0.13"
|
|
15
18
|
},
|
|
16
19
|
"engines": {
|
|
17
20
|
"node": ">=24"
|