TelAPI.TelAPIRestClient.MakeCall C# (CSharp) Method

MakeCall() public method

Initiate outbound call with options. Make POST request
public MakeCall ( CallOptions callOptions ) : Call
callOptions CallOptions Call options
return Call
        public Call MakeCall(CallOptions callOptions)
        {
            Require.Argument("To", callOptions.To);
            Require.Argument("From", callOptions.From);
            Require.Argument("Url", callOptions.Url);

            var request = new RestRequest(Method.POST);
            request.Resource = RequestUri.MakeCallUri;

            CreateCallOptions(callOptions, request);

            return Execute<Call>(request);
        }

Same methods

TelAPIRestClient::MakeCall ( string from, string to, string url ) : Call
TelAPIRestClient::MakeCall ( CallOptions callOptions ) : Task
TelAPIRestClient::MakeCall ( string from, string to, string url ) : Task