This SDK is automatically generated with the OpenAPI Generator project.
- API version: 2.0.0
- Package version: 3.0.2
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
For more information, please visit https://urlr.me/en
Python 3.10+
pip install urlrThen import the package:
import urlrInstall via Setuptools.
python setup.py install --user(or sudo python setup.py install to install the package for all users)
Then import the package:
import urlrExecute pytest to run the tests.
Please follow the installation procedure and then run the following:
import os
import urlr
api_key = os.getenv("URLR_API_KEY") # to be defined on your side
configuration = urlr.Configuration()
configuration.api_key['ApiKeyAuth'] = api_key
# Create a link
with urlr.ApiClient(configuration) as api_client:
links_api = urlr.LinksApi(api_client)
link_create_request = urlr.LinkCreateRequest(
url="",
workspace_id=""
)
try:
link = links_api.link_create(link_create_request=link_create_request)
except Exception as e:
print("Exception when calling LinksApi->link_create: %s\n" % e)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 | domain_create | POST /domains | Create a domain |
| DomainsApi | domain_get | GET /domains/{domain_id} | Get a domain |
| DomainsApi | domain_list | GET /domains | List domains |
| FoldersApi | folder_create | POST /folders | Create a folder |
| FoldersApi | folder_get | GET /folders/{folder_id} | Get a folder |
| FoldersApi | folder_list | GET /folders | List folders |
| LinksApi | link_create | POST /links | Create a link |
| LinksApi | link_delete | DELETE /links/{link_id} | Delete a link |
| LinksApi | link_edit | PATCH /links/{link_id} | Edit a link |
| LinksApi | link_get | GET /links/{link_id} | Get a link |
| LinksApi | link_list | GET /links | List links |
| QRCodesApi | qrcode_create | POST /qrcodes | Create a QR Code |
| StatisticsApi | statistic_get | GET /statistics | Get statistics |
| WorkspacesApi | workspace_get | GET /workspaces/{workspace_id} | Get a workspace |
| WorkspacesApi | workspace_list | 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
Authentication schemes defined for the API:
- Type: API key
- API key parameter name: X-API-KEY
- Location: HTTP header
Please contact contact@urlr.me and we can take more direct action toward finding a solution.