artox-lab / clck-ru-shortener
本包最新版本(v1.0.2)没有提供许可信息。
v1.0.2
2021-03-22 11:29 UTC
Requires
- php: >=5.5
- ext-curl: *
- ext-json: *
- ext-mbstring: *
- guzzlehttp/guzzle: ^6.2
This package is auto-updated.
Last update: 2024-09-22 19:01:17 UTC
README
Clck.ru URL缩短器的OpenApi文档
此PHP包是由Swagger Codegen项目自动生成的
- API版本:1.0.0
- 包版本:1.0.0
- 构建包:io.swagger.codegen.v3.generators.php.PhpClientCodegen
要求
PHP 5.5及更高版本
安装与使用
Composer
要通过Composer安装绑定,请在composer.json
中添加以下内容
composer require artox-lab/clck-ru-shortener:~1.0
入门
请按照安装步骤进行操作,然后运行以下命令
<?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; } ?>
API端点文档
所有URI相对于https://clck.ru
模型文档
授权文档
所有端点不需要授权。