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
Where to find the Archive ID?
Tags: rest api
Dec 20, 2021 at 4:40pm   •   2 replies  •  0 likes
Daniel Padilla

Hello,

Once I've ran the Message Store Report Archive api call, where do I find the archive id? It's needed get the Message Store Report Archive Content but I just don't know where to get the archive id or what syntax it needs to be in.

Thanks



2 Answers
answered on Dec 22, 2021 at 2:34pm  

Hi @Phong Vu,

I am referring to this here:

screen-shot-2021-12-22-at-22321-pm.png

If I understood the dev guide correctly, running this call will download the file. I also see that:

"To download the file, append a valid access token to the URI and make an HTTP GET request to the URI"

Where would I get the access token?


I found a doc on how to get an access token: OAuth 2.0 > Get Token

Assuming that this is the correct resource I should be looking at, what's the format I should follow when using it with the ringcentral sdk? This is what I currently have but I get an "Unauthorized grant type" error.

rcsdk = SDK(CLIENTID, CLIENTSECRET, SERVERURL)
platform = rcsdk.platform()
platform.login(RCUSERNAME, RCEXTENSION, RCPASSWORD)
response = platform.post('/restapi/oauth/token',{
    'grant_type': password,
    'username': RCUSERNAME,
    'extension': RCEXTENSION,
    'password': RCPASSWORD
})
print(response.text())



 0
answered on Dec 21, 2021 at 7:08am  

I don't know where you got the concept of an archive id, but the archive file uri has an index number at the end. However, it's better to just use the uri to download the content. Follow this dev guide to see how to archive.


 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