$ pip3 install yaoguang-python-client
$ python3
>>> from yaoguang.lead import Leads
>>> leads = Leads('bj2-storm03')
>>> lead = leads.get('******7896')
>>> printf(lead.ls()) # inspect fields
>>> lead # repr as pretty json
{
"bj_user_recycle_order_accrual_90": 10.0,
"contact_id": "******7896",
"tm_ad_num_max_sum_180_category": "ershouzixingche",
"tm_ad_num_max_sum_180_city": "571",
"tm_ad_num_max_sum_180_top_category": "cheliang",
"tm_ad_num_sum_180": 1,
"tm_user_account_balance": 0.0,
"tm_user_create_time": 1416758400,
"tm_user_last_login_time": 1467289872,
"tm_user_last_recharge_time": 1464969600,
"tm_user_recharge_amount_sum_360": 10.0
}
>>> lead['company']['latest_ads']['ad_id_xxx'] # chain access
TaskForceX/yaoguang-python-client
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Packages 0
No packages published