/// <summary> /// Upload file required for a messaging hosted number order. /// </summary> /// <param name="id">Identifies the type of resource.</param> /// <param name="options">File Upload Data.</param> /// <param name="requestOptions">Additional request options (optional).</param> /// <returns>Successful response with details about a messaging hosted number order.</returns> public HostedNumberOrder UploadFile(string id, FileUploadOptions options, RequestOptions requestOptions = null) { return(this.CreateEntity(id, this.PostPath, options, requestOptions)); }
/// <summary> /// Upload file required for a messaging hosted number order. /// </summary> /// <param name="id">Identifies the type of resource.</param> /// <param name="options">File Upload Data</param> /// <param name="requestOptions">Additional request options (optional).</param> /// <param name="ct">Cancellation Token (optional).</param> /// <returns>Successful response with details about a messaging hosted number order.</returns> public async Task <HostedNumberOrder> UploadFileAsync(string id, FileUploadOptions options, RequestOptions requestOptions = null, CancellationToken ct = default) { return(await this.CreateEntityAsync(id, this.PostPath, options, requestOptions, ct).ConfigureAwait(false)); }