Skip to main content

Prosperworks Api

A python based api wrapper for Prosperworks. Build Status

Installation

From pip (recommended): pip install prosperworks

From source: pip install git+git://github.com:tizz98/prosperworks-api.git@master

Models

prosperworks.models.Company

Fields

  • id

  • name

  • address (prosperworks.models.Address)

  • assignee_id

  • contact_type_id

  • details

  • email_domain

  • phone_numbers (list of prosperworks.models.PhoneNumber)

  • socials (list of prosperworks.models.Social)

  • tags (list of strings)

  • websites (list of prosperworks.models.Website)

  • date_created

  • date_modified

  • custom_fields (list of prosperworks.models.CustomField)

Methods

  • search (search for companies), available kwargs are:

  • page_number

  • page_size

  • sort_by

  • sort_direction

  • tags

  • age

  • assignee_ids

  • city

  • state

  • postal_code

  • country

  • minimum_interaction_count

  • maximum_interaction_count

  • minimum_interaction_date

  • maximum_interaction_date

  • minimum_created_date

  • maximum_created_date

  • minimum_modified_date

  • maximum_modified_date

  • create (create new company), available kwargs are:

  • name

  • address

  • assignee_id

  • contact_type_id

  • details

  • email_domain

  • phone_numbers[]

  • socials[]

  • tags

  • websites[]

  • date_created

  • date_modified

  • custom_fields[]

  • update (update current company), will use currently set values to update

  • delete (delete current company)

Examples:

from prosperworks import api
from prosperworks.models import Company

api.configure('key', 'your.name@example.com')
for company in Company.search():
    print company.name

new_co = Company.create(name='New Co.')
print new_co.id

new_co.name = 'New Co. (updated)'
new_co.update()

new_co.delete()

prosperworks.models.Lead

Fields

  • id

  • name

  • address (prosperworks.models.Address)

  • assignee_id

  • company_name

  • customer_source_id

  • details

  • email

  • monetary_value

  • phone_numbers (list of prosperworks.models.PhoneNumber)

  • socials (list of prosperworks.models.Social)

  • status

  • tags (list of strings)

  • websites (list of prosperworks.models.Website)

  • date_created

  • date_modified

  • custom_fields (list of prosperworks.models.CustomField)

Methods

  • search (search for companies), available kwargs are:

  • page_number

  • page_size

  • sort_by

  • sort_direction

  • tags

  • age

  • assignee_ids

  • city

  • state

  • postal_code

  • country

  • minimum_interaction_count

  • maximum_interaction_count

  • minimum_interaction_date

  • maximum_interaction_date

  • minimum_created_date

  • maximum_created_date

  • minimum_modified_date

  • maximum_modified_date

  • create (create new company), available kwargs are:

  • name

  • address

  • assignee_id

  • company_name

  • customer_source_id

  • details

  • email

  • monetary_value

  • phone_numbers[]

  • socials[]

  • status

  • tags

  • title

  • websites[]

  • date_created

  • date_modified

  • custom_fields[]

  • update (update current company), will use currently set values to update

  • delete (delete current company)

  • convert (convert a lead), available kwargs are (all optional):

  • person

  • company (prosperworks.models.Company)

  • opportunity

Examples:

from prosperworks import api
from prosperworks.models import Company, Lead

api.configure('key', 'your.name@example.com')

new_co = Company.create(name='New Co.')
print new_co.id

lead = Lead.create(name='John Doe')
lead.name = 'Jane Doe'
lead.update()
print lead.id

lead.convert(company=new_co)

Release files for prosperworks 0.1.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for prosperworks 0.1.6
File Size Uploaded
prosperworks-0.1.6.tar.gz 10.3 kB Details

Release files / prosperworks-0.1.6.tar.gz

Download URL prosperworks-0.1.6.tar.gz
Size 10.3 kB
Tags Source
SHA-256 checksum
How to use checksums
f77cef04388c2ee91f05f39596ee698639227eb33689385624393c839b77542a
BLAKE2b-256 checksum
How to use checksums
490bda45f7b5e4e4be9475daa307ff096e36e2e3813461b04339504a92b9d9c8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.1.6 This release

1 release file

0.1.5

1 release file

0.1.4

1 release file

0.1.3

1 release file

0.1.0

1 release file

0.0.3

1 release file

0.0.2

1 release file

0.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page