Changelog
Release notes of onlinesim-java-api.
The full history is in CHANGELOG.md.
2.1.1
- Fixed models against the current API:
Profile.number()/country(),Operation.response()may benull,RentSms.code()"0"fornotifySMS;paymentHistory().paylist()is kept when it arrives as a list. waitCoderetriesTRY_AGAIN_LATER(rate limit),ERROR_UNDEFINEDandINTERVAL_CONCURRENT_REQUESTS_ERROR.MockOnlineSimfollows the backend more closely: rent reservation and confirmation,setOperationReviseandcloseRentNumanswers, missing vs wrong key — see Testing.
2.1.0
- New:
MockOnlineSim(ru.onlinesim.mock), an offline fake of the API for your tests — see Testing. - Release automation: tags
vX.Y.Zpublish to Maven Central from CI.
2.0.0
A rewrite with a new API; v1 code does not compile unchanged.
- Same coordinates as 1.x, new major version:
ru.onlinesim:onlinesim-api:2.0.0. Java 11+. - One client,
new OnlineSim(apiKey)orOnlineSim.builder(), with the sections as accessors:client.numbers(),client.rent(),client.user(),client.free(). - HTTP through
java.net.http.HttpClientbehind aTransportinterface; the only dependency is Gson. No Apache HttpClient, dotenv or Consul. - The key is sent as a Bearer header, never in the URL; the base URL is configurable and HTTPS by default.
- Unchecked exceptions:
ApiException,NoNumberException,TransportException,WaitTimeoutException. numbers().waitCodewithDurationinterval and timeout,keepOpen,since; retries network errors.rent().getcreates extendable rents by default (extension = true).- New:
user().setWebhookUrl/clearWebhookUrl/webhookLogs,OnlineSim.parseWebhook. - Removed: the proxy API,
numbers.repeat,numbers.service,numbers.serviceNumber,rent.portReload,user.createEmpty, the old free-number endpoints (usefree().list).