Skip to main content

An integration for the Acumbamail service with Plone

Project description

collective.volto.acumbamail

Latest Version Supported - Python Versions Number of PyPI downloads License

Acumbamail

An integration for the Acumbamail service with Plone.

Features

  • Control panel in Plone registry to manage Acumbamail settings.
  • RestApi endpoint that exposes these settings for Volto.
  • Add a new subscriber to the Acumbamail list.

Screenshot

Add-on Configuration Access

Add-on Configuration

Acumbamail Settings control panel

Acumbamail Settings

Volto integration

To use this product in Volto, your Volto project needs to include a new add-on: https://github.com/collective/volto-acumbamail

Translations

This product has been translated into

  • Basque

  • Catalan

  • English

  • Galician

  • Spanish

Compatibility

  • Tested with Python 3.12 and Plone 6.1.5.

Installation

Install collective.volto.acumbamail with pip:

pip install collective.volto.acumbamail

And to create the Plone site:

make create-site

Custom REST services

@acumbamail-settings route

Anonymous users can't access registry resources by default with plone.restapi (there is a special permission).

To avoid enabling registry access to everyone, this package exposes a dedicated RestApi route with Acumbamail settings: @acumbamail-settings:

Get the information from the Acumbamail settings via curl command:

curl -X GET http://localhost:8080/Plone/@controlpanels/acumbamail-settings \
  -H "Accept: application/json" \
  --user admin:admin

This route returns a JSON object containing the Acumbamail settings and data via curl command:

{
  "@id": "http://localhost:8080/Plone/@controlpanels/acumbamail-settings",
  "data": {
    "api_key": null,
    "api_url": null,
    "list_id": null
  },
  "group": "Add-on Configuration",
  "schema": {
    "fieldsets": [
      {
        "behavior": "plone",
        "description": "",
        "fields": [
          "api_url",
          "api_key",
          "list_id"
        ],
        "id": "general",
        "title": "General settings"
      }
    ],
    "properties": {
      "api_key": {
        "description": "Your Acumbamail personal token (https://acumbamail.com/api/)",
        "factory": "Text line (String)",
        "title": "API Key",
        "type": "string"
      },
      "api_url": {
        "description": "The URL of the Acumbamail API endpoint.",
        "factory": "Text line (String)",
        "title": "API URL",
        "type": "string"
      },
      "list_id": {
        "description": "Numeric identifier of the list where subscribers will be added.",
        "factory": "Text line (String)",
        "title": "List ID",
        "type": "string"
      }
    },
    "required": [
      "api_url",
      "api_key",
      "list_id"
    ],
    "type": "object"
  },
  "title": "Acumbamail Settings"
}

Below is a PATCH operation to set up the api_url, api_key and list_id fields values of the Acumbamail settings:

curl -i -X PATCH http://localhost:8080/Plone/@controlpanels/acumbamail-settings \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  --data '{"api_url": "https://acumbamail.com/api/1/addSubscriber", "api_key": "204615m3a78w2fgt3t1nm34567890123", "list_id": "4702726"}' \
  --user admin:admin

This route returns a HTTP response:

HTTP/1.1 204 No Content
Connection: close
Date: Sat, 25 Jul 2026 10:00:18 GMT
Server: waitress
Via: waitress
X-Powered-By: Zope (www.zope.dev), Python (www.python.org)

That means you were updated the values in the Acumbamail settings control panel fields correctly!

NOTE: You can validate the update operation, going to Site setup > Add-on settings > Acumbamail settings.


@acumbamail-subscribe route

Anonymous users can't access registry resources by default with plone.restapi (there is a special permission).

To avoid enabling registry access to everyone, this package exposes a dedicated RestApi route called @acumbamail-subscribe, below is a POST operation to add a new subscriber to the mailing list:

curl -i -X POST http://localhost:8080/Plone/@acumbamail-subscribe \
  -H "Accept: application/json" \
  -H "Accept-Language: es" \
  --data '{"email": "user@example.com"}' \
  --user admin:admin

This route can be used in for a Volto integration form componet.

NOTE: You can validate the add operation, going to your Acumbamail Dashboard account.

General resources

This part of the documentation contains reference material, including APIs, configuration values, and environment variables.

The Official API Acumbamail

The Acumbamail endpoints that using:

Contribute

Prerequisites ✅

Installation 🔧

  1. Clone this repository, then change your working directory.

    git clone git@github.com:collective/collective.volto.acumbamail.git
    cd collective.volto.acumbamail
    
  2. Install this code base.

    make install
    

Add features using plonecli or bobtemplates.plone

This package provides markers as strings (<!-- extra stuff goes here -->) that are compatible with plonecli and bobtemplates.plone. These markers act as hooks to add all kinds of subtemplates, including behaviors, control panels, upgrade steps, or other subtemplates from plonecli.

To run plonecli with configuration to target this package, run the following command.

make add <template_name>

For example, you can add a content type to your package with the following command.

make add content_type

You can add a behavior with the following command.

make add behavior

See also:

You can check the list of available subtemplates in the bobtemplates.plone README.md file. See also the documentation of Mockup and Patternslib for how to build the UI toolkit for Classic UI.

Credits

Developed with the support of:

Acknowledgements 🙏

Generated using Cookieplone (0.9.10) and cookieplone-templates (eb40854) on 2025-11-06 19:48:38.313942. A special thanks to all contributors and supporters!

Authors

This product was developed by Leonardo J. Caballero G. [leonardocaballero@gmail.com].

Leonardo J. Caballero G.

Contributors

You can see a list of contributors in the CONTRIBUTORS.md file.

License

The project is licensed under GPLv2.

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

collective_volto_acumbamail-1.0.0.tar.gz (172.3 kB view details)

Uploaded Source

Built Distribution

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

collective_volto_acumbamail-1.0.0-py3-none-any.whl (39.6 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for collective_volto_acumbamail-1.0.0.tar.gz
Algorithm Hash digest
SHA256 f9be6644944714a0cff4393c9a23e504cc1d0b27ccedb6870dd122556b60aa59
MD5 4078b72e2245d1dd5d4faa6ea0d7c019
BLAKE2b-256 8c529bf51ad5540aea62d003f4b1c33d1bedf149f37b32c186c7fe2bde0a7cad

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for collective_volto_acumbamail-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a9c3b3a637734b89a4f5e7d1d8d18dee4f71931b9f77aac3cc748879b47a249c
MD5 5175a5f7c8d1fb5d5a41d2cd1f8f4f52
BLAKE2b-256 e4102b72804a6153f6bdeef2bc6bc6e8631df2ad7ed870183ea31594e09cdb5f

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