Please see here for details of required parameters
client = ::Pipedrive::Activity.new
params = {
due_date: date,
due_time: "12:00",
duration: "1:15",
deal_id: 120,
note: "<p>Testing activity, not visible to guests added to the calender</p>",
subject: "Activity subject",
public_description: "<p>Testing public description, visible to guests added to the calender</p>",
attendees: [{"email_address":"[email protected]"}]
}
client.create(params)
- This will create an activity on the deal with id 120 and default type call.