neclimdul / coveo-source-api
Coveo平台API
1.1.0
2024-09-25 12:57 UTC
Requires
- php: >=8.1
- ext-curl: *
- ext-json: *
- ext-mbstring: *
- guzzlehttp/guzzle: ^6.2 || ^7.0
- neclimdul/openapi-php-helper: ^1.0@beta
Requires (Dev)
- fakerphp/faker: ^1.20
- illuminate/support: >5.0.0
- neclimdul/openapi-php-testing: ^1.0@beta
- php-parallel-lint/php-parallel-lint: ^1.2
- phpspec/prophecy-phpunit: ^2.0
- phpstan/phpstan: ^1.0.0
- phpunit/phpunit: ^8.0 | ^9.0
- squizlabs/php_codesniffer: ^3.7
- vimeo/psalm: ^5.9
This package is not auto-updated.
Last update: 2024-09-26 16:21:41 UTC
README
Coveo平台API
更多信息,请访问 https://connect.coveo.com/s/discussions。
安装与使用
要求
PHP 8.1及更高版本。
Composer
要通过Composer安装绑定,请将以下内容添加到composer.json
composer require neclimdul/coveo-source-api
入门
请按照安装过程进行操作,然后运行以下命令
<?php
require_once(__DIR__ . '/vendor/autoload.php');
use NecLimDul\Coveo\SourceApi\ApiException;
// Configure OAuth2 access token for authorization: oauth2
$config = \NecLimDul\Coveo\SourceApi\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new \NecLimDul\Coveo\SourceApi\Api\MappingsApi(
// If you want to use custom http client, pass your client which implements `\GuzzleHttp\ClientInterface`.
// This is optional, `\GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$organization_id = 'organization_id_example'; // string | The unique identifier of the target [organization](https://docs.coveo.com/en/185/).<br />**Example:** `mycoveocloudv2organizationg8tp8wu3`
$source_id = 'source_id_example'; // string | The unique identifier of the target [source](https://docs.coveo.com/en/246/).<br />**Example:** `mycoveocloudv2organizationg8tp8wu3-gravodalyysjsu34camnvxm2d2y`
$base_rule_model = new \NecLimDul\Coveo\SourceApi\Model\BaseRuleModel(); // \NecLimDul\Coveo\SourceApi\Model\BaseRuleModel
$rebuild = false; // bool | Whether to rebuild the [source](https://docs.coveo.com/en/246/) after the operation.<br />**Default:** `false`
try {
$result = $apiInstance->addCommonMappingSettingsRule($organization_id, $source_id, $base_rule_model, $rebuild);
print_r($result);
} catch (ApiException $e) {
echo 'Exception when calling MappingsApi->addCommonMappingSettingsRule: ', $e->getMessage(), PHP_EOL;
}
API端点
所有URI都相对于https://platform.cloud.coveo.com
类 | 方法 | HTTP请求 | 描述 |
---|---|---|---|
MappingsApi | addCommonMappingSettingsRule | POST /rest/organizations/{organizationId}/sources/{sourceId}/mappings/common/rules | 创建通用映射规则 |
MappingsApi | addMappingTypeSettingRule | POST /rest/organizations/{organizationId}/sources/{sourceId}/mappings/types/{typeId}/rules | 创建特定类型的映射规则 |
MappingsApi | addMappingTypes | POST /rest/organizations/{organizationId}/sources/{sourceId}/mappings/types | 创建特定映射 |
MappingsApi | addMappingTypesBatch | POST /rest/organizations/{organizationId}/sources/{sourceId}/mappings/batch/create | 批量创建映射规则 |
MappingsApi | deleteCommonMappingSettingsRule | DELETE /rest/organizations/{organizationId}/sources/{sourceId}/mappings/common/rules/{ruleId} | 删除通用映射规则 |
MappingsApi | deleteMappingType | DELETE /rest/organizations/{organizationId}/sources/{sourceId}/mappings/types/{typeId} | 删除特定类型的映射 |
MappingsApi | deleteMappingTypeSettingsRule | DELETE /rest/organizations/{organizationId}/sources/{sourceId}/mappings/types/{typeId}/rules/{ruleId} | 删除特定映射规则 |
MappingsApi | deleteMappingTypesBatch | POST /rest/organizations/{organizationId}/sources/{sourceId}/mappings/batch/delete | 批量删除映射规则 |
MappingsApi | getCommonMappingSettings | GET /rest/organizations/{organizationId}/sources/{sourceId}/mappings/common | 列出通用映射 |
MappingsApi | getCommonMappingSettingsRule | GET /rest/organizations/{organizationId}/sources/{sourceId}/mappings/common/rules/{ruleId} | 显示通用映射规则 |
MappingsApi | getCommonMappingSettingsRules | GET /rest/organizations/{organizationId}/sources/{sourceId}/mappings/common/rules | 列出通用映射规则 |
MappingsApi | getMappingTypeSettingRules | GET /rest/organizations/{organizationId}/sources/{sourceId}/mappings/types/{typeId}/rules | 列出特定类型的映射规则 |
MappingsApi | getMappingTypeSettings | GET /rest/organizations/{organizationId}/sources/{sourceId}/mappings/types/{typeId} | 列出特定类型的映射 |
MappingsApi | getMappingTypeSettingsRule | GET /rest/organizations/{organizationId}/sources/{sourceId}/mappings/types/{typeId}/rules/{ruleId} | 显示特定映射规则 |
MappingsApi | getMappingTypes | GET /rest/organizations/{organizationId}/sources/{sourceId}/mappings/types | 列出特定映射 |
MappingsApi | getMappingsConfiguration | GET /rest/organizations/{organizationId}/sources/{sourceId}/mappings | 显示映射配置 |
MappingsApi | updateCommonMappingSettings | PUT /rest/organizations/{organizationId}/sources/{sourceId}/mappings/common | 更新通用映射 |
MappingsApi | updateCommonMappingSettingsRule | PUT /rest/organizations/{organizationId}/sources/{sourceId}/mappings/common/rules/{ruleId} | 更新通用映射规则 |
MappingsApi | updateMappingTypeSettings | PUT /rest/organizations/{organizationId}/sources/{sourceId}/mappings/types/{typeId} | 更新特定类型的映射 |
MappingsApi | updateMappingTypeSettingsRule | PUT /rest/organizations/{organizationId}/sources/{sourceId}/mappings/types/{typeId}/rules/{ruleId} | 更新特定映射规则 |
MappingsApi | updateMappingTypesBatch | POST /rest/organizations/{organizationId}/sources/{sourceId}/mappings/batch/update | 批量更新映射规则 |
MappingsApi | updateMappingsConfiguration | PUT /rest/organizations/{organizationId}/sources/{sourceId}/mappings | 更新映射配置 |
MetadataApi | createMetadataReport | POST /rest/organizations/{organizationId}/sources/{sourceId}/metadata | 为数据源创建元数据报告 |
MetadataApi | getSourceMetadataReport | GET /rest/organizations/{organizationId}/sources/{sourceId}/metadata | 检索数据源的元数据报告 |
MetadataApi | getSourceMetadataStatus | GET /rest/organizations/{organizationId}/sources/{sourceId}/metadata/status | 获取数据源元数据报告的状态 |
SalesforceSourceConfigurationApi | generateOTG | POST /rest/sourceconfiguration/salesforce/generateOTG | 根据架构生成ObjectsToGet |
SalesforceSourceConfigurationApi | getDefaultObjects | GET /rest/sourceconfiguration/salesforce/objects | 获取对象 |
SalesforceSourceConfigurationApi | getFields | GET /rest/sourceconfiguration/salesforce/objects/{objectName}/fields | 获取特定对象的字段 |
SalesforceSourceConfigurationApi | getObject | GET /rest/sourceconfiguration/salesforce/objects/{objectName} | 获取特定对象的信息 |
SalesforceSourceConfigurationApi | getRelationship | GET /rest/sourceconfiguration/salesforce/objects/{objectName}/{relationshipName} | 获取特定对象关系的详细信息 |
SalesforceSourceConfigurationApi | getSchema | GET /rest/sourceconfiguration/salesforce/schema | 获取完整的架构(对象和字段) |
SalesforceSourceConfigurationApi | parseOTG | POST /rest/sourceconfiguration/salesforce/parseOTG | 将ObjectsToGet解析为架构 |
SalesforceSourceConfigurationApi | refreshFields | POST /rest/sourceconfiguration/salesforce/objects/{objectName}/fields | 刷新特定对象的字段 |
SalesforceSourceConfigurationApi | refreshObjects | POST /rest/sourceconfiguration/salesforce/objects | 刷新对象 |
SalesforceSourceConfigurationApi | refreshSchema | POST /rest/sourceconfiguration/salesforce/schema | 刷新完整的架构(对象和字段) |
SourceExtensionConfigurationsApi | getSourceExtensions | GET /rest/organizations/{organizationId}/sources/{sourceId}/extensions | 列出扩展配置 |
SourceExtensionConfigurationsApi | setSourceExtensions | PUT /rest/organizations/{organizationId}/sources/{sourceId}/extensions | 更新扩展配置 |
SourceItemTypesApi | getSourceItemTypes | GET /rest/organizations/{organizationId}/sources/{sourceId}/itemTypes | 列出项目类型 |
SourcesApi | abortTaskForActivity | POST /rest/organizations/{organizationId}/sources/{sourceId}/tasks/abort | 取消与特定活动相关的数据源任务。 |
SourcesApi | applyChanges | POST /rest/organizations/{organizationId}/sources/{sourceId}/applyChanges | 应用数据源上的挂起更改 |
SourcesApi | createField | POST /rest/organizations/{organizationId}/sources/fields | 为组织创建字段 |
SourcesApi | createFields | POST /rest/organizations/{organizationId}/sources/fields/batch/create | 为组织创建字段 |
SourcesApi | createRawSource | POST /rest/organizations/{organizationId}/sources/raw | 从原始配置创建数据源 |
SourcesApi | createSource | POST /rest/organizations/{organizationId}/sources | 从简单配置创建数据源 |
SourcesApi | createSourceSchedule | POST /rest/organizations/{organizationId}/sources/{sourceId}/schedules | 为数据源创建新的计划 |
SourcesApi | deleteSource | DELETE /rest/organizations/{organizationId}/sources/{sourceId} | 删除数据源 |
SourcesApi | deleteSourceSchedule | DELETE /rest/organizations/{organizationId}/sources/{sourceId}/schedules/{scheduleId} | 删除数据源计划 |
SourcesApi | disable | POST /rest/organizations/{organizationId}/sources/{sourceId}/disable | 禁用数据源上的计划 |
SourcesApi | duplicateSource | POST /rest/organizations/{organizationId}/sources/{sourceId}/duplicate | 复制数据源 |
SourcesApi | enable | POST /rest/organizations/{organizationId}/sources/{sourceId}/enable | 启用数据源上的计划 |
SourcesApi | evictSchemaForSource | POST /rest/organizations/{organizationId}/sources/{sourceId}/configuration/salesforce/evict | 驱逐数据源的销售力架构。 |
SourcesApi | fullRefresh | POST /rest/organizations/{organizationId}/sources/{sourceId}/fullRefresh | 在数据源上应用完整刷新操作 |
SourcesApi | getAllRawSources | GET /rest/organizations/{organizationId}/sources/raw/all | 获取所有数据源的原始配置 |
SourcesApi | getField | GET /rest/organizations/{organizationId}/sources/fields/{fieldId} | 获取组织的一个单一字段 |
SourcesApi | getFields1 | GET /rest/organizations/{organizationId}/sources/page/fields | 获取组织的一页字段 |
SourcesApi | getFields2 | GET /rest/organizations/{organizationId}/sources/fields | 获取组织的所有字段 |
SourcesApi | getLightSource | GET /rest/organizations/{organizationId}/sources/{sourceId}/light | 获取单个源 |
SourcesApi | getRawSource | GET /rest/organizations/{organizationId}/sources/{sourceId}/raw | 获取源的原生配置 |
SourcesApi | getSalesforceFieldsForSource | GET /rest/organizations/{organizationId}/sources/{sourceId}/configuration/salesforce/objects/{objectName}/fields | 获取指定源的对象字段。 |
SourcesApi | getSalesforceObjectForSource | GET /rest/organizations/{organizationId}/sources/{sourceId}/configuration/salesforce/objects/{objectName} | 获取指定源的对象字段。 |
SourcesApi | getSalesforceRelationshipsForSource | GET /rest/organizations/{organizationId}/sources/{sourceId}/configuration/salesforce/objects/{objectName}/{relationshipName} | 获取指定源和对象的关系。 |
SourcesApi | getSource | GET /rest/organizations/{organizationId}/sources/{sourceId} | 获取单个源 |
SourcesApi | getSourceSchedules | GET /rest/organizations/{organizationId}/sources/{sourceId}/schedules | 获取所有源调度 |
SourcesApi | getSourceSnapshot | GET /rest/organizations/{organizationId}/sources/{sourceId}/configuration/snapshot | 获取提供的活动时源配置的快照。 |
SourcesApi | getSources | GET /rest/organizations/{organizationId}/sources | 获取组织的一部分源 |
SourcesApi | getSourcesAndPageInformations | GET /rest/organizations/{organizationId}/sources/pages | 获取包含组织部分源的一页。 |
SourcesApi | getSourcesAndPageInformationsByIds | POST /rest/organizations/{organizationId}/sources/pages/ids | 通过ID获取包含组织部分源的一页。 |
SourcesApi | getSourcesAndPageInformationsProjectId | GET /rest/organizations/{organizationId}/sources/pages/project | 获取包含项目ID部分源的一页。包含源总数和页数总数 |
SourcesApi | incrementalRefresh | POST /rest/organizations/{organizationId}/sources/{sourceId}/incrementalRefresh | 对源应用增量刷新操作 |
SourcesApi | pauseRefresh | POST /rest/organizations/{organizationId}/sources/{sourceId}/pauseRefresh | 暂停源当前的刷新操作 |
SourcesApi | rebuild | POST /rest/organizations/{organizationId}/sources/{sourceId}/rebuild | 对源应用重建操作 |
SourcesApi | removeField | DELETE /rest/organizations/{organizationId}/sources/fields/{fieldId} | 从一个组织中删除特定字段 |
SourcesApi | removeFields | DELETE /rest/organizations/{organizationId}/sources/fields/batch/delete | 从一个组织中删除字段 |
SourcesApi | resumeRefresh | POST /rest/organizations/{organizationId}/sources/{sourceId}/resumeRefresh | 恢复源当前的刷新操作 |
SourcesApi | setPushRefreshStatus | POST /rest/organizations/{organizationId}/sources/{sourceId}/pushRefresh | 设置推送源的刷新状态 |
SourcesApi | startRefresh | POST /rest/organizations/{organizationId}/sources/{sourceId}/startRefresh | 在源上启动刷新操作 |
SourcesApi | stopRefresh | POST /rest/organizations/{organizationId}/sources/{sourceId}/stopRefresh | 停止源当前的刷新操作 |
SourcesApi | updateField | PUT /rest/organizations/{organizationId}/sources/fields/{fieldId} | 更新组织的字段 |
SourcesApi | updateFields | PUT /rest/organizations/{organizationId}/sources/fields/batch/update | 更新组织的字段 |
SourcesApi | updateRawSource | PUT /rest/organizations/{organizationId}/sources/{sourceId}/raw | 从原生配置更新源 |
SourcesApi | updateSource | PUT /rest/organizations/{organizationId}/sources/{sourceId} | 从简单配置更新源 |
SourcesApi | updateSourcePermissions | PUT /rest/organizations/{organizationId}/sources/{sourceId}/permissions/update | 更新源权限 |
SourcesApi | updateSourceSchedule | PUT /rest/organizations/{organizationId}/sources/{sourceId}/schedules/{scheduleId} | 更新源调度 |
模型
- AddressPattern
- AdobeExperienceManagerSourceModel
- AmazonS3SourceModel
- AuthenticationFailedConfiguration
- BaseRuleModel
- BaseTypedMappingSettingsModelBaseRuleModel
- BatchOperationProgressModelTypedMappingSettingsModel
- BatchOperationResourceStatusModelTypedMappingSettingsModel
- BoxEnterprise2SourceModel
- BoxEnterpriseSourceModel
- BoxSingleUserSourceModel
- CascadingSecurityProvider
- 目录源模型
- 字符集检测提示
- 通用映射设置模型
- 配置
- 配置错误
- Confluence2托管源模型
- Confluence2源模型
- 自定义登录顺序
- 自定义源模型
- 数据文件
- 数据库源模型
- 详细安全标识模型
- 文档配置
- 文档权限模型
- 文档处理器
- 文档处理器配置
- 文档处理器参数
- DropboxForBusiness源模型
- Dropbox源模型
- 扩展配置
- 扩展数据文件
- 扩展设置
- 按扩展设置的扩展设置
- 扩展设置
- 字段映射模型
- 文件源模型
- 表单操作
- 表单认证步骤
- 表单认证配置
- 表单元素标识符
- 表单输入
- 通用REST源模型
- GetSource200响应
- GetSourcesOut参数
- Gmail域宽源模型
- GoogleDrive域宽源模型
- GraphQl源模型
- 小时分钟对
- 标识符和显示名称模型
- 项目修改周期
- Jira2托管源模型
- Jira2源模型
- Jive托管源模型
- Jive源模型
- 知识库发布状态
- Khoros源模型
- 语言提示
- 轻量级源模型
- 映射模型
- 映射配置模型
- 内存限制
- 元数据报告页面模型
- 元数据值模型
- MicrosoftDynamics条件
- MicrosoftDynamics条件
- MicrosoftDynamicsFetchXml查询
- MicrosoftDynamicsFetchXml查询
- MicrosoftDynamics对象
- MicrosoftDynamics关系
- MicrosoftDynamics源模型
- 下一操作
- 页面模型源字段模型
- 参数
- 参数模型
- 权限
- 权限级别
- 权限级别模型
- 权限模型
- 权限模型状态根本原因模型
- 权限集
- 权限集模型
- 推送源模型
- RSS源模型
- 原始源配置
- 规则模型
- SAP源模型
- Salesforce条件
- Salesforce字段
- SalesforceIn条件值
- Salesforce对象
- Salesforce关系
- Salesforce源模型
- 调度频率
- 调度模型
- 安全标识信息模型
- 安全提供程序
- 安全提供程序模型
- 安全提供程序引用模型
- ServiceNow源模型
- SharePointOnline2源模型
- SharePointOnline源模型
- SharePoint源模型
- 单个权限模型
- Sitecore源模型
- 网站地图源模型
- Slack源模型
- 源配置快照映射模型
- 源配置快照模型
- 源扩展模型
- 源扩展映射
- 源扩展模型
- 源字段模型
- 源信息
- 源最后操作
- 源元数据模型
- 源元数据状态模型
- 源模型
- 源权限更新模型
- 源状态
- Twitter2源模型
- 类型映射设置模型
- URL过滤器
- 用户身份
- 用户身份模型
- Web2源模型
- YouTube源模型
- Zendesk源模型
授权
oauth2
- 类型:
OAuth
- 流程:
implicit
- 授权URL:
https://platform.cloud.coveo.com/oauth/authorize
- 作用域:
- full: required
测试
要运行测试,请使用
composer install
vendor/bin/phpunit
作者
关于此包
此PHP包是由OpenAPI Generator项目自动生成的
- API版本:
1.0.0
- 构建包:
org.openapitools.codegen.languages.PhpClientCodegen