Skip to main content
Question

When receiving attachments through Team Messaging API, I get inconsistent response

  • April 19, 2023
  • 1 reply
  • 252 views

Hello,

our development team is trying to implement receiving attachments from the Team Messaging API. (files, images, videos etc)

When we're listing messages in our chat using this call: https://developers.ringcentral.com/api-reference/Posts/readGlipPostsNew

if the message contains attachment(s), sometimes we're getting an object containing 2 properties per attachment (f.e. attachments: [{id: "2181292580874", type: "File"}]),

Screenshot 2023-04-19 at 9.11.41 AM.pngScreenshot 2023-04-19 at 9.11.14 AM.png

and sometimes we're getting 4 properties per attachment. Screenshot 2023-04-18 at 11.52.54 PM.png

So sometimes we're getting the id and type. Right now, we can't locate the API call in the documentation that somehow uses this id to get more information about the attachment. Are we missing something, or is this not yet implemented?

When we're getting contentUri as one of the 4 fields, I assume we have all that is needed, but in the instances where we get 2 fields, I'm not sure what to do.

Kind regards

PhongVu
Community Manager
Forum|alt.badge.img
  • Community Manager
  • April 19, 2023

I think that is the case where the file (attachment) was deleted from the team. You can double check from the RC app to see how many files are still found from the team.

screen-shot-2023-04-19-at-114440-am.png


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings