Wait, wasn't the REST API announced a long time ago? https://developer.infusionsoft.com/2015/11/30/say-hello-to-our-new-rest-api/
When I hit v1/contacts/ I get a list of contacts which is great but when should we expect to have other capabilities? I'm struggling to tie in my SaaS platform which is based on RoR (yes, you can all laugh) where everything is REST. Moving back to XML seems like a learning curve I'd rather not climb again. Using a REST client, I've been able to query based on known bits like emails, names, companies, etc. When I try to POST to create a contact, I am mocked.
So then I try to use the posted documentation on creating a Task. That should work, right? According to the documentation I just have to send over a json and, viola, a new task should appear, yes?
Well, this the response I get...
HTTP/1.1 401 Unauthorized
Server: Mashery Proxy
Date: Sat, 08 Apr 2017 05:23:21 GMT
Www-Authenticate: Bearer realm="api.infusionsoft.com"
X-Error-Detail-Header: Account Inactive
And the response body includes this payload.
I've check Mashery, it all looks fine there.
So what is the right way to post a new object to the rest API?