marketo-rest-api
marketo-rest-api copied to clipboard
Provides getErrors() method for Response class, so you can work with array of errors form response.
I's great to have array or errors, so you can parse errors messages and perform additional actions. As example: you pass some non-existing (in some cases) custom fields in getLeadByFilterType request, marketo will returns 2 errors. You can parse them, delete from request and try again, but you need array of error messages to get incorrect field names.