Skip to main content

Drip Drop API

Project description

dripdrop-python

API for integrations with Drip Drop.Authenticate by passing your API key in the X-API-Key header.

This Python package is automatically generated by the OpenAPI Generator project:

  • API version: 1.0.0
  • Package version: 0.1.0
  • Generator version: 7.20.0
  • Build package: org.openapitools.codegen.languages.PythonClientCodegen

Requirements.

Python 3.9+

Installation & Usage

pip install

If the python package is hosted on a repository, you can install directly using:

pip install git+https://github.com/layline-dev/dripdrop-python.git

(you may need to run pip with root permission: sudo pip install git+https://github.com/layline-dev/dripdrop-python.git)

Then import the package:

import dripdrop

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 dripdrop

Tests

Execute pytest to run the tests.

Getting Started

Please follow the installation procedure and then run the following:

import dripdrop
from dripdrop.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to https://api.dripdrop.dev
# See configuration.py for a list of all supported configuration parameters.
configuration = dripdrop.Configuration(
    host = "https://api.dripdrop.dev"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure API key authorization: ApiKeyAuth
configuration.api_key['ApiKeyAuth'] = os.environ["API_KEY"]

# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['ApiKeyAuth'] = 'Bearer'


# Enter a context with an instance of the API client
with dripdrop.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = dripdrop.ContactsApi(api_client)
    contact = dripdrop.Contact() # Contact | 

    try:
        # Create a contact
        api_response = api_instance.create(contact)
        print("The response of ContactsApi->create:\n")
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling ContactsApi->create: %s\n" % e)

Documentation for API Endpoints

All URIs are relative to https://api.dripdrop.dev

Class Method HTTP request Description
ContactsApi create POST /v1/contacts/ Create a contact
ContactsApi destroy DELETE /v1/contacts/{uuid}/ Delete a contact
ContactsApi list GET /v1/contacts/ List contacts
ContactsApi partial_update PATCH /v1/contacts/{uuid}/ Patch a contact
ContactsApi retrieve GET /v1/contacts/{uuid}/ Get a contact
ContactsApi update PUT /v1/contacts/{uuid}/ Update a contact
CustomFieldsApi create POST /v1/custom-fields/ Create a custom field definition
CustomFieldsApi destroy DELETE /v1/custom-fields/{uuid}/ Delete a custom field definition
CustomFieldsApi list GET /v1/custom-fields/ List custom field definitions
CustomFieldsApi partial_update PATCH /v1/custom-fields/{uuid}/ Patch a custom field definition
CustomFieldsApi retrieve GET /v1/custom-fields/{uuid}/ Get a custom field definition
CustomFieldsApi update PUT /v1/custom-fields/{uuid}/ Update a custom field definition
EnrollmentsApi create POST /v1/enrollments/ Enroll a contact
EnrollmentsApi destroy DELETE /v1/enrollments/{uuid}/ Unenroll a contact
EnrollmentsApi list GET /v1/enrollments/ List enrollments
FlowsApi create_contact_and_enroll_create POST /v1/flows/{uuid}/create-contact-and-enroll/ Create contact and enroll in flow
FlowsApi list GET /v1/flows/ List flows
FlowsApi retrieve GET /v1/flows/{uuid}/ Get a flow
SchemaApi retrieve GET /schema/

Documentation For Models

Documentation For Authorization

Authentication schemes defined for the API:

ApiKeyAuth

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

Author

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

dripdrop-0.1.0.tar.gz (40.3 kB view details)

Uploaded Source

Built Distribution

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

dripdrop-0.1.0-py3-none-any.whl (63.6 kB view details)

Uploaded Python 3

File details

Details for the file dripdrop-0.1.0.tar.gz.

File metadata

  • Download URL: dripdrop-0.1.0.tar.gz
  • Upload date:
  • Size: 40.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for dripdrop-0.1.0.tar.gz
Algorithm Hash digest
SHA256 9a1403c48398691daf6adedd4b67134d5b5daf94694828ee85502c5d1028cd25
MD5 b04d353b67a20b33f3dc2e2959cb674b
BLAKE2b-256 451603c1db0f87485c50f03585890ac105a637da1fc55de944132ab6a3cf522e

See more details on using hashes here.

Provenance

The following attestation bundles were made for dripdrop-0.1.0.tar.gz:

Publisher: publish.yml on layline-dev/dripdrop-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file dripdrop-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: dripdrop-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 63.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for dripdrop-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6643f379cc7f1a852c432fb2fb9b02d2150440c62962b5f3f1a7cdc24f3dc420
MD5 3b9e43dc30fda77de47616f9024815ca
BLAKE2b-256 3cd45fed7b5c83096e8027dbad1fb6ba7382f82021176c25de237bd24c7d0e33

See more details on using hashes here.

Provenance

The following attestation bundles were made for dripdrop-0.1.0-py3-none-any.whl:

Publisher: publish.yml on layline-dev/dripdrop-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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