Access to image fields through the API
Please add access to the image fields through the API - I would like to be able to get the URL of the image the member uploaded.
We added access to contact’s image fields via API in 5.9 release. Note that you can get it only in 2.1 version of API (https://api.wildapricot.org/v2.1/ instead of https://api.wildapricot.org/v2/ for version 2).
Retrieving contact fields: https://help.wildapricot.com/display/DOC/Contacts+API+V2+call
Uploading pictures: https://help.wildapricot.com/display/DOC/Pictures+API+V2+call
Alex Sirota commented
************'s issue is the same we are encountering while writing our wa4wp.newpath.consulting WordPress plugin. The Pictures API returns 200 as "Response is common HttpResponseMessage with content set to picture binary data."
The issue with this is that if the we want to use the picture as part of a an HTML page being rendered the binary data response cannot be easily embedded in the HTML stream. And if we use the base64 data if we have let's say 100 pictures results (or 1000) then the resulting HTML stream will be really large, much larger than it needs to be.
What we need is a new boolean parameters for the Pictures API call
URL to image will be returned
Default value : false
This way a URL is returned by the call with a direct path to the picture. The picture URL could even be a temporary image (rather than a permanent one). It's hard to say if the uploaded images are actually stored on disk or in a database. If they were on disk the URL most likely would be readily accessible but it sounds like they aren't so they'd have to be written temporarily to HTTP accessible storage for the purpose of the return of the API call.
@Mike, did you see API documentation here? https://app.swaggerhub.com/apis-docs/WildApricot/wild-apricot_public_api/2.1.0#/
Mike Lannen commented
I am still not seeing anything that clearly outlines how we can build a 3rd party website and pull in member photos via the API. Can someone enlighten me?
This feature is already implemented and will be available starting from the next major release (last decade of October).
Seriously, no access to photo field through API? I'm a web designer and developer. I recommend Wild Apricot to a client because it looked like the best membership management platform that allows the dev community access. But this squashes it for us. We need to display the directory with photo and the profile with photo in the client's unique and custom brand web design. Customer lost. Peace.
Does the retrieving information for all contacts API retrieve the contacts photo? Is that one of the FieldValues? If not is there an API call to retrieve a members photo? Thank you.
HOORAY! I cannot tell you how exciting this is for us. We are having to upload photos for every new member as they join in order to appear in our 3rd party scripting, and are missing updated photos when members change their user pic. Thank you for this.
Devra Polack commented
I notice a new API was just released with numerous changes (member pics not being one of them). Is this something that can now be added to the wish list for future API development?
Evgeny Zaritovskiy commented
Merged 2 similar topics together
Brenda Brooks commented
Can this please be added to the roadmap for a future api release?
Seems odd that every other piece of data can be retrieved except for images.
Since we can't seem to create a customized user profile with wildapricot - our workaround was to use the api to create it. But without the member photo - we have hit another roadblock.
Let me know where I need to post - so that this feature can be added to the roadmap OR a customized user profile feature.
Adding the field to the api seems like it would take much less work on WA's part - than creating an entire interface for customizing user profiles.
Currently picture fields are not accessible over API and there are no workaround.
Brenda Brooks commented
I also need to access the profile photo via the api.
Can someone at WA please point us in the right direction?
I exported my contacts as well, hoping to get some visibility as to where the profile photo data may be stored and don't see it there either.
Thanks so much!
Matt & Christie PENNING commented
Hi - I added a "Profile picture" field for members and I'd like to be able to get the URL of the profile picture via the API, but I don't see it in there anywhere (no "Profile picture" field comes back in the JSON).
What I'm trying to do is create a printed roster, which would ideally contain all of the profile pictures of course.
Any ideas or suggestions? Maybe I am just missing something in the API?
Devra Polack commented
Yes! We are encouraged to custom build alternative searches to integrate geolocation or other features, but with the new API, are unable to integrate member user pics dynamically in the results. This is actually a huge issue for us!