Skip to main content

Linkbreakers API

Project description

linkbreakers

Official Python SDK for the Linkbreakers API.

PyPI version License: MIT

Installation

pip install linkbreakers

Usage

from linkbreakers import Configuration, ApiClient, LinksApi

# Configure API client
configuration = Configuration(
    api_key={'ApiKeyAuth': 'your_api_key_here'},
    host='https://api.linkbreakers.com'
)

# Create API client
with ApiClient(configuration) as api_client:
    links_api = LinksApi(api_client)

    # Create a shortened link
    link = links_api.create_link({
        'destination': 'https://example.com',
        'name': 'My Link'
    })

    print(f'Short link: {link.shortlink}')

Full API Support

The SDK provides type-safe methods for all API operations:

from linkbreakers import Configuration, ApiClient, LinksApi

configuration = Configuration(
    api_key={'ApiKeyAuth': 'your_api_key_here'},
    host='https://api.linkbreakers.com'
)

with ApiClient(configuration) as api_client:
    links_api = LinksApi(api_client)

    # Get a link by ID
    link = links_api.get_link(id='link-id')

    # Update a link
    updated = links_api.update_link(
        id='link-id',
        update_link_request={
            'name': 'Updated Name'
        }
    )

    # Delete a link
    links_api.delete_link(id='link-id')

    # List links with filtering
    links = links_api.list_links(
        page_size=50,
        search='my-search',
        tags=['tag1', 'tag2']
    )

Features

  • ✅ Full type hints and autocompletion support
  • ✅ Python 3.7+ support
  • ✅ Auto-generated from OpenAPI specification
  • ✅ Automatically updated when API changes

Documentation

For complete API documentation, visit https://docs.linkbreakers.com

Auto-Generated SDK

This SDK is automatically generated from the Linkbreakers OpenAPI specification. When the API is updated, this SDK is automatically regenerated and published.

Current API Version: See OPENAPI_VERSION

Support

License

MIT License - see LICENSE for details.

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

linkbreakers-1.0.0.tar.gz (122.5 kB view details)

Uploaded Source

Built Distribution

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

linkbreakers-1.0.0-py3-none-any.whl (377.0 kB view details)

Uploaded Python 3

File details

Details for the file linkbreakers-1.0.0.tar.gz.

File metadata

  • Download URL: linkbreakers-1.0.0.tar.gz
  • Upload date:
  • Size: 122.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for linkbreakers-1.0.0.tar.gz
Algorithm Hash digest
SHA256 6fb206b1a3841cb125a664e7907ce9f3b8e2bf44dd7ff0023d5b678519d60a20
MD5 74de2b1955bbd2eeb0b98329709a4ebe
BLAKE2b-256 98d15f66b4eaafb921d9a3240215dae07609ea5d36b20c5dcffa14765067323b

See more details on using hashes here.

File details

Details for the file linkbreakers-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: linkbreakers-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 377.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for linkbreakers-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2aea655d9d2b413b6414211ad4b88f3f4e3166608f34239c28931d59f4c72634
MD5 079f8406d126502da9a28673fea99dec
BLAKE2b-256 4b7fa9d7a43b2fcf4f0eb7e0aa5ce7fdf9d7565b1c25c2b00dd5c190bdf9d34e

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