API wrapper for Clientify written in Python
Project description
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>')
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file clientify_python-1.0.1.tar.gz.
File metadata
- Download URL: clientify_python-1.0.1.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
601dbcde3ad1c80c753c795db03df24ad34a0522cda8ed7127e28f77df6f4fdf
|
|
| MD5 |
fbf2f7e862f0b5e48d7cfe7a2f2f2180
|
|
| BLAKE2b-256 |
13e7d9c9906011b6c8ebb27d7d5578b2dc53de24552a43d650393a6c5b9d5a5e
|
File details
Details for the file clientify_python-1.0.1-py3-none-any.whl.
File metadata
- Download URL: clientify_python-1.0.1-py3-none-any.whl
- Upload date:
- Size: 5.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e17f554059fddefef4cab0ec651ada7c4da8adb0c02e24ea6bbc7fd015fa5b12
|
|
| MD5 |
95fc458a6805e3499f395dcd75bc8ceb
|
|
| BLAKE2b-256 |
cd04ccd3032e90cecca423465e710f213cebc43c976d2e35bfba3a48efce4355
|