定制 redcomercio/latch-sdk-php 二次开发

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

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

redcomercio/latch-sdk-php

Composer 安装命令:

composer require redcomercio/latch-sdk-php

包简介

Latch SDK PHP

README 文档

README

LATCH PHP SDK

 PREREQUISITES

USING THE SDK IN PHP

  • Require "latch" sdk using composer

    composer require elevenpaths/latch-sdk-php
    
  • Create 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

GitHub 信息

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

其他信息

  • 授权协议: LGPL-2.1
  • 更新时间: 2024-07-22