定制 luciuz/idnow 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

luciuz/idnow

最新稳定版本:1.0.1

Composer 安装命令:

composer require luciuz/idnow

包简介

IDnow API

关键字:

README 文档

README

IDnow API for everyone!

Examples

Test

// init
$idNow = new IdNow(
    'companyid',
    'API-KEY-TOKEN',
    'https://gateway.test.idnow.de',
    'v1',
    'https://go.test.idnow.de'
);

// create the ident
$transactionId = 'rSRS6BcacTIm4hM94NleLM55x5jamuRI';
$params = [
    'birthday' => '1989-09-09',
    'firstname' => 'X-AUTOTEST-HAPPYPATH',
    'lastname' => 'Lastname',
    'gender' => 'MALE',
    'nationality' => 'RU',
    'mobilephone' => '+79123456789',
];
$result = $idNow->create($transactionId, $params);

// init test IdNowApi
$idNowTest = new IdNowApi(
    'companyid',
    'API-KEY-TOKEN',
    'https://api.test.idnow.de',
    'v1',
    ''
);

// start
$result = $idNowTest->do("{$idNowTest->companyId}/identifications/$transactionId/start", []);

// request video chat
$result = $idNowTest->do("{$idNowTest->companyId}/identifications/$transactionId/requestVideoChat", []);

// now we are ready to receive a webhook

Production

// init
$idNow = new IdNow(
    'companyid',
    'API-KEY-TOKEN',
    'https://gateway.idnow.de',
    'v1',
    'https://go.idnow.de'
);

// create the ident
$transactionId = 'rSRS6BcacTIm4hM94NleLM55x5jamuRJ'
$params = [
    'birthday' => '1989-09-09',
    'firstname' => 'Firstname',
    'lastname' => 'Lastname',
    'gender' => 'MALE',
    'nationality' => 'RU',
    'mobilephone' => '+79123456789',
];
$result = $idNow->create($transactionId, $params);

// get estimated waiting time 
$estimatedWaitingTime = $idNow->estimatedWaitingTime();

// get ident url
$url = $idNow->getUrl($transactionId);

// open url in the iframe
// [identification processs]
// get result redirect
// now we are ready to receive a webhook

Bonus

// download results as ZIP
$result = $idNow->download($href, $dir);

// retrieve results as JSON
$result = $idNow->retrieve($transactionId);

统计信息

  • 总下载量: 6.79k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 4
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 4
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-04-24

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固