Skip to main content

Unofficial Autumna API Client for Python.

Project description

Unofficial Autumna Python API client

Unofficial Autumna.co.uk API Client for Python.

Installation

pip install autumna

Requirements

  • Python 3.7+

Usage

import datetime

from autumna.client import APIClient
from autumna.constants import Category
from autumna.resources.lead import Lead

api_client = APIClient('MY_API_KEY')

leads = Lead.many(
    api_client,
    date_from=datetime.date(2022, 1, 1),
    date_to=datetime.date(2022, 4, 1),
    is_anonymised=False,
    category_id=Category.CONTACT_FORM_MESSAGE,
    service_id=28058
)

for lead in leads:
    print(lead)

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

Autumna-0.1.2.tar.gz (5.0 kB view hashes)

Uploaded Source

Supported by

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