This SDK is automatically generated with the OpenAPI Generator project.
- API version: 2.0.0
- Package version: 3.0.2
- Build package: urlr/urlr-php
For more information, please visit https://urlr.me/en.
PHP 8.1 and later.
You can install the bindings via Composer. Run the following command:
composer require urlr/urlr-phpDownload the files and include autoload.php:
<?php
require_once('/path/to/URLR/vendor/autoload.php');Please follow the installation procedure and then run the following:
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiKey = getenv('URLR_API_KEY'); // to be defined on your side
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
$client = new GuzzleHttp\Client();
$configuration = URLR\Configuration::getDefaultConfiguration()
->setApiKey('X-API-KEY', $apiKey);
// Create a link
$linksApi = new URLR\Api\LinksApi($client, $configuration);
$linkCreateRequest = new \URLR\Model\LinkCreateRequest([
'url' => '',
'workspaceId' => '',
]);
try {
$link = $linksApi->linkCreate($linkCreateRequest);
} catch (Exception $e) {
echo 'Exception when calling LinksApi->linkCreate: ', $e->getMessage(), PHP_EOL;
}Complete examples can be found in the docs directory of the client repository.
All URIs are relative to https://urlr.me/api/v2
| Class | Method | HTTP request | Description |
|---|---|---|---|
| DomainsApi | domainCreate | POST /domains | Create a domain |
| DomainsApi | domainGet | GET /domains/{domain_id} | Get a domain |
| DomainsApi | domainList | GET /domains | List domains |
| FoldersApi | folderCreate | POST /folders | Create a folder |
| FoldersApi | folderGet | GET /folders/{folder_id} | Get a folder |
| FoldersApi | folderList | GET /folders | List folders |
| LinksApi | linkCreate | POST /links | Create a link |
| LinksApi | linkDelete | DELETE /links/{link_id} | Delete a link |
| LinksApi | linkEdit | PATCH /links/{link_id} | Edit a link |
| LinksApi | linkGet | GET /links/{link_id} | Get a link |
| LinksApi | linkList | GET /links | List links |
| QRCodesApi | qrcodeCreate | POST /qrcodes | Create a QR Code |
| StatisticsApi | statisticGet | GET /statistics | Get statistics |
| WorkspacesApi | workspaceGet | GET /workspaces/{workspace_id} | Get a workspace |
| WorkspacesApi | workspaceList | GET /workspaces | List workspaces of user |
- Domain
- DomainCreate409Response
- DomainCreate429Response
- DomainCreateRequest
- DomainGet401Response
- DomainGet404Response
- DomainGet422Response
- DomainList200Response
- Folder
- FolderCreateRequest
- FolderList200Response
- Link
- LinkBaseRequest
- LinkBaseRequestMetatag
- LinkBaseRequestQrcode
- LinkCreateRequest
- LinkDelete500Response
- LinkEditRequest
- LinkGeolinksInner
- LinkGeolinksInnerConditionsInner
- LinkList200Response
- LinkMetatag
- LinkQrcode
- LinkTagsInner
- LinkUtm
- QrcodeCreateRequest
- QrcodeCreateRequestOneOf
- QrcodeCreateRequestOneOf1
- StatisticGet200Response
- Workspace
- WorkspaceList200Response
- Type: API key
- API key parameter name: X-API-KEY
- Location: HTTP header
To run the tests, use:
composer install
vendor/bin/phpunitPlease contact contact@urlr.me and we can take more direct action toward finding a solution.