用python编写的敏捷crm的api包装器
agilecrm-python的Python项目详细描述
#agile crm python
agilecrm是一个用python编写的敏捷crm的api包装器
“域”)
```
},
{
“type”:“system”,
“name”:“姓氏”,
“value”:“bruikheilmer”
},
{
“type”:“system”,
“name”:“company”,
“value”:“staid.inc”
},
“type”:“system”,
“name”:“title”,
“value”:“副总裁sales”
},
{
“type”:“system”,
“name”:“email”,
“subtype”:“work”,
“value”:“akrambakram@yabba.com”
},
{
“type”:“system”,
“name”:“address”,
“value”:“{\”address\“:\”225 george street\“,\”city\“:\”nsw\“,\”state\“:\”sydney\“,\”zip\“:\”2000\“,\”country\“:\”australia\“}”
,
{
“type”:“custom”,
“name”:“my custom field”,
“value”:“custom value”
}
]
}
````
get contact by id
````
response=client.get_contact_by_id('5685265389584384')
```
get contact by email
``
``>response=client.通过电子邮件('akrambakram@yabba.com')
```
update contact
```
update\u contact\u data={
“id”:“5685265389584384”,
“properties”:[
{
“type”:“system”,
“name”:“last\u name”,
“value”:“chan”
},
“type”:“custom”,
“name”:“my custom field”,
“value”:“custom value chane”
}
]
}
}
response=client.update_contact(update_contact_data)
``````
search contacts
````
import json
myjson={
“rules”:[{“lhs”:“created_time”,“condition”:“between”,“rhs”:1510152185.779954,“rhs_new”:1510238585.779877}),
“contact_type”:“person”}
response=client.search(
{页面大小:25,
“全局排序键”:'-创建时间',
“filterjson”:json.dumps(myjson)
}
````
```
agilecrm是一个用python编写的敏捷crm的api包装器
“域”)
```
},
{
“type”:“system”,
“name”:“姓氏”,
“value”:“bruikheilmer”
},
{
“type”:“system”,
“name”:“company”,
“value”:“staid.inc”
},
“type”:“system”,
“name”:“title”,
“value”:“副总裁sales”
},
{
“type”:“system”,
“name”:“email”,
“subtype”:“work”,
“value”:“akrambakram@yabba.com”
},
{
“type”:“system”,
“name”:“address”,
“value”:“{\”address\“:\”225 george street\“,\”city\“:\”nsw\“,\”state\“:\”sydney\“,\”zip\“:\”2000\“,\”country\“:\”australia\“}”
,
{
“type”:“custom”,
“name”:“my custom field”,
“value”:“custom value”
}
]
}
get contact by id
````
response=client.get_contact_by_id('5685265389584384')
```
get contact by email
``
``>response=client.通过电子邮件('akrambakram@yabba.com')
```
update contact
```
update\u contact\u data={
“id”:“5685265389584384”,
“properties”:[
{
“type”:“system”,
“name”:“last\u name”,
“value”:“chan”
},
“type”:“custom”,
“name”:“my custom field”,
“value”:“custom value chane”
}
]
}
}
response=client.update_contact(update_contact_data)
``````
search contacts
````
import json
myjson={
“rules”:[{“lhs”:“created_time”,“condition”:“between”,“rhs”:1510152185.779954,“rhs_new”:1510238585.779877}),
“contact_type”:“person”}
response=client.search(
{页面大小:25,
“全局排序键”:'-创建时间',
“filterjson”:json.dumps(myjson)
}
````
```