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
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
Hi @Phong Vu,
I am referring to this here:
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())
There it says " Sign in to try it out". You need to login, select an app, then try.
But to try the entire message store export, yo should try with your own code be cause it is a chain API call. Does not make sense to try on the API reference try it out.
In this case, the archiveId is the index number. The number after the last slash. E.g.
.../message-store-report/178009004-178009004-ed6a473f3aea40819d761242fa6fa331/archive/1'
Okay, so I've tried it both on the "Try it now" section and with my own code but both give me a 406 Client Error.
Using the RingCentral Phone for Desktop, you can dial or receive test calls, send and receive test SMS or Fax messages in your sandbox environment.
Download RingCentral Phone for Desktop:
Tip: switch to the "sandbox mode" before logging in the app:
5 People are following this question.