pipl/piplapis-php

用于与Pipl搜索API一起使用的客户端库

v5.2.0 2023-10-02 09:40 UTC

README

这是一个PHP客户端库,可轻松将Pipl的API集成到您的应用程序中。

库需求

  • 支持PHP 8.x.x及以上版本!
  • 请确保已启用php-curl(Windows:在php.ini文件中取消注释;extension=php_curl.dll,Linux(Debian衍生版):apt-get install php5-curl)。
  • 不是必需的,但为了对Unicode字符串进行输入验证,推荐使用mb_string。

安装

php composer.phar require pipl/piplapis-php

Hello World

<?php

require_once './piplapis/search.php';

$configuration = new PiplApi_SearchRequestConfiguration();
$configuration->use_https = true;
$configuration->api_key = 'YOURKEY';

$request = new PiplApi_SearchAPIRequest(array('email' => 'clark.kent@example.com',
'first_name' => 'Clark',
'last_name' => 'Kent'), $configuration);

?>

入门 & 代码片段

Pipl的搜索API