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
Lookup a specific fax in the call log to get its status
Tags: rest api
Nov 1, 2019 at 3:11pm   •   3 replies  •  0 likes
Nick R

Hi,

What identifier do I use toy check the status of a fax I sent in the call log using the API?

I thought I could use one of the id in FaxResponse and later query the call log using it but they don't seem to match.

It is very important for my employer to be able to match a specific fax to a specific call log entry so I can't try to approximate things using phone numbers and things like that.

Thank you and have a nice day!

Nick

2 Answers
answered on Nov 7, 2019 at 10:41am  

Hi!

Thank you for your answer!

I initially tried it and I thought I needed to replace the "account" and "extension" with the actual values and got a 404 but it looks like I must actually put those where you put the "~".

When I retried with my credentials in there I got a 401 so I realized I had to authenticate myself.

So what I did was to borrow the authentication code from the Java snippets provided to send faxes and the like and used but called the get() method of RestClient instead of what the samples I had found normally do.

This seems to have done the trick as I got a ResponseBody on which I called string() and parsed using jackson (I will have to see if I can do what I did with fastjson which you already use to avoid adding one more dependency...).

By the way, the URL you provided me with looks a lot like the one in uri in the response when I send the fax except for the credentials there seemingly not having anything to do with the credentials the telephony guy provided me with.

Talking about credentials I will have a question about it tomorrow but for now it is time for me to go to sleep... It will soon be followed by one about cover pages, I am not sure what the telephony guy wanted to do is actually necessary...

Thank you and have a nice day,

Nick




 0
answered on Nov 7, 2019 at 9:19am  

Hi Nick,

Somehow your question got lost from my daily attention in this forum. Sorry for that.

After you sent a fax, grab the message id from the response, then check the fax status of that fax using the message-store endpoint (not the call log) using that message id.

Make a GET request to this endpoint: https://platform.devtest.ringcentral.com/restapi/v1.0/account/~/extension/~/message-store/[messageId]


 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