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
Fax attachments download using jquery (Using JavaScipt SDK)
Tags: fax
Nov 14, 2018 at 12:51am   •   1 replies  •  0 likes
airs-inc

I am using Java Script SDK to download fax attachment. I am calling this API to get all faxes with attachment.


API calling Code :-


platform.get('/account/~/extension/~/message-store?messageType=Fax&dateFrom=2017-03-16T01:00:00.000Z&direction=Inbound').then(function(response) {



var abcd = "";

$records = response.json().records;

platform.get('https:/platform.ringcentral.com/restapi/v1.0/account/~/extension/[EXT-ID]/message-store/[ATTACHMENT-ID...{


abcd = response1;

});


I am getting response like this.

  1. ApiResponse {_externals: Externals, _request: Request, _response: Response, _text: "", _json: null, ...}

    1. _externals: Externals {PubNub: , localStorage: Storage, Promise: , fetch: , Request: , ...}
    2. _json: null
    3. _multipart: []
    4. _request: Request {originalBody: undefined, method: "GET", url: "https://platform.ringcentral.com/restapi/v1.0/acco...8/message-store/907893279008/content/907893279008...;, headers: Headers, destination: "", ...}
    5. _response: Response {type: "cors", url: "https://platform.ringcentral.com/restapi/v1.0/acco...8/message-store/907893279008/content/907893279008...;, redirected: false, status: 200, ok: true, ...}
    6. _text: ""
    7. __proto__: Object


How to download or display fax attachment from this response ? Please assist me ASAP.

1 Answer
answered on Nov 15, 2018 at 8:06am  
Hi Airs,

You can follow the instructions from here to download fax attachment, voicemail or recorded call binary etc.

https://github.com/ringcentral/ringcentral-js#binary-downloads

Hope this helps,
Phong

 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