[{"data":1,"prerenderedAt":372},["ShallowReactive",2],{"navigation":3,"\u002Fchangelog":43,"\u002Fchangelog-surround":368},[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":362,"extension":363,"meta":364,"navigation":365,"path":40,"seo":366,"stem":41,"__hash__":367},"docs\u002Fchangelog.md",{"type":46,"value":47,"toc":356},"minimark",[48,60,65,131,135,210,214,217],[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-rs-api\u002Fblob\u002Fmaster\u002FCHANGELOG.md",[57],"nofollow","CHANGELOG.md",".",[61,62,64],"h2",{"id":63},"_022","0.2.2",[66,67,68,99,116],"ul",{},[69,70,71,72,6,76,79,80,83,84,86,87,90,91,94,95,98],"li",{},"Fixed models against the current API: ",[73,74,75],"code",{},"Profile.number",[73,77,78],{},"country",", optional ",[73,81,82],{},"Operation.response",", rent SMS ",[73,85,73],{}," ",[73,88,89],{},"\"0\""," for ",[73,92,93],{},"notify"," SMS, nullable free-list and payment fields; ",[73,96,97],{},"payment_history().paylist"," is kept when it arrives as a list.",[69,100,101,104,105,108,109,112,113,59],{},[73,102,103],{},"wait_code"," retries ",[73,106,107],{},"TRY_AGAIN_LATER"," (rate limit), ",[73,110,111],{},"ERROR_UNDEFINED"," and ",[73,114,115],{},"INTERVAL_CONCURRENT_REQUESTS_ERROR",[69,117,118,121,122,112,125,128,129,59],{},[73,119,120],{},"MockOnlineSim"," follows the backend more closely: rent reservation and confirmation, ",[73,123,124],{},"setOperationRevise",[73,126,127],{},"closeRentNum"," answers, missing vs wrong key — see ",[53,130,34],{"href":35},[61,132,134],{"id":133},"_021","0.2.1",[66,136,137,196],{},[69,138,139,141,142,145,146,149,150,153,154,157,158,161,162,164,165,168,169,157,172,157,175,168,178,157,181,157,184,157,187,157,190,193,194,59],{},[73,140,120],{},": an in-process fake of the API for your tests (feature ",[73,143,144],{},"mock-transport",", no extra dependencies): ",[73,147,148],{},"MockOnlineSim::new(options).client()"," returns a normal client that never opens a socket; ",[73,151,152],{},"transport()"," for clients you build yourself. Helpers ",[73,155,156],{},"add_sms",", ",[73,159,160],{},"add_sms_after"," (zero-interval ",[73,163,103],{},"), ",[73,166,167],{},"fail_next"," \u002F ",[73,170,171],{},"fail_next_on",[73,173,174],{},"fail_next_transport",[73,176,177],{},"set_balance",[73,179,180],{},"balance",[73,182,183],{},"operations",[73,185,186],{},"rents",[73,188,189],{},"requests",[73,191,192],{},"reset",". See ",[53,195,34],{"href":35},[69,197,198,199,202,203,205,206,209],{},"Feature ",[73,200,201],{},"mock"," = ",[73,204,144],{}," + ",[73,207,208],{},"MockOnlineSim::start()",", the same fake over local HTTP. Its defaults now follow the shared mock spec (prices, numbers, key check, no automatic SMS).",[61,211,213],{"id":212},"_020","0.2.0",[49,215,216],{},"A rewrite with a new API; 0.1 code does not compile unchanged.",[66,218,219,239,249,274,284,301,311,329,353],{},[69,220,221,222,225,226,157,229,157,232,157,235,238],{},"One ",[73,223,224],{},"ClientBuilder"," for both clients; the async and blocking clients have the same sections and methods (",[73,227,228],{},"client.numbers()",[73,230,231],{},"client.rent()",[73,233,234],{},"client.user()",[73,236,237],{},"client.free()",").",[69,240,241,242,245,246,238],{},"The key is sent as a Bearer header, never in the URL. Default 30 s request timeout; the transport is injectable (your ",[73,243,244],{},"reqwest"," client or any ",[73,247,248],{},"Transport",[69,250,251,252,255,256,164,259,157,261,157,264,157,267,270,271,59],{},"One error enum: ",[73,253,254],{},"Error::Api(ApiError { code, message })"," (",[73,257,258],{},"is_no_number()",[73,260,248],{},[73,262,263],{},"Timeout",[73,265,266],{},"Decode",[73,268,269],{},"Config",". An HTTP 456 wrong key is an ",[73,272,273],{},"ApiError",[69,275,276,279,280,283],{},[73,277,278],{},"numbers().wait_code(tzid, WaitCodeOptions { interval, timeout, keep_open, full_message, since })",": a simple per-call poller with ",[73,281,282],{},"Duration","s, terminal states and transient-error retries; the shared batch poller is gone.",[69,285,286,287,6,290,157,293,296,297,300],{},"Methods take the country explicitly; booleans are sent as ",[73,288,289],{},"1",[73,291,292],{},"0",[73,294,295],{},"orderby"," lowercase, ",[73,298,299],{},"reject"," as a comma list.",[69,302,303,306,307,310],{},[73,304,305],{},"rent().get(country, days, extension)"," sends ",[73,308,309],{},"extension"," explicitly.",[69,312,313,314,168,317,168,320,157,323,157,326,59],{},"New: ",[73,315,316],{},"user().set_webhook_url",[73,318,319],{},"clear_webhook_url",[73,321,322],{},"webhook_logs",[73,324,325],{},"parse_webhook",[73,327,328],{},"parse_webhook_value",[69,330,331,332,157,335,157,338,157,341,344,345,348,349,352],{},"Removed: ",[73,333,334],{},"numbers().repeat",[73,336,337],{},"service",[73,339,340],{},"service_number",[73,342,343],{},"rent().port_reload",", the old free endpoints (use ",[73,346,347],{},"free().list","), client-side rate limiting, ",[73,350,351],{},"oauth",", mock state files.",[69,354,355],{},"MSRV 1.85.",{"title":357,"searchDepth":17,"depth":17,"links":358},"",[359,360,361],{"id":63,"depth":17,"text":64},{"id":133,"depth":17,"text":134},{"id":212,"depth":17,"text":213},"Release notes of onlinesim-rs-api.","md",{},{"order":42},{"title":39,"description":362},"CnnxAFB8h48pfrmU6Hgfm8heTLrdmczLbzqDUCUi4RA",[369,370],null,{"title":24,"path":25,"stem":26,"description":371,"order":27,"children":-1},"Public numbers and their SMS — client.free(). No API key needed.",1795164592807]