I downloaded the sample C# app and can successfully send a fax. When I try to create my own program, I get that SendFaxMessageRequest is not defined. I have "using RingCentral" at the top of the program.
var requestParams = new SendFaxMessageRequest();
The sample was using RingCentral.Net 1.1.1. I went up to version 4.1 and get the SendFaxMessageRequest error.
Playing around a bit, it appears to happen for any version of the SDK from 2.0 on.
Is there different code I should be using instead of the sample. I'm thinking I don't want to go to production with version 1.1.1 of the .net SDK.
This is a 3.1 .net Code console application.
Thank you,
Bruce
It is expected because from 1.1 to the 4.1 there is a major version update and there are breaking changes.
Check here https://github.com/ringcentral/RingCentral.Net/blob/master/samples.md#create-fax-message and you will see the class has been renamed to CreateFaxMessageRequest
By the way, the sample code page is for the latest SDK which is currently 5.0.0-beta2. You may need to check page history for 4.1.
Thank you, I can take a look there. This was the page I was using from your website and the subsequent code.
https://developers.ringcentral.com/guide/messaging/fax/sending-faxes#c#.
Does that sample page need to be updated?
The dev guide is not updated. I will update it accordingly.
The correct object is CreateFaxMessageRequest().
The sample page is always in-sync with the SDK source code, so yes it updates whenever the SDK source code updates.
Check this test case file: https://github.com/ringcentral/RingCentral.Net/blob/master/RingCentral.Tests/FaxTest.cs
The first way(simplest one) is good for most users.
You don't have to specify all the parameters, by the way. Just read the parameters comments to get their meanings to decide whether you need to specify or not.
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