Changelog
Release notes of onlinesim-python-api (PyPI onlinesimru).
The full history is in CHANGELOG.md.
3.1.1
- Fixed:
wait_codeno longer crashes on an operation withoutresponse; types against the current API (Profilenumber/country, optionalOperation["response"],RentSms["code"]0fornotifySMS, nullable free-list and payment fields);payment_history()["paylist"]is kept when it arrives as a list. wait_coderetriesTRY_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.
3.1.0
- New:
MockOnlineSim, an offline fake of the API for your tests — see Testing.
3.0.0
A rewrite with a new API; 2.x code does not run unchanged.
- One client,
OnlineSim(api_key), with the sections as attributes:client.numbers,client.rent,client.user,client.free. - Zero runtime dependencies (standard library
urllib), Python 3.9+, type hints withTypedDictresults andpy.typed. - The key is sent as a Bearer header, never in the URL.
- Typed errors:
ApiError,NoNumberError,TransportError,TimeoutError. numbers.wait_codehas a real interval and timeout in seconds,keep_open,since, and retries network errors.rent.getcreates extendable rents by default (extension=True).- New:
user.set_webhook_url/clear_webhook_url/webhook_logs,parse_webhook. - Removed: the proxy API,
numbers.repeat,numbers.service,numbers.service_number,rent.port_reload,user.create_empty, the old free-number methods (usefree.list),Driverand the per-service classes.