News & Announcements User Community Developer Community

Welcome to the RingCentral Community

Please note the community is currently under maintenance and is read-only.

Search
Make sure to review our Terms of Use and Community Guidelines.
  Please note the community is currently under maintenance and is read-only.
Home » Developers
Cannot access the received image
Tags: authentication, sms and text messaging
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.

1673988650524.png


 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

PRODUCTS
RingEX
Message
Video
Phone
OPEN ECOSYSTEM
Developer Platform
APIs
Integrated Apps
App Gallery
Developer support
Games and rewards

RESOURCES
Resource center
Blog
Product Releases
Accessibility
QUICK LINKS
App Download
RingCentral App login
Admin Portal Login
Contact Sales
© 1999-2024 RingCentral, Inc. All rights reserved. Legal Privacy Notice Site Map Contact Us