Skip to main content

Salesmanago Tools is a project designed to simplify working with the Salesmanago API. It provides a set of utilities and pre-built queries for seamless integration with the platform, enabling quick and efficient execution of tasks such as contact management, event tracking, marketing automation, and data analytics

Project description

salesmanago-tools

Python Class for SalesManago integration.

Installation

pip install salesmanago-tools

Third Party Libraries and Dependencies

The following libraries will be installed when you install the client library:

  • requests
  • aiohttp
  • pandas

Class

Start with import from salesmanago_tools.utils import SalesmanagoDataClient

Initialization

salesmanago_client = SalesmanagoDataClient(
    clientId="YOUR CLIENT_ID",
    apiKey="YOUR API_KEY",
    sha="YOUR OWNER_EMAIL",
    owner="YOUR SHA",
    account_name="YOUR ACCOUNT_NAME"
)

Export data with example

  • Initiates the export process for specific data and returns the data as a CSV generator.
  • param value: The value associated with the export, such as an email or tag.
  • param addresseeType: The type of recipient (default is "tag").
  • return: A CSV generator containing the exported data.
async def export_data():
    contacts = await salesmanago_client.export_data(value="TEST_TAG", addresseeType="tag")
    return contacts


asyncio.run(export_data())

This function will make a request to export contacts by tag TEST_TAG

Fetch all contacts from salesmanago

  • Fetches all contacts from SalesManago and returns them as a list.
  • param page_size: The number of contacts to retrieve per request (default is 1000).
  • param page: The page number to fetch (default is 1).
  • return: A list of contacts, with each contact formatted as a list of details.
async def fetch_all_contacts_from_salesmanago():
    contacts = await salesmanago_client.fetch_all_contacts_from_salesmanago()
    return contacts


asyncio.run(fetch_all_contacts_from_salesmanago())

This function will make a request to export all contacts without any filters

Push people to salesmanago

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

salesmanago-tools-0.1.4.tar.gz (9.0 kB view details)

Uploaded Source

Built Distribution

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

salesmanago_tools-0.1.4-py3-none-any.whl (9.9 kB view details)

Uploaded Python 3

File details

Details for the file salesmanago-tools-0.1.4.tar.gz.

File metadata

  • Download URL: salesmanago-tools-0.1.4.tar.gz
  • Upload date:
  • Size: 9.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.11.6

File hashes

Hashes for salesmanago-tools-0.1.4.tar.gz
Algorithm Hash digest
SHA256 dc52e2b270aa87bdd33eff715b597d954e6aa529ad4a352fa6df615130e353b0
MD5 4561d6529e5036c789612a00565c18b7
BLAKE2b-256 7f92c256d8bbbc931e8d0c97bce401691406d636006a9179b77c29c02f67d700

See more details on using hashes here.

File details

Details for the file salesmanago_tools-0.1.4-py3-none-any.whl.

File metadata

File hashes

Hashes for salesmanago_tools-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 dc8d069e83952c1e8d946c6b7d5683880f7b3339b571ae6cb38a4c4e59e71962
MD5 7d8ab34936a0e0deb4ffb59ae505a451
BLAKE2b-256 e783acfa29d6343b8f09b2542b275de2c4e247d2de621eb1a897d764aaffa3e3

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