uicosss/aits_person_lookup_confidential 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

uicosss/aits_person_lookup_confidential

最新稳定版本:v2.0.0

Composer 安装命令:

composer require uicosss/aits_person_lookup_confidential

包简介

PHP Wrapper API for the AITS Person Lookup Confidential API

README 文档

README

AITS - Person Lookup Confidential

PHP library for using the AITS Person Lookup Confidential API. Contact AITS for additional implementation details.

Usage

To use the library, you need to:

Include library in your program

require_once 'AitsPersonLookupConfidential.php';

or use composer

composer require uicosss/aits_person_lookup_confidential
require_once 'vendor/autoload.php';

Instantiate an object of the class

$apiUrl = 'apiurl.com/without/trailing/slash'; // Contact AITS for this
$subscriptionKey = 'YOUR_SUBSCRIPTION_KEY'; // Contact AITS for this
$personApi = new uicosss\AitsPersonLookupConfidential($apiUrl, $subscriptionKey);

Getting Results from an API call

The default response will be JSON, but you can also request the raw data which will be an object of StdClass. Contact AITS for additional details on API schema.

$lookupKey = 'sparky'; // NetID or UIN
$personApi->findPerson($lookupKey); // Conduct the person lookup
echo $personApi->getResponse(true); // See raw JSON response
$json = $personApi->getResponse(); // Get decoded JSON array

Examples:

You can use the attached examples/cli-test.php file from the command line to test functionality.

php cli-test.php apiurl.com/without/trailing/slash YOUR_SUBSCRIPTION_KEY lookupkey

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-05-16