Skip to main content

Python client for URLR

Project description

urlr@3.1.0

PyPI - Version PyPI - Downloads PyPI - License

This SDK is automatically generated with the OpenAPI Generator project.

  • API version: 2.0.0
  • Package version: 3.1.0
  • Build package: org.openapitools.codegen.languages.PythonClientCodegen

For more information, please visit https://urlr.me/en

Installation & Usage

Requirements

Python 3.10+

pip install

pip install urlr

Then import the package:

import urlr

Setuptools

Install 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 urlr

Tests

Execute pytest to run the tests.

Getting Started

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="",
    )

    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.

API Endpoints

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

Models

Authorization

Authentication schemes defined for the API:

ApiKeyAuth

  • Type: API key
  • API key parameter name: X-API-KEY
  • Location: HTTP header

Get help / support

Please contact contact@urlr.me and we can take more direct action toward finding a solution.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

urlr-3.1.0.tar.gz (42.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

urlr-3.1.0-py3-none-any.whl (86.2 kB view details)

Uploaded Python 3

File details

Details for the file urlr-3.1.0.tar.gz.

File metadata

  • Download URL: urlr-3.1.0.tar.gz
  • Upload date:
  • Size: 42.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for urlr-3.1.0.tar.gz
Algorithm Hash digest
SHA256 e083bf981eb9cf83e6bbca2ab2c6960ad4219fcded42fb33343ab7b101e24901
MD5 2866ce54af4afdcd2326d1e0992ea260
BLAKE2b-256 e05a6970fba1f3a12aa7108fb490a93f2d8707d4d32d653bfbb8b9b4eea47487

See more details on using hashes here.

File details

Details for the file urlr-3.1.0-py3-none-any.whl.

File metadata

  • Download URL: urlr-3.1.0-py3-none-any.whl
  • Upload date:
  • Size: 86.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for urlr-3.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 448f334bb236b8752fc3387bf91bf26082a90f9327ab7b988e5be58e22174f46
MD5 29c380b9b2504ad17c3d3e32f34c9761
BLAKE2b-256 f610b3171f9c63cf4c560e589a59670295f36db0be6b4bcb55e2ea0ac62481a4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page