assessfirst / itwapp-module
此包已被废弃,不再维护。未建议替代包。
此包的最新版本(v1.0)没有可用的许可证信息。
InterviewApp ZF2 模块
v1.0
2016-02-19 09:45 UTC
Requires
- php: >= 5.4.0
- guzzlehttp/guzzle: 5.3.0
Requires (Dev)
- phpunit/phpunit: 4.4.*
This package is not auto-updated.
Last update: 2017-06-02 08:28:32 UTC
README
此模块允许您从 ZF2 服务中使用 InterviewApp API。
安装
可以通过 Composer 安装,地址为 assessfirst/itwapp-module。
使用方法
基本使用
首先,将应用配置中的 itwapp.local.php.dist 复制到您的配置文件中,并使用自己的配置设置文件。然后,您可以使用以下代码获取 payline 服务:
$this->getServiceLocator()->get('Itwapp\Service\Itwapp');
获取面试
$interview = $this->getServiceLocator() ->get('Itwapp\Service\Itwapp') ->getInterview($id) ;
创建面试
$interview = $this->getServiceLocator() ->get('Itwapp\Service\Itwapp') ->createInterview($name, array $questions) ;
获取申请者
$interview = $this->getServiceLocator() ->get('Itwapp\Service\Itwapp') ->getApplicant($id) ;
创建申请者
$interview = $this->getServiceLocator() ->get('Itwapp\Service\Itwapp') ->createApplicant($mail, $lang, $alert, $deadline, \Itwapp\DAO\Interview $interview) ;
InterviewApp API 信息
要了解更多关于 InterviewApp 和 API 的信息,请 点击这里。