Class: Rdgem::People
- Inherits:
-
Object
- Object
- Rdgem::People
- Defined in:
- lib/rdgem/people.rb
Class Method Summary collapse
-
.send_lead(app_key, lead_to_person) ⇒ Object
pushes the lead to pipedrive.
Class Method Details
.send_lead(app_key, lead_to_person) ⇒ Object
pushes the lead to pipedrive
6 7 8 9 10 11 12 13 |
# File 'lib/rdgem/people.rb', line 6 def self.send_lead(app_key, lead_to_person) query = PIPEDRIVE_API + 'persons?' + TOKEN + app_key response = HTTParty.post(query, :body => lead_to_person, :headers => HEADERS) return response["success"] end |