Where is the sample code you mentioned? Let me take a look.
The following works for me:
faxResolution: 'High'
Please note that it should be 'High' instead of 'HIGH' or 'high'.
Hi Tyler,
Thanks for the reply.
its not just about the fax , but also with other parameters. i tried the code that is there on github.
var sdk = new SDK(appKey, appSecret, sandboxServer, "Dispatcher", "");
// Password Grant Authorization
var response1 = sdk.Platform.Login(username, extension, password, true);
const string text = "Hello world!";
var json = "{"to":[{"phoneNumber":"+912267676262"}],"faxResolution":"High"}";
var request = new Request("/restapi/v1.0/account/~/extension/~/fax", json);
var response = sdk.Platform.Post(request);
here is the sample code.
To send fax, you need to use FormData. Please check the code here:
https://github.com/tylerlong/rc-commander/blob/master/rc-fax.js There are two issues in your code: 1. "const string text = ..." is declared but unused. 2. you are not using FormData to send fax.
Hi Tyler,
My code worked the attachment was needed i guess. got a proper response frrom the API.
But just one question where can i check the api log for the fax?
https://github.com/ringcentral/ringcentral-js#fax The official doc says you should use FormData. I doubt that it will ever work if you don't use it.
Only RingCentral staff have access to api logs on server side. I am not sure if that is what you mean.
Oops! Are you writing program in C# or JS? If we are talking about C# instead, please check here for a sample to send fax:
http://ringcentral-csharp.readthedocs.io/en/latest/
i am trying c#.
yes i used the same code and it worked fine. i checked the status through message list api it says International calling disabled.
But i checked the setting it is on over there. Can you please help.
If you don't have issues about fax sending any more. I suggest you creating a new ticket for the new issues and describe your question in detail. To be frank I am not an expert on account configuration. So it's better for you to create a new ticket with title "International calling disabled issue". By doing that you will get help from others sooner.
okay . Thanks a lot for your help.