Forum Discussion
Hi Brian,
There is definitely a way to get blog teaser and image using API V2
Select * from messages where id ='1'
Just pass in the id for the blog and in the response you would see fields for Teaser and images.
As for updating the image size via an API call, unfortunately we do not support it yet. We only support updating the title and description of the image via API. May be a good candidate for our Idea Board ?
Hope this helps.
Regards,
Chhama
When doing an API call for messages with the label text "Events", I do see a field for teaser, but the value returned is one string:
"teaser" : "<P> <span class=\"lia-inline-image-display-wrapper lia-image-align-inline\" style=\"width: 480px;\"><img src=\"https://stage.liveopsnation.com/t5/image/serverpage/image-id/74iEAC9E1BB2EE4DFE6/image-size/large?v=1.0&px=999\" alt=\"youcandoit.png\" title=\"youcandoit.png\" /></span></P>\n<P>This is the article teaser.</P>"
Accessing the image is not straightforward as it would if there were keys for each element of the string. So how do I return just the URL for the image and, separately, just the actual text from the teaser? String gymnastics? What's the best way to do this? Anyone have a code example?
Related Content
- 9 months ago
- 2 years ago
- 10 months ago