question

airs-inc6788 avatar image
airs-inc6788 asked ·

Fax attachments download using jquery

 Hello,

I want to download FAX attachment. I got the attachment URI (e.g.  http://media.ringcentral.com/.....), but when I call that uri through JS, it give's me some long string (like "JVBERi0xLjMKJeLjz9MKMSAwIG9iaiAKPDwK....."). When I try yo decode that code, It shows me some text and a Unicode. below is the sample 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://media.ringcentral.com/restapi/v1.0/account/~/extension/[EXT-ID]/message-store/[ATTACHMENT-ID...{
abcd = response1;
});


Please advice ASAP.
General Topic
1 |1500 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Phong Vu avatar image
Phong Vu answered ·
Can you try to replace the "media" with platform and get the attachment?  https://platform.ringcentral.com/restapi/v1.0/account/~...

+ Phong
1 |1500 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

airs-inc6788 avatar image
airs-inc6788 answered ·
Hello ,
Thank you for quick response.
I have change as per you suggested above.

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/acco8/message-store/907893279008/content/907893279008...;, headers: Headers, destination: "", }
    5. _response: Response {type: "cors", url: "https://platform.ringcentral.com/restapi/v1.0/acco8/message-store/907893279008/content/907893279008...;, redirected: false, status: 200, ok: true, }
    6. _text: ""
    7. __proto__: Object

How will I get fax attachment from this response. Please advise ASAP.

1 |1500 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

airs-inc6788 avatar image
airs-inc6788 answered ·
Hello ,

Is there any update regarding this ??

Thanks,
1 |1500 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

airs-inc6788 avatar image
airs-inc6788 answered ·
Hello ,

Is there any update regarding this ??

Thanks,
1 comment
1 |1500 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Sorry for missing your updates! I've just replied to your question in a new thread.

+ Phong
0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.