ActiveCampaign / activecampaign-api-php

MIT License
115 stars 76 forks source link

No support for tasks #105

Open timkant opened 5 years ago

timkant commented 5 years ago

When can we expect support for tasks in the SDK?

johnreed commented 5 years ago

What's the status on support for tasks related to contacts?

When trying to add a task with ownerType = contact I keep getting the following error:

The task deal id was not provided.

Not sure why the API is requiring a deal id (when relid is referencing a contact, not a deal)?

johnreed commented 5 years ago

Confirmed that the endpoint is working via curl:

curl \
  -d '{"dealTask":{"title":null,"ownerType":"contact","relid":"7","status":0,"note":"Testing Task","duedate":"2017-02-25T12:00:00-06:00","edate":"2017-02-25T12:15:00-06:00","dealTasktype":"1","assignee":2}}' \
  -H "Api-Token: YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -X POST https://youraccountname.api-us1.com/api/3/dealTasks/

Would be nice if this functionality could be incorporated into class AC_Contact