redcomercio/latch-sdk-php
Composer 安装命令:
composer require redcomercio/latch-sdk-php
包简介
Latch SDK PHP
关键字:
README 文档
README
LATCH PHP SDK
PREREQUISITES
PHP 5.3 or above.
Read API documentation (https://latch.elevenpaths.com/www/developers/doc_api).
To get the "Application ID" and "Secret", (fundamental values for integrating Latch in any application), it’s necessary to register a developer account in Latch's website: https://latch.elevenpaths.com. On the upper right side, click on "Developer area".
USING THE SDK IN PHP
Require "latch" sdk using composer
composer require elevenpaths/latch-sdk-phpCreate a Latch object with the "Application ID" and "Secret" previously obtained.
$api = new Latch(APP_ID, APP_SECRET);Optional settings:
$api->setProxy(YOUR_PROXY);Call to Latch Server. Pairing will return an account id that you should store for future api calls
$pairResponse = $api->pair("PAIRING_CODE_HERE"); $statusResponse = $api->status(ACCOUNT_ID_HERE); $unpairResponse = $api->unpair(ACCOUNT_ID_HERE);After every API call, get Latch response data and errors and handle them.
$pairResponse->getData(); $pairResponse->getError();
统计信息
- 总下载量: 3
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: LGPL-2.1
- 更新时间: 2024-07-22