本文整理汇总了Python中mixpanel.Mixpanel.people_append方法的典型用法代码示例。如果您正苦于以下问题:Python Mixpanel.people_append方法的具体用法?Python Mixpanel.people_append怎么用?Python Mixpanel.people_append使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类mixpanel.Mixpanel
的用法示例。
在下文中一共展示了Mixpanel.people_append方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: Mixpanel
# 需要导入模块: from mixpanel import Mixpanel [as 别名]
# 或者: from mixpanel.Mixpanel import people_append [as 别名]
mp = Mixpanel(ae91c3869706778b25a08e6f504ab1bd)
# create or update a profile with First Name, Last Name,
# E-Mail Address, Phone Number, and Favorite Color
mp.people_set('johndoe', {
'$first_name' : 'John',
'$last_name' : 'Doe',
'$email' : '[email protected]',
'$phone' : '5555555555',
'Company' : 'Mylo Real Estate',
'RERA' : '49231',
'Subscription Plan' : 'Free'
})
mp.people_append('johndoe', {
'Last Logged in' : 'Today'
})
# You can also include properties to describe
# the circumstances of the event
mp.track(johndoe, 'Subscription Plan', {
'Old Plan': 'Free',
'New Plan': 'Enterprise'
})
# Your Account Sid and Auth Token from twilio.com/user/account
account_sid = "ACa92624250d881722233fe9bbd4e53d86"
auth_token = "80e8a7bdd20cbc681fc7438006372565"
client = TwilioRestClient(account_sid, auth_token)
message = client.messages.create(body="Welcome to Mecenato!",