Pythonic包装器,用于 Contacts、Contact Lists 和 Contact Properties API 中的 HubSpot API 方法
项目描述
通过 HubSpot API 管理联系人的 Python 库
hubspot-contacts 是一个高级的 Pythonic 包装器,用于 HubSpot API 中的 Contacts、Contact Lists 和 Contact Properties API 方法。
以下是它的使用示例
>>> from hubspot.connection import APIKey, PortalConnection >>> from hubspot.contacts import Contact >>> from hubspot.contacts.lists import get_all_contacts >>> >>> authentication_key = APIKey("your key") >>> >>> with PortalConnection(authentication_key, "Your App Name") as connection: ... for contact in get_all_contacts(connection): ... print contact ... Contact(vid=1, email_address=u'foo@example.com', properties={u'lastname': u'Smith', u'company': u'ACME Ltd.', u'firstname': u'John', u'lastmodifieddate': datetime.datetime(2014, 5, 30, 15, 32, 7, 192000)}, related_contact_vids=[]) Contact(vid=2, email_address=u'bar@example.com', properties={u'lastname': u'Doe', u'company': u'Example Inc.', u'firstname': u'Alice', u'lastmodifieddate': datetime.datetime(2014, 5, 29, 15, 37, 52, 447000)}, related_contact_vids=[])
本项目正式支持在Python 2.7下运行,但可能与Python 2.6和Python 3兼容。
hubspot-contacts依赖于hubspot-connection,这是一个独立的库,用于抽象与HubSpot的低级通信,并负责身份验证等工作。
变更日志
版本1.0最终版(2014-11-20)
在验证联系人列表模式(身份配置文件)时放宽了约束
版本1.0发布候选版2(2014-06-27)
提高了对hubspot-connection的版本要求
将“booleancheckbox”设为布尔属性的后备小部件
版本1.0发布候选版1(2014-06-27)
初始发布。
项目详情
下载文件
下载适合您平台的文件。如果您不确定选择哪个,请了解有关安装包的更多信息。
源分布
hubspot-contacts-1.1.1.tar.gz (20.5 kB 查看哈希)
构建分布
hubspot_contacts-1.1.1-py2.7.egg (61.4 kB 查看哈希)
关闭
hubspot-contacts-1.1.1.tar.gz的哈希
算法 | 哈希摘要 | |
---|---|---|
SHA256 | 59221e862a3e749292435856a5ca63ac0a476af9cc1445e28d20b96060355689 |
|
MD5 | a6c2aab724f46085600302397fbf32d9 |
|
BLAKE2b-256 | 34117db9f21c68a90616415f2588ef1a88788cb777e78e26d747e54ec523c8c6 |
关闭
hubspot_contacts-1.1.1-py2.7.egg的哈希
算法 | 哈希摘要 | |
---|---|---|
SHA256 | af0af099b9f41b1c70260afd93283f2d76bd17a45e31b05a73e363a7adec3844 |
|
MD5 | c3ad56cc1e0159ef06345aca69c45462 |
|
BLAKE2b-256 | 35191dc8379dc489bbf42839c91302611f53f97ff9a23099687b62acf60c0102 |