Metadata-Version: 2.4
Name: iopole-api
Version: 0.1.1
Summary: Connector for Iopole API
Author-email: CNFilms <technique@cinego.net>
Keywords: iopole,factur-x
Requires-Python: >=3.9
Description-Content-Type: text/markdown
Requires-Dist: requests>=2.25

[![uv](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/uv/main/assets/badge/v0.json)](https://github.com/astral-sh/uv)
[![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)
[![Checked with mypy](https://www.mypy-lang.org/static/mypy_badge.svg)](https://mypy-lang.org/)
[![pypi](https://img.shields.io/pypi/v/iopole-api.svg)](https://pypi.org/project/iopole-api/)

![img](https://www.iopole.com/assets/logo.svg)

# iopole-api

### How to use 🔧
    
    from iopoleapi.client import IopoleAPI
    
    api = IopoleAPI(client_id='YOUR_CLIENT_ID',
                    client_secret='YOUR_CLIENT_SECRET',
                    base_url='IOPOLE_BASE_URL',
                    auth_url='IOPOLE_AUTH_URL')
    api.auth()

    # Send invoices
    invoice_id = api.send_invoice('path/to/invoice.pdf')

    # Get invoices original file
    invoice = api.get_invoice(valid_invoice_id)

    # Get invoice metadata
    metadata = api.get_invoice_metadata(valid_invoice_id)

    # Get Iopole enrollment link
    url = api.get_enrollment_link(company_siren)
