daily pastebin goal
30%
SHARE
TWEET

Untitled

a guest Sep 13th, 2017 151 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. from freshsales import FreshsalesAnalytics
  2.  
  3. freshsales = FreshsalesAnalytics(DOMAIN, KEY)
  4.  
  5. new_lead = {
  6.     'First name': "John Doe",
  7.     'Email': "john@swapps.io",
  8.     'company': {
  9.         'Name': "Hey Inc"
  10.     },
  11.     'Message' : "Message",
  12.     'Work':"3102345678",
  13.     'Mobile':3102345678,
  14.     'deal': {
  15.         'Name' : "Website for Hey Inc",
  16.         'Value' : "100",
  17.     }
  18. }
  19. id_ran = "123231548848333"
  20.  
  21. freshsales.identify(id_ran, new_lead)
RAW Paste Data
Top