lib/leadsquared/lead.rb in leadsquared-0.2.0 vs lib/leadsquared/lead.rb in leadsquared-0.3.0
- old
+ new
@@ -33,10 +33,10 @@
url = url_with_service("Leads.GetByQuickSearch")
response = connection.get(url, {key: key})
handle_response response
end
- def create_lead(email = nil, first_name = nil, last_name = nil)
+ def create_lead(email, first_name = nil, last_name = nil)
url = url_with_service("Lead.Create")
body = [
{
"Attribute": "EmailAddress",
"Value": email