Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import sugarcrm
- # Connect
- url = "http://localhost:8080/service/v4/rest.php"
- username = 'admin'
- password = 'admin'
- session = sugarcrm.Session(url, username, password)
- # Create a lead
- lead = sugarcrm.Lead(first_name="Tester",
- last_name="Test",
- email1="tester@test.com",
- description="Submit",
- do_not_call=True)
- session.set_entry(lead)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement