Loading...
Loading...
Compare original and translation side by side
501 Not ImplementedUnsupportedOperationError501 Not ImplementedUnsupportedOperationErrorimport { Apideck } from "@apideck/unify";
const apideck = new Apideck({
apiKey: process.env["APIDECK_API_KEY"] ?? "",
appId: "your-app-id",
consumerId: "your-consumer-id",
});
// List all connectors for an API
const { data } = await apideck.connector.connectorResources.get({
id: "crm",
resourceId: "contacts",
});
// Returns coverage per connector: which operations are supported
// Get specific connector details
const { data: connector } = await apideck.connector.connectors.get({
id: "salesforce",
});
// Returns: name, status, auth_type, supported_resources, supported_eventsimport { Apideck } from "@apideck/unify";
const apideck = new Apideck({
apiKey: process.env["APIDECK_API_KEY"] ?? "",
appId: "your-app-id",
consumerId: "your-consumer-id",
});
// 列出某API的所有连接器
const { data } = await apideck.connector.connectorResources.get({
id: "crm",
resourceId: "contacts",
});
// 返回每个连接器的覆盖情况:支持哪些操作
// 获取特定连接器详情
const { data: connector } = await apideck.connector.connectors.get({
id: "salesforce",
});
// 返回:名称、状态、认证类型、支持的资源、支持的事件undefinedundefinedundefinedundefinedconst { data } = await apideck.vault.connections.list({
api: "crm",
});
for (const conn of data) {
console.log(`${conn.serviceId}: ${conn.state} (enabled: ${conn.enabled})`);
// state: available | callable | added | authorized | invalid
}const { data } = await apideck.vault.connections.list({
api: "crm",
});
for (const conn of data) {
console.log(`${conn.serviceId}: ${conn.state} (enabled: ${conn.enabled})`);
// 状态:available | callable | added | authorized | invalid
}| Status | Meaning |
|---|---|
| Fully implemented and tested |
| Implemented but may have edge cases |
| Not available for this connector |
| 状态 | 含义 |
|---|---|
| 完全实现并经过测试 |
| 已实现但可能存在边缘情况 |
| 该连接器不支持此操作 |
| Operation | QuickBooks | Xero | NetSuite | Sage Intacct | FreshBooks |
|---|---|---|---|---|---|
| Invoices CRUD | Full | Full | Full | Full | Full |
| Bills CRUD | Full | Full | Full | Full | Partial |
| Payments | Full | Full | Full | Full | Full |
| Journal Entries | Full | Full | Full | Full | Limited |
| Balance Sheet | Full | Full | Full | Full | No |
| Tax Rates (read) | Full | Full | Full | Full | Full |
| 操作 | QuickBooks | Xero | NetSuite | Sage Intacct | FreshBooks |
|---|---|---|---|---|---|
| 发票CRUD | 完整支持 | 完整支持 | 完整支持 | 完整支持 | 完整支持 |
| 账单CRUD | 完整支持 | 完整支持 | 完整支持 | 完整支持 | 部分支持 |
| 支付 | 完整支持 | 完整支持 | 完整支持 | 完整支持 | 完整支持 |
| 日记账分录 | 完整支持 | 完整支持 | 完整支持 | 完整支持 | 有限支持 |
| 资产负债表 | 完整支持 | 完整支持 | 完整支持 | 完整支持 | 不支持 |
| 税率(读取) | 完整支持 | 完整支持 | 完整支持 | 完整支持 | 完整支持 |
| Operation | Salesforce | HubSpot | Pipedrive | Zoho CRM | Close |
|---|---|---|---|---|---|
| Contacts CRUD | Full | Full | Full | Full | Full |
| Companies CRUD | Full | Full | Full | Full | Full |
| Leads CRUD | Full | Full | Full | Full | Full |
| Opportunities | Full | Full | Full | Full | Full |
| Activities | Full | Full | Full | Full | Partial |
| Pipelines (read) | Full | Full | Full | Full | Full |
| 操作 | Salesforce | HubSpot | Pipedrive | Zoho CRM | Close |
|---|---|---|---|---|---|
| 联系人CRUD | 完整支持 | 完整支持 | 完整支持 | 完整支持 | 完整支持 |
| 公司CRUD | 完整支持 | 完整支持 | 完整支持 | 完整支持 | 完整支持 |
| 线索CRUD | 完整支持 | 完整支持 | 完整支持 | 完整支持 | 完整支持 |
| 商机 | 完整支持 | 完整支持 | 完整支持 | 完整支持 | 完整支持 |
| 活动 | 完整支持 | 完整支持 | 完整支持 | 完整支持 | 部分支持 |
| 销售管道(读取) | 完整支持 | 完整支持 | 完整支持 | 完整支持 | 完整支持 |
| Operation | BambooHR | Workday | Personio | Gusto | Rippling |
|---|---|---|---|---|---|
| Employees CRUD | Full | Full | Full | Full | Full |
| Departments | Full | Full | Full | Full | Full |
| Payrolls (read) | Full | Partial | Partial | Full | Full |
| Time-Off | Full | Full | Full | Full | Full |
These tables are approximate. Always verify with the Connector API for real-time accuracy.
| 操作 | BambooHR | Workday | Personio | Gusto | Rippling |
|---|---|---|---|---|---|
| 员工CRUD | 完整支持 | 完整支持 | 完整支持 | 完整支持 | 完整支持 |
| 部门 | 完整支持 | 完整支持 | 完整支持 | 完整支持 | 完整支持 |
| 薪资(读取) | 完整支持 | 部分支持 | 部分支持 | 完整支持 | 完整支持 |
| 休假管理 | 完整支持 | 完整支持 | 完整支持 | 完整支持 | 完整支持 |
这些表格仅为近似值。请始终通过Connector API验证实时准确数据。
// Direct pass-through to the downstream API
const response = await fetch("https://unify.apideck.com/proxy", {
method: "POST",
headers: {
Authorization: `Bearer ${apiKey}`,
"x-apideck-app-id": appId,
"x-apideck-consumer-id": consumerId,
"x-apideck-service-id": "salesforce",
"x-apideck-downstream-url": "https://api.salesforce.com/services/data/v59.0/sobjects/CustomObject__c",
"x-apideck-downstream-method": "GET",
"Content-Type": "application/json",
},
});// 直接直通到下游API
const response = await fetch("https://unify.apideck.com/proxy", {
method: "POST",
headers: {
Authorization: `Bearer ${apiKey}`,
"x-apideck-app-id": appId,
"x-apideck-consumer-id": consumerId,
"x-apideck-service-id": "salesforce",
"x-apideck-downstream-url": "https://api.salesforce.com/services/data/v59.0/sobjects/CustomObject__c",
"x-apideck-downstream-method": "GET",
"Content-Type": "application/json",
},
});| Auth Type | Description | Connectors |
|---|---|---|
| OAuth 2.0 flow (managed by Vault) | Most cloud SaaS (Salesforce, HubSpot, QuickBooks Online, etc.) |
| API key authentication | Some self-hosted or simpler services |
| Username/password | Legacy systems, on-premise |
| Connector-specific auth | Varies |
| 认证类型 | 描述 | 连接器示例 |
|---|---|---|
| OAuth 2.0流程(由Vault管理) | 大多数云SaaS(Salesforce、HubSpot、QuickBooks Online等) |
| API密钥认证 | 部分自托管或简单服务 |
| 用户名/密码认证 | 遗留系统、本地部署系统 |
| 连接器专属认证 | 因连接器而异 |
UnsupportedOperationError501vault.connections.list()authorizednullraw=trueUnsupportedOperationError501vault.connections.list()authorizednullraw=true