此API用于处理“联系我们”页面上的线索

dev-master 2019-04-08 13:35 UTC

This package is not auto-updated.

Last update: 2024-10-02 20:30:33 UTC


README

此API用于处理“联系我们”页面上的线索

此PHP包是由OpenAPI Generator项目自动生成的

要求

PHP 5.5及更高版本

安装与使用

Composer

要使用Composer安装绑定,请将以下内容添加到composer.json

{
  "repositories": [
    {
      "type": "vcs",
      "url": "https://github.com/tubelight-communications/tcl-sdk-php.git"
    }
  ],
  "require": {
    "tubelight-communications/tcl-sdk-php": "*@dev"
  }
}

然后运行composer install

手动安装

下载文件并包含autoload.php

    require_once('/path/to/OpenAPIClient-php/vendor/autoload.php');

测试

要运行单元测试

composer install
./vendor/bin/phpunit

入门指南

请按照安装过程进行操作,然后运行以下命令

<?php
require_once(__DIR__ . '/vendor/autoload.php');

$apiInstance = new OpenAPI\Client\Api\DefaultApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client()
);
$format = 'json'; // string | format query
$lead_id = 3.4; // float | lead id of the lead to be found

try {
    $result = $apiInstance->leadsGet($format, $lead_id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->leadsGet: ', $e->getMessage(), PHP_EOL;
}

?>

API端点文档

所有URI均相对于http://https://eecd2b1a.ap.ngrok.io/api/internal

模型文档

授权文档

所有端点均不需要授权。

作者

support@tubelightcommunications.com