Skip to main content

Gsozo PKG

Project description

Grupo sozo Package

Set of python modules to implements or extend interfaces, like: extend pipedrive or mailchimp (third party module)

gsozo_pkg


gsozo_pkg is an API wrapper for Pipedrive written in Python.

Installing

pip install gsozo-pkg

Usage

Using this library with API Token

Client instantiation

from gsozo_pkg.pipedrive import Client

client = Client("CLIENT_ID", "CLIENT_TOKEN")

Activities

API docs: https://developers.pipedrive.com/docs/api/v1/Activities

Get all activity types

response = client.activities.get_activity_types()

Deals

API docs: https://developers.pipedrive.com/docs/api/v1/Deals
API docs: https://developers.pipedrive.com/docs/api/v1/DealFields

Get one deal field

response = client.deals.get_deal_one_field('FIELD_ID')

Update a deal field

data = {
    'id': ''
}
response = client.deals.update_deal_field('FIELD_ID', data)

Delete a participant from a deal

response = client.deals.delete_participant_to_deal_by_person_id('DEAL_ID', 'PERSON_ID')

Organizations

API docs: https://developers.pipedrive.com/docs/api/v1/Organizations

Add a follower to an organization

response = client.organizations.add_follower_to_organization('ORGANIZATION_ID', 'USER_ID')

Persons

API docs: https://developers.pipedrive.com/docs/api/v1/Persons

Get all persons

response = client.persons.get_all_persons('*ARGS', 'PAGINATION_ON' = TRUE)

List activities associated with a person

response = client.persons.get_person_activities('PERSON_ID')

List files attached to a person

response = client.persons.get_person_attaches('PERSON_ID')

List mail messages associated with a person

response = client.persons.get_person_emails('PERSON_ID')

List followers of a person

response = client.persons.get_person_followers('PERSON_ID', 'PAGINATION_ON' = TRUE)

Add a follower to a person

response = client.persons.add_follower_to_person('PERSON_ID', 'USER_ID')

Delete a follower from a person

response = client.persons.delete_follower_to_person('PERSON_ID', 'USER_ID')

Merge two persons

response = client.persons.merge_two_persons('PERSON_TO_KEEP', 'PERSON_TO_OVERWRITE')

PersonFields

API docs: https://developers.pipedrive.com/docs/api/v1/PersonFields

Get one person field

response = client.persons.get_person_one_field('FIELD_ID')

Update a person field

data = {
    'id': ''
}
response = client.persons.update_person_field('FIELD_ID', data)

For additional information or access to other endpoints within the same API structure, refer to the library used as a template for building this one pipedrive-python-lib.

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

gsozo_pkg-0.0.6.tar.gz (12.1 kB view details)

Uploaded Source

Built Distribution

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

gsozo_pkg-0.0.6-py3-none-any.whl (18.8 kB view details)

Uploaded Python 3

File details

Details for the file gsozo_pkg-0.0.6.tar.gz.

File metadata

  • Download URL: gsozo_pkg-0.0.6.tar.gz
  • Upload date:
  • Size: 12.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for gsozo_pkg-0.0.6.tar.gz
Algorithm Hash digest
SHA256 211a9dfbd26c9082ba0dde3d928ca39f3dcf5f64eb7ca1b27b5894830a75c207
MD5 7e79018e411c83e7807ff0eeeea62820
BLAKE2b-256 f05b0f3c14d38e3d46efb00ae11660bfc726a00b13910aa6c7925bfe5612137c

See more details on using hashes here.

File details

Details for the file gsozo_pkg-0.0.6-py3-none-any.whl.

File metadata

  • Download URL: gsozo_pkg-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 18.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for gsozo_pkg-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 fa8ed7484e1242f17202aeab802292cbb1089393f886c01d7e78015ab0c3bcd5
MD5 bb0d9058efa4fe065f6d4587ded61b41
BLAKE2b-256 b7bbc2724df5ac665678d8fb39a8e3e14bd21f00139fcc3cbfb1de772f9eda00

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