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
PHP 5.5 and later
To install the bindings via Composer, add the following to composer.json:
composer require artox-lab/clck-ru-shortener:~1.0Please 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;
}
?>All URIs are relative to https://clck.ru
| Class | Method | HTTP request | Description |
|---|---|---|---|
| DefaultApi | shorten | POST /-- | shorten url |
All endpoints do not require authorization.