betterweekdays/onet_api
Composer 安装命令:
composer require betterweekdays/onet_api
包简介
Library to interact with the ONET API: https://services.onetcenter.org/
README 文档
README
A php library to connect to the ONET API: https://services.onetcenter.org/
Currently Implemented:
- Detailed Work Activities: https://services.onetcenter.org/reference/online#details_detailed_work_activities
- Job Outlook: https://services.onetcenter.org/reference/mnm#outlook
- Knowledge Details: https://services.onetcenter.org/reference/online#details_knowledge
Each Resource object connects to an endpoint. The Resource owns the connection to the endpoint knowing about the request and response XML format.
The Config object holds configuration
The Connection object makes the call to the API
The Resource Object will create Entity objects which are read only value objects.
Examples:
$config = new \ONET\Config('asdfvaesfjaivoe', 'https://services.onetcenter.org/ws'); $connection = new \ONET\Connection($config); $resource = new \ONET\Resource\Online\WorkActivityDetailed('17-2112.00'); $response = $connection->call($resource); $entity = $resource->map($response);
统计信息
- 总下载量: 5.46k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPLv2
- 更新时间: 2015-09-25