/// <summary>
 /// POST /v1/calls - create an outbound SIP or PSTN Call
 /// </summary>
 /// <param name="command"></param>
 /// <param name="creds">(Optional) Overridden credentials for only this request</param>
 /// <returns></returns>
 /// <exception cref="VonageHttpRequestException">thrown if an error is encountered when talking to the API</exception>
 public Task <CallResponse> CreateCallAsync(CallCommand command, Credentials creds = null)
 {
     return(ApiRequest.DoRequestWithJsonContentAsync <CallResponse>(
                POST,
                ApiRequest.GetBaseUri(ApiRequest.UriType.Api, CALLS_ENDPOINT),
                command,
                ApiRequest.AuthType.Bearer,
                creds ?? Credentials
                ));
 }
 public CallResponse CreateCall(CallCommand command, Credentials creds = null)
 {
     return(CreateCallAsync(command, creds).GetAwaiter().GetResult());
 }