David Murphy
My feedback
3 results found
-
1 vote
An error occurred while saving the comment An error occurred while saving the comment David Murphy commentedUpdate: I tried using non-admin credentials for the contacts API call. However, the call just fails with HTTP 400. (whereas I would have thought it should be HTTP 403 if the issue is the call is not authorized)
An error occurred while saving the comment David Murphy commentedStill no response on this one. The credentials used for this API contacts call are admin credentials (so authentication is the documented User login + password approach). Is it possible to use non-admin credentials for an API call and if yes, will the API then comply with the contact's privacy settings and not send info such as phone and email which the contact has marked as private?
David Murphy shared this idea · -
1 voteDmitry Smirnov responded
There are 2 options:
1. If you need data immediately, then you may add a parameter $async=false to the initial query. With this flag API returns a list immediately. If your number of contacts is below 500 it is a reasonable option.
2 Another option is to do exactly what you do, but wait for several seconds between API calls.
No matter what option you prefer, I’d recommend using $select parameter to read only the fields you actually need. It will significantly improve performance.
Here is an example:
GET https://api.wildapricot.com/v2.2/Accounts/183112/Contacts/?$async=false&$select='First name’,‘Last name’,‘Renewal due’
An error occurred while saving the comment David Murphy commentedThanks, Dmitry - do you know if there is documentation somewhere that describes the states coming back from the WA API? Specifically how to handle each state. I never saw such doc but I assume it exists somewhere...
David Murphy shared this idea · -
1 voteDavid Murphy shared this idea ·
Alternatively - is there any API call the app can make to ascertain the contact's privacy settings and thereby use that information to avoid publicising contact info such as phone and email that the contact has marked private?