Changelog

Release notes of OnlineSim.Api.

The full history is in CHANGELOG.md.

1.0.1

  • Fixed decoding against the current API: RentSms.Code 0 for notify SMS, Profile.Number/Country swapped types, optional Operation.Response, nullable free-list and payment fields; PaymentHistory.Paylist is kept when it arrives as a list.
  • WaitCodeAsync retries TRY_AGAIN_LATER (rate limit), ERROR_UNDEFINED and INTERVAL_CONCURRENT_REQUESTS_ERROR.
  • MockOnlineSim follows the backend more closely: rent reservation and confirmation, setOperationRevise and closeRentNum answers, missing vs wrong key — see Testing.

1.0.0

First release of the .NET SDK, on the same contract as the other OnlineSim SDKs (JS 2.1.0, PHP, Python, Go, Rust, Java, Ruby).

  • OnlineSimClient with Numbers, Rent, User and Free sections; async methods with CancellationToken; netstandard2.0 and net8.0 (.NET Framework 4.6.2+, .NET 6+, Unity/Mono).
  • The key is sent as a Bearer header, never in the URL; injectable ITransport (your own HttpClient).
  • Typed exceptions: ApiException, NoNumberException, TransportException, WaitTimeoutException.
  • Numbers.WaitCodeAsync: interval and timeout as TimeSpan, KeepOpen, Since, retries network errors, injectable delay and clock.
  • Webhook.Parse for inbound webhooks; webhook URL set / clear / logs.
  • MockOnlineSim: an offline fake of the API for your tests — see Testing.