This API is used to handle the leads from contact us page

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

This package is not auto-updated.

Last update: 2025-07-09 23:58:02 UTC


README

This API is used to handle the leads from contact us page

This PHP package is automatically generated by the OpenAPI Generator project:

Requirements

PHP 5.5 and later

Installation & Usage

Composer

To install the bindings via Composer, add the following to composer.json:

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

Then run composer install

Manual Installation

Download the files and include autoload.php:

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

Tests

To run the unit tests:

composer install
./vendor/bin/phpunit

Getting Started

Please follow the installation procedure and then run the following:

<?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;
}

?>

Documentation for API Endpoints

All URIs are relative to http://https://eecd2b1a.ap.ngrok.io/api/internal

Class Method HTTP request Description
DefaultApi leadsGet GET /leads Fetch lead info
DefaultApi leadsPost POST /leads collect lead data

Documentation For Models

Documentation For Authorization

All endpoints do not require authorization.

Author

support@tubelightcommunications.com