Get all contacts? - Solved

It looks like there is a way to get all your contacts via the REST API. Any way to do this with XMLPRC? Looking through the API docs I don’t see something like the GET request. Am developing an app that works in background and does some API calls every day. There is no user interaction, which is why the OAuth docs are throwing me.

Possibly trying to pull up a Saved Search using https://developer.infusionsoft.com/docs/xml-rpc/#search-retrieve-a-partial-report-from-a-saved-search, but I’m getting an error that:
Fault: <Fault 0: ‘No such handler: SearchService.getSavedSearchResults.repr
when I attempt a request.

The equivalent to GET /contacts in XML/RPC is https://developer.infusionsoft.com/docs/xml-rpc/#data-query-a-data-table

Even though you have a background process with no user interaction you will need to authorize yourself once to get the access token and refresh token. From there you can indefinitely refresh your access token without user interaction.

Thank you! This is exactly what I needed.

1 Like