Clientify
A python wrapper for clientify
Requirements
- Requests
Installation
pip install git+https://github.com/ingmferrer/clientify-python.git
Usage
Authentication
There are two ways to authenticate to Clientify
- Get the API Token from dashboard
from clientify.client import ClientifyClient
client = ClientifyClient(token='<API_TOKEN>')
- Log-in with username and password
from clientify.client import ClientifyClient
client = ClientifyClient()
response = client.authenticate(username='<EMAIL>', password='<PASSWORD>')
assert response == True
Contacts
List contacts
response = client.contacts.list_contacts()
Create a contact
data = {
'first_name': 'Jasper',
'last_name': 'Barry',
'email': 'tbefaqoja@mailinator.net',
'phone': '+1 (618) 353-6458',
'status': 'Voluptates facilis u',
'title': 'Mrs.',
'company': 'Henderson Gomez LLC',
'contact_type': '',
'contact_source': '',
'addresses': [
{
'street': 'camino de la coquina, 23',
'city': 'Lugo',
'state': 'Galicia',
'country': 'Spain',
'postal_code': '34',
'type': 1
}
],
'custom_fields': [],
'description': 'Sunt vitae consequun',
'remarks': 'Consequatur aliquid',
'summary': 'Voluptas dolorem com',
'message': 'Nobis aliquip quia c',
're_property_name': 'Hakeem Hicks',
'last_contact': None
}
response = client.contacts.create_contact(data)
Contact Details
response = client.contacts.contact_details('<CONTACT_ID>')
Edit Contact Details
data = {
'first_name': 'Paco',
'last_name': 'Mario'
}
response = client.contacts.edit_contact_details('<CONTACT_ID>', data)
Delete Contact
response = client.contacts.delete_contact('<CONTACT_ID>')
Deals
List deal pipelines
response = client.deals.list_deal_pipelines()
Get deal pipeline details
response = client.deals.get_deal_pipeline_details('<PIPELINE_ID>')
List deal pipeline stages
response = client.deals.list_deal_pipeline_stages()
Get deal pipeline stage details
response = client.deals.get_deal_pipeline_stage_details('<STAGE_ID>')
List deals
response = client.deals.list_deals()
Create deal
data = {
"name":"Nuevo deal con pipeline desc y pipeline stage, fecha y custom fields",
"amount":"11.33",
"contact":"https://api.clientify.net/v1/contacts/integer/",
"company":"https://api.clientify.net/v1/companies/integer/",
"pipeline_desc": "nuevo",
"pipeline_stage_desc": "ultima",
"expected_closed_date": "2019-11-30",
"custom_fields": [{"field": "quaderno_id","value": "cdn_1133"}]
}
response = client.deals.create_deal(data)
Update deal details
data = {
"pipeline_stage": "https://api.clientify.net/v1/deals/pipelines/stages/integer/"
}
response = client.deals.update_deal_details(data)
Delete deal
response = client.deals.delete_deal('<DEAL_ID>')
Metadata
Release files for clientify-python 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| clientify_python-1.0.1.tar.gz | 3.6 kB | Without provenance | Details for clientify_python-1.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| clientify_python-1.0.1-py3-none-any.whl | Python 3 | none | any | Details for clientify_python-1.0.1-py3-none-any.whl |
Total release size: 8.9 kB
Release files / clientify_python-1.0.1.tar.gz
| Download URL | clientify_python-1.0.1.tar.gz |
|---|---|
| Size | 3.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
601dbcde3ad1c80c753c795db03df24ad34a0522cda8ed7127e28f77df6f4fdf
|
|
BLAKE2b-256 checksum How to use checksums |
13e7d9c9906011b6c8ebb27d7d5578b2dc53de24552a43d650393a6c5b9d5a5e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.8.10
|
Release files / clientify_python-1.0.1-py3-none-any.whl
| Download URL | clientify_python-1.0.1-py3-none-any.whl |
|---|---|
| Size | 5.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e17f554059fddefef4cab0ec651ada7c4da8adb0c02e24ea6bbc7fd015fa5b12
|
|
BLAKE2b-256 checksum How to use checksums |
cd04ccd3032e90cecca423465e710f213cebc43c976d2e35bfba3a48efce4355
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.8.10
|
Security for clientify-python 1.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.