Cannot access the received image
Jan 16, 2023 at 9:04am • 2 replies • 0 likes
Bijay Lama
I am trying to access the image that I have sent or received via SMS by appending the access token as a query parameter in the media.ringcentral.com content URL. All the images that I have sent are being accessible but it is showing unauthorized for the received images.
2 Answers
answered on Jan 17, 2023 at 12:46pm
@Phong Vu, I am actually using Ringcentral SMS API to fetch all the SMS.
0
on Jan 17, 2023 at 2:12pm • 0 likes
I guess that the accessToken you attached to the content URI does not belong to the owner of the message.
Since you have the platform object (I assume that it is the platform instance from the RingCentral JS SDK), you can attach the access token using this method
var contentUri = platform.createUrl(image.uri, {addToken: true});
answered on Jan 16, 2023 at 10:57am
Share the code how you read those outbound and inbound messages. Do the inbound messages belong to the user who authenticated (owner of the access token) the app?
0
A new Community is coming to RingCentral!
Posts are currently read-only as we transition into our new platform.
We thank you for your patience
during this downtime.
Try Workflow Builder
Did you know you can easily automate tasks like responding to SMS, team messages, and more? Plus it's included with RingCentral Video and RingEX plans!
Try RingCentral Workflow Builder