artox-lab/clck-ru-shortener

There is no license information available for the latest version (v1.0.2) of this package.

v1.0.2 2021-03-22 11:29 UTC

This package is auto-updated.

Last update: 2024-04-22 18:06:19 UTC


README

OpenApi documentation for Clck.ru URL shortener

This PHP package is automatically generated by the Swagger Codegen project:

  • API version: 1.0.0
  • Package version: 1.0.0
  • Build package: io.swagger.codegen.v3.generators.php.PhpClientCodegen

Requirements

PHP 5.5 and later

Installation & Usage

Composer

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

composer require artox-lab/clck-ru-shortener:~1.0

Getting Started

Please follow the installation procedure and then run the following:

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

$apiInstance = new ArtoxLab\ClckRuSDK\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()
);
$url = "url_example"; // string | 

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

Documentation for API Endpoints

All URIs are relative to https://clck.ru

Class Method HTTP request Description
DefaultApi shorten POST /-- shorten url

Documentation For Models

Documentation For Authorization

All endpoints do not require authorization.