[{"data":1,"prerenderedAt":308},["ShallowReactive",2],{"navigation":3,"\u002Fchangelog":43,"\u002Fchangelog-surround":304},[4,8,13,18,23,28,33,38],{"title":5,"path":6,"stem":7},"Getting started","\u002F","index",{"title":9,"path":10,"stem":11,"order":12},"Numbers","\u002Fnumbers","numbers",1,{"title":14,"path":15,"stem":16,"order":17},"Rent","\u002Frent","rent",2,{"title":19,"path":20,"stem":21,"order":22},"User","\u002Fuser","user",3,{"title":24,"path":25,"stem":26,"order":27},"Free numbers","\u002Ffree","free",4,{"title":29,"path":30,"stem":31,"order":32},"Webhooks","\u002Fwebhooks","webhooks",5,{"title":34,"path":35,"stem":36,"order":37},"Testing","\u002Ftesting","testing",6,{"title":39,"path":40,"stem":41,"order":42},"Changelog","\u002Fchangelog","changelog",7,{"id":44,"title":39,"body":45,"description":298,"extension":299,"meta":300,"navigation":301,"path":40,"seo":302,"stem":41,"__hash__":303},"docs\u002Fchangelog.md",{"type":46,"value":47,"toc":292},"minimark",[48,60,65,135,139,160,164,167],[49,50,51,52,59],"p",{},"The full history is in ",[53,54,58],"a",{"href":55,"rel":56},"https:\u002F\u002Fgithub.com\u002Fs00d\u002Fonlinesim-java-api\u002Fblob\u002Fmain\u002FCHANGELOG.md",[57],"nofollow","CHANGELOG.md",".",[61,62,64],"h2",{"id":63},"_211","2.1.1",[66,67,68,103,120],"ul",{},[69,70,71,72,6,76,79,80,83,84,79,87,90,91,94,95,98,99,102],"li",{},"Fixed models against the current API: ",[73,74,75],"code",{},"Profile.number()",[73,77,78],{},"country()",", ",[73,81,82],{},"Operation.response()"," may be ",[73,85,86],{},"null",[73,88,89],{},"RentSms.code()"," ",[73,92,93],{},"\"0\""," for ",[73,96,97],{},"notify"," SMS; ",[73,100,101],{},"paymentHistory().paylist()"," is kept when it arrives as a list.",[69,104,105,108,109,112,113,116,117,59],{},[73,106,107],{},"waitCode"," retries ",[73,110,111],{},"TRY_AGAIN_LATER"," (rate limit), ",[73,114,115],{},"ERROR_UNDEFINED"," and ",[73,118,119],{},"INTERVAL_CONCURRENT_REQUESTS_ERROR",[69,121,122,125,126,116,129,132,133,59],{},[73,123,124],{},"MockOnlineSim"," follows the backend more closely: rent reservation and confirmation, ",[73,127,128],{},"setOperationRevise",[73,130,131],{},"closeRentNum"," answers, missing vs wrong key — see ",[53,134,34],{"href":35},[61,136,138],{"id":137},"_210","2.1.0",[66,140,141,153],{},[69,142,143,144,146,147,150,151,59],{},"New: ",[73,145,124],{}," (",[73,148,149],{},"ru.onlinesim.mock","), an offline fake of the API for your tests — see ",[53,152,34],{"href":35},[69,154,155,156,159],{},"Release automation: tags ",[73,157,158],{},"vX.Y.Z"," publish to Maven Central from CI.",[61,161,163],{"id":162},"_200","2.0.0",[49,165,166],{},"A rewrite with a new API; v1 code does not compile unchanged.",[66,168,169,176,199,210,213,228,245,255,270],{},[69,170,171,172,175],{},"Same coordinates as 1.x, new major version: ",[73,173,174],{},"ru.onlinesim:onlinesim-api:2.0.0",". Java 11+.",[69,177,178,179,182,183,186,187,79,190,79,193,79,196,59],{},"One client, ",[73,180,181],{},"new OnlineSim(apiKey)"," or ",[73,184,185],{},"OnlineSim.builder()",", with the sections as accessors: ",[73,188,189],{},"client.numbers()",[73,191,192],{},"client.rent()",[73,194,195],{},"client.user()",[73,197,198],{},"client.free()",[69,200,201,202,205,206,209],{},"HTTP through ",[73,203,204],{},"java.net.http.HttpClient"," behind a ",[73,207,208],{},"Transport"," interface; the only dependency is Gson. No Apache HttpClient, dotenv or Consul.",[69,211,212],{},"The key is sent as a Bearer header, never in the URL; the base URL is configurable and HTTPS by default.",[69,214,215,216,79,219,79,222,79,225,59],{},"Unchecked exceptions: ",[73,217,218],{},"ApiException",[73,220,221],{},"NoNumberException",[73,223,224],{},"TransportException",[73,226,227],{},"WaitTimeoutException",[69,229,230,233,234,237,238,79,241,244],{},[73,231,232],{},"numbers().waitCode"," with ",[73,235,236],{},"Duration"," interval and timeout, ",[73,239,240],{},"keepOpen",[73,242,243],{},"since","; retries network errors.",[69,246,247,250,251,254],{},[73,248,249],{},"rent().get"," creates extendable rents by default (",[73,252,253],{},"extension = true",").",[69,256,143,257,260,261,260,264,79,267,59],{},[73,258,259],{},"user().setWebhookUrl"," \u002F ",[73,262,263],{},"clearWebhookUrl",[73,265,266],{},"webhookLogs",[73,268,269],{},"OnlineSim.parseWebhook",[69,271,272,273,79,276,79,279,79,282,79,285,288,289,254],{},"Removed: the proxy API, ",[73,274,275],{},"numbers.repeat",[73,277,278],{},"numbers.service",[73,280,281],{},"numbers.serviceNumber",[73,283,284],{},"rent.portReload",[73,286,287],{},"user.createEmpty",", the old free-number endpoints (use ",[73,290,291],{},"free().list",{"title":293,"searchDepth":17,"depth":17,"links":294},"",[295,296,297],{"id":63,"depth":17,"text":64},{"id":137,"depth":17,"text":138},{"id":162,"depth":17,"text":163},"Release notes of onlinesim-java-api.","md",{},{"order":42},{"title":39,"description":298},"C-mdCkgInuVK1KwVTjEehG_9HXVsDgx8__6Fbo-Tp_I",[305,306],null,{"title":24,"path":25,"stem":26,"description":307,"order":27},"Public numbers and their SMS — client.free(). No API key needed.",1795164317216]